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

read-package-json

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

read-package-json - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

2

package.json
{
"name": "read-package-json",
"version": "0.1.7",
"version": "0.1.8",
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",

@@ -5,0 +5,0 @@ "description": "The thing npm uses to read package.json files with semantics and defaults and validation",

@@ -243,2 +243,3 @@ // vim: set softtabstop=16 shiftwidth=16:

function readme_(file, data, rm, cb) {
var rmfn = path.basename(rm);
fs.readFile(rm, "utf8", function (er, rm) {

@@ -248,2 +249,3 @@ // maybe not readable, or something.

data.readme = rm
data.readmeFilename = rmfn
return cb(er, data)

@@ -250,0 +252,0 @@ })

@@ -26,2 +26,3 @@ // vim: set softtabstop=16 shiftwidth=16:

t.equal(data.main, package.main)
t.equal(data.readmeFilename, 'README.md')

@@ -28,0 +29,0 @@ // optional deps are folded in.

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