Socket
Book a DemoInstallSign in
Socket

load-module-pkg

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

load-module-pkg

Load the package.json for any project currently installed in node_modules.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
671
-20.59%
Maintainers
1
Weekly downloads
 
Created
Source

load-module-pkg NPM version Build Status

Load the package.json for any project currently installed in node_modules.

Install with npm

npm i load-module-pkg --save

Usage

var pkg = require('load-module-pkg');

pkg('mocha').version;
//=> 2.1.0
  • load-pkg: Load the package.json in the base of the user's current project.
  • 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.

Keywords

dep

FAQs

Package last updated on 03 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts