calculate-assets

Calculate the path to an 'assets' or 'public' directory from dest files. Determines whether or not the path should have a trailing slash making it safe to use in templates.

3 个版本
安装
npm install calculate-assets
yarn add calculate-assets
pnpm add calculate-assets
bun add calculate-assets
README

calculate-assets NPM version

Calculate the path to an 'assets' or 'public' directory from dest files. Determines whether or not the path should have a trailing slash making it safe to use in templates.

Install

Install with npm:

npm i calculate-assets --save-dev

Usage

calculatePath(from, to);

Example:

var calculatePath = require('calculate-assets');
console.log(calculatePath(dest, '_gh_pages/public'));

Author

Jon Schlinkert

Brian Woodward

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on May 30, 2014.

版本列表
0.1.2 2014-05-31
0.1.1 2014-04-18
0.1.0 2014-04-13