2017-12-08 00:23:38 +02:00
2017-12-08 00:23:31 +02:00
2017-12-07 23:57:50 +02:00
2017-12-07 23:57:50 +02:00
2017-12-07 23:57:50 +02:00
2017-12-07 23:57:50 +02:00
2017-12-07 23:57:50 +02:00
2017-12-07 23:57:50 +02:00
2017-12-07 23:57:50 +02:00
2017-12-07 23:57:50 +02:00
2017-12-07 23:57:50 +02:00
2017-12-08 00:23:38 +02:00
2017-12-07 23:57:50 +02:00
2017-12-07 23:57:50 +02:00
2017-12-07 23:57:50 +02:00
2017-12-07 23:57:50 +02:00

fetch-from-npm-registry

A fetch lib specifically for using with the npm registry

npm version Build Status

Installation

npm i -S fetch-from-npm-registry

Usage

'use strict'
const createFetcher = require('fetch-from-npm-registry').default

const fetchFromNpmRegistry = createFetcher({userAgent: 'fetch-from-npm-registry'})

fetchFromNpmRegistry('https://registry.npmjs.org/is-positive')
  .then(res => res.json())
  .then(metadata => console.log(JSON.stringify(metadata.versions['1.0.0'], null, 2)))
  //> {
  //    "name": "is-positive",
  //    "version": "1.0.0",
  //    "devDependencies": {
  //      "ava": "^0.0.4"
  //    },
  //    "_hasShrinkwrap": false,
  //    "directories": {},
  //    "dist": {
  //      "shasum": "88009856b64a2f1eb7d8bb0179418424ae0452cb",
  //      "tarball": "https://registry.npmjs.org/is-positive/-/is-positive-1.0.0.tgz"
  //    },
  //    "engines": {
  //      "node": ">=0.10.0"
  //    }
  //  }

License

MIT © Zoltan Kochan

Description
No description provided
Readme MIT 292 MiB
Languages
TypeScript 98.8%
JavaScript 0.8%
Shell 0.4%