jspm-getdir
v0.1.2
Published
Returns the full path to a jspm package
Downloads
3
Readme
jspm-getdir
Returns the full path to a jspm package.
Installation
npm install jspm-getdir --save
Usage
var getdir = require('jspm-getdir');
// Assuming you have a jspm package github:myusername/[email protected]
console.log( getdir('github:myusername/[email protected]') ); // /rootpath/someproject/jspm_packages/github/myusername/[email protected]
// Assuming you have both a github:myusername/[email protected] and github:myusername/[email protected]
console.log( getdir('github:myusername/mypkg') ); // /rootpath/someproject/jspm_packages/github/myusername/[email protected] (highest ver)