Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orkon/jspm-pkg-path
https://github.com/orkon/jspm-pkg-path
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/orkon/jspm-pkg-path
- Owner: OrKoN
- License: mit
- Created: 2015-02-27T12:58:57.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-27T16:12:21.000Z (almost 10 years ago)
- Last Synced: 2023-04-09T19:07:15.397Z (over 1 year ago)
- Language: JavaScript
- Size: 148 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```