Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/orkon/jspm-pkg-path


https://github.com/orkon/jspm-pkg-path

Last synced: 17 days ago
JSON representation

Awesome Lists containing this project

README

        

# jspm-pkg-path

Resolves the jspm dependency name to a relative local path.
By default looks up `../../package.json`.

## Installation

`npm install OrKoN/jspm-pkg-path`

## Usage

```
var jpath = require('jspm-pkg-path');
var path = jpath(''); // => app/jspm_packages/github//@0.1.4
```

```
var jpath = require('jspm-pkg-path');
var path = jpath('', {
packageJsonPath: '../../package.json'
}); // => app/jspm_packages/github//@0.1.4
```