calculate-assets

0.1.2 • Public • Published

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.

Package Sidebar

Install

npm i calculate-assets

Weekly Downloads

20

Version

0.1.2

License

none

Last publish

Collaborators

  • jonschlinkert