JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 24368
  • Score
    100M100P100Q139191F
  • License MIT

Loads the package.json from the root of the user's current project.

Package Exports

  • load-pkg

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (load-pkg) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

load-pkg NPM version Build Status

Loads the package.json from the root of the user's current project.

Install

Install with npm

$ npm i load-pkg --save

Usage

var pkg = require('load-pkg');
console.log(pkg.name);
//=> 'load-pkg'
  • list-deps: List the dependencies in the package.json of the current project.
  • look-up: Like findup-sync and supports the same features but 20x-40x faster on avg.
  • load-plugins: Load plugins for gulp, grunt, assemble, verb any node.js app that needs to load plugins… more
  • resolve-dep: Return an array of resolved filepaths for require-able local or named npm modules. Wildcard (glob)… more

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on July 20, 2015.