JSPM

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

Load the package.json in the base 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

Load the package.json in the base of the user's current project.

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.
  • cwd: Node.js util for easily getting the current working directory of a project based on package.json or the given path.
  • resolve-dep: Return an array of resolved filepaths for require-able local or named npm modules. Wildcard (glob) patterns may be used.

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 (c) 2015 Jon Schlinkert
Released under the MIT license


This file was generated by verb-cli on March 03, 2015.