Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    jspm-resolvepublic

    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

    install

    npm i jspm-resolve

    Downloadsweekly downloads

    152

    version

    2.1.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar