Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/json2d/user-packages
pulls simple metadata for all npm packages by user
https://github.com/json2d/user-packages
Last synced: about 1 month ago
JSON representation
pulls simple metadata for all npm packages by user
- Host: GitHub
- URL: https://github.com/json2d/user-packages
- Owner: json2d
- Created: 2017-08-10T21:05:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-10T21:05:09.000Z (over 7 years ago)
- Last Synced: 2024-11-14T18:07:55.224Z (2 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# user-packages
pulls simple metadata for all npm packages by user
## Install
```sh
npm install user-packages --save
```## Usage
Create a readable stream of metadata objects for each package belonging to a specific user:
```javascript
const userPackages = require('user-packages')const user = 'npm'
const npmPackages = userPackages.createStream(user)npmPackages.on('data',console.log)
```##### Output Example
```
{ lastPublish: { maintainer: 'ehsalazar', time: '2017-01-13T04:00:41.207Z' },
name: 'extnode',
description: 'This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.',
maintainers: [ 'npm' ],
'dist-tags': { latest: '5.0.0' },
permissions: 'write',
isPrivate: false }{ lastPublish: { maintainer: 'fac3', time: '2017-06-15T20:02:26.247Z' },
name: 'biotix',
description: 'A JavaScript class system',
maintainers: [ 'npm' ],
'dist-tags': { latest: '0.1.0-a' },
permissions: 'write',
isPrivate: false }/* ...more packages... */
```
## Dependencies
- [axios](https://github.com/mzabriskie/axios): Promise based HTTP client for the browser and node.js
## License
ISC