Miss any of our Open RFC calls?Watch the recordings here! »

publishers

1.0.1 • Public • Published

publishers Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

Provide a package name, get a list of every version, and who published it.

Example

CLI

> publishers publishers
┌─────────┬──────────┬────────────────────┬────────────────────────────┐
│ (index) │   name   │       email        │          created           │
├─────────┼──────────┼────────────────────┼────────────────────────────┤
│ v1.0.0  │ 'ljharb' │ 'ljharb@gmail.com' │ '2020-02-03T21:34:48.957Z' │
└─────────┴──────────┴────────────────────┴────────────────────────────┘
> publishers publishers --json
{
  'v1.0.0': {
    name: 'ljharb',
    email: 'ljharb@gmail.com',
    created: '2020-02-03T21:34:48.957Z'
  }
}

API

const assert = require('assert');
const { execSync } = require('child_process');
const getPublishers = require('publishers');
 
const results = getPublishers('publishers').then((results) => {
    assert.deepEqual(
        results,
        JSON.parse(String(execSync('npx publishers --json publishers')))
    );
}).catch((e) => {
    console.error(e);
    process.exit(1);
});

Install

npm i publishers

DownloadsWeekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

13.3 kB

Total Files

12

Last publish

Collaborators

  • avatar