Socket
Book a DemoInstallSign in
Socket

calculate-assets

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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.

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

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.

Keywords

path

FAQs

Package last updated on 31 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts