JSPM

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

A wrapper making installation of Node.js packages from code easier

Package Exports

  • pkg-install

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 (pkg-install) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm npm npm Build Status All Contributors

pkg-install

Easier installation of Node.js packages irrespective of the platform or package manager.

  • Supports npm and yarn
  • Easy to use promise-based API
  • Uses execa under the hood

Installation

npm install pkg-install

Usage

const { install } = require('pkg-install');

(async () => {
  const { stdout } = await install(
    {
      twilio: '^3.1',
      'node-env-run': '~1',
      'pkg-install': '*',
    },
    {
      dev: true,
      prefer: 'npm',
    }
  );
  console.log(stdout);
})();

License

MIT

Contributors

Thanks goes to these wonderful people (emoji key):

Dominik Kundel
Dominik Kundel

💻

This project follows the all-contributors specification. Contributions of any kind welcome!