@citation-js/plugin-npm

0.6.1 • Public • Published

This plugin can retrieve bibliographical data from packages in the main npm registry.

Install

npm

npm install @citation-js/plugin-npm

Browser

Make a build with @citation-js/plugin-npm on the build tool!

Use

Register the plugin by require-ing it:

require('@citation-js/plugin-npm')

The plugin can then be used as following:

Cite.async('https://www.npmjs.com/package/@citation-js/plugin-software-formats')

{
  type: 'book',
  title: '@citation-js/plugin-software-formats',
  version: '0.4.2',
  issued: { 'date-parts': [ [2020, 30, 21] ] },
  abstract: 'Collection of software-related input and output formats for Citation.js',
  URL: 'https://github.com/larsgw/citation.js-plugin-software-formats#readme',
  author: [ { given: 'Lars', family: 'Willighagen' } ]
}

Note that the author field is limited to a single author, since the maintainers data only has usernames and there is no public API to retrieve the associated full name.

Package Sidebar

Install

npm i @citation-js/plugin-npm

Weekly Downloads

1,471

Version

0.6.1

License

MIT

Unpacked Size

5.05 kB

Total Files

4

Last publish

Collaborators

  • larsgw