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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    14
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    14
  • 0.1.1
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i calculate-assets

Weekly Downloads

16

Version

0.1.2

License

none

Last publish

Collaborators

  • jonschlinkert