0.1.2 • Published 9 years ago

jspm-getdir v0.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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/mypkg@0.1.0
console.log( getdir('github:myusername/mypkg@0.1.0') ); // /rootpath/someproject/jspm_packages/github/myusername/mypkg@0.1.0

// Assuming you have both a github:myusername/mypkg@0.1.0 and github:myusername/mypkg@0.2.0
console.log( getdir('github:myusername/mypkg') ); // /rootpath/someproject/jspm_packages/github/myusername/mypkg@0.2.0 (highest ver)
0.1.2

9 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.0

10 years ago