pkgd
Get package publish info: package.json and file list.
Last updated 10 years ago by inikulin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pkgd 
SYNC missed versions from official npm registry.

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)

Current Tags

  • 1.1.2                                ...           latest (10 years ago)

4 Versions

  • 1.1.2                                ...           10 years ago
  • 1.1.1                                ...           10 years ago
  • 1.1.0                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 1
Dependencies (3)
Dev Dependencies (6)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |