1.0.1 • Published 1 year ago

@haydenbleasel/npm-feed v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

NPM Feed

A handy HTML to JSON parser for NPM.

Installation

yarn add @haydenbleasel/npm-feed

Usage

The module exports a single function that takes an NPM username (without the @) and optionally, a boolean that determines whether to filter for packages namespaced under the @scope of the username.

import getNpmFeed from '@haydenbleasel/npm-feed';

/* Example of fetching all packages */
const feed1 = await getNpmFeed('haydenbleasel');

/* Example of fetching namespaced packages only */
const feed2 = await getNpmFeed('haydenbleasel', true);

Contributing

If you have suggestions for how this module could be improved, or want to report a bug, open an issue! I'd love all and any contributions.