calculate-assets
v0.1.2
Published
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.
Downloads
75
Maintainers
Readme
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.
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.