jspm-getdir

0.1.2 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i jspm-getdir

Weekly Downloads

0

Version

0.1.2

License

MIT

Last publish

Collaborators

  • joeycadle