JSPM

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

Get package publish info: package.json and file list.

Package Exports

  • pkgd

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

Readme

pkgd

Build Status

Get package publish info: package.json and file list.

There are some packages in npm already that read package files. However, some of them are broken and the others are too slow. Moreover, this package reads package.json as well and provides nice Promise-based interface.

Install

npm install pkgd

Usage

const pkgd = require('pkgd');

pkgd('./projects/pkgd').then(info => {
    console.log(info.cfg.name);   // > "pkgd"
    console.log(info.cfg.author); // > "Ivan Nikulin (ifaaan@gmail.com)"
    console.log(info.files);      // > [ "package.json", "README.md", "LICENSE", "index.js" ]
});

Author

Ivan Nikulin (ifaaan@gmail.com)