Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ljharb/publishers
Provide a package name, get a list of every version, and who published it.
https://github.com/ljharb/publishers
npm packages publishers
Last synced: 5 days ago
JSON representation
Provide a package name, get a list of every version, and who published it.
- Host: GitHub
- URL: https://github.com/ljharb/publishers
- Owner: ljharb
- License: mit
- Created: 2020-02-03T18:02:08.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-06-15T16:16:54.000Z (5 months ago)
- Last Synced: 2024-10-17T02:18:59.441Z (20 days ago)
- Topics: npm, packages, publishers
- Language: JavaScript
- Homepage:
- Size: 76.2 KB
- Stars: 24
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# publishers [![Version Badge][2]][1]
[![dependency status][5]][6]
[![dev dependency status][7]][8]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url][![npm badge][11]][1]
Provide a package name, get a list of every version, and who published it.
## Example
### CLI
```console
> publishers publishers
┌─────────┬──────────┬────────────────────┬────────────────────────────┐
│ (index) │ name │ email │ created │
├─────────┼──────────┼────────────────────┼────────────────────────────┤
│ v1.0.1 │ 'ljharb' │ '[email protected]' │ '2020-02-04T02:26:10.321Z' │
│ v1.0.0 │ 'ljharb' │ '[email protected]' │ '2020-02-03T21:34:48.957Z' │
└─────────┴──────────┴────────────────────┴────────────────────────────┘
``````console
> publishers publishers --json
{
"v1.0.1": {
"name": "ljharb",
"email": "[email protected]",
"created": "2020-02-04T02:26:10.321Z"
},
"v1.0.0": {
"name": "ljharb",
"email": "[email protected]",
"created": "2020-02-03T21:34:48.957Z"
}
}
``````console
> publishers publishers --json --sort=asc
{
"v1.0.0": {
"name": "ljharb",
"email": "[email protected]",
"created": "2020-02-03T21:34:48.957Z"
},
"v1.0.1": {
"name": "ljharb",
"email": "[email protected]",
"created": "2020-02-04T02:26:10.321Z"
}
}
```### API
```js
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);
});
```[1]: https://npmjs.org/package/publishers
[2]: https://versionbadg.es/ljharb/publishers.svg
[5]: https://david-dm.org/ljharb/publishers.svg
[6]: https://david-dm.org/ljharb/publishers
[7]: https://david-dm.org/ljharb/publishers/dev-status.svg
[8]: https://david-dm.org/ljharb/publishers?type=dev
[11]: https://nodei.co/npm/publishers.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/publishers.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/publishers.svg
[downloads-url]: https://npm-stat.com/charts.html?package=publishers