npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

calculate-assets

0.1.2

@jonschlinkert

npmHomeRepoSnykSocket
Downloads:2
$ npm install calculate-assets
DailyWeeklyMonthlyYearly

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

  • github/jonschlinkert
  • twitter/jonschlinkert

Brian Woodward

  • github/doowb
  • twitter/doowb

License

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


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