node package manager

@laurentgoudet/jspm-resolve

jspm-resolve

npm package build status dependency status

A module resolver that locates jspm packages using resolve.

Installation

npm install --save-dev jspm-resolve

Parameters

jspm-resolve takes the same parameters as resolve, plus these:

  • pathsOverride: (Object) Override paths set in your jspm config file.
  • rootDir: (String) Specify a custom jspm root directory (relative to your project's root).

Asynchronous use

import resolve from "jspm-resolve";
 
resolve("react", {}, (err, result) => {
    if (err) {
        throw err;
    }
 
    console.log(result) // path to jspm react 
});

Synchronous use

import resolve from "jspm-resolve";
 
const result = resolve.sync("react", {});
console.log(result) // path to jspm react 

License

MIT