Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

package-json

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

package-json - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

license

2

index.js

@@ -12,3 +12,3 @@ 'use strict';

got(registryUrl + encodeURIComponent(name) + '/' + version, function (err, data) {
if (err === 404) {
if (err && err.code === 404) {
cb(new Error('Package or version doesn\'t exist'));

@@ -15,0 +15,0 @@ return;

{
"name": "package-json",
"version": "1.0.1",
"version": "1.0.2",
"description": "Get the package.json of a package from the npm registry",

@@ -10,3 +10,3 @@ "license": "MIT",

"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
"url": "sindresorhus.com"
},

@@ -32,3 +32,3 @@ "engines": {

"dependencies": {
"got": "^1.0.1",
"got": "^2.4.0",
"registry-url": "^2.0.0"

@@ -35,0 +35,0 @@ },

@@ -8,3 +8,3 @@ # package-json [![Build Status](https://travis-ci.org/sindresorhus/package-json.svg?branch=master)](https://travis-ci.org/sindresorhus/package-json)

```sh
```
$ npm install --save package-json

@@ -20,6 +20,2 @@ ```

packageJson('pageres', 'latest', function (err, json) {
if (err) {
throw err;
}
console.log(json);

@@ -39,4 +35,9 @@ //=> { name: 'pageres', ... }

## Related
- [`npm-keyword`](https://github.com/sindresorhus/npm-keyword) - Get a list of npm packages with a certain keyword
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc