Socket
Socket
Sign inDemoInstall

init-package-json

Package Overview
Dependencies
Maintainers
4
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

init-package-json - npm Package Compare versions

Comparing version 1.10.1 to 1.10.2

CHANGELOG.md

9

default-input.js

@@ -15,3 +15,3 @@ var fs = require('fs')

function niceName (n) {
return n.replace(/^node-|[.-]js$/g, '').toLowerCase()
return n.replace(/^node-|[.-]js$/g, '').replace(' ', '-').toLowerCase()
}

@@ -50,3 +50,8 @@

var name = package.name || basename
var spec = npa(name)
var spec
try {
spec = npa(name)
} catch (e) {
spec = {}
}
var scope = config.get('scope')

@@ -53,0 +58,0 @@ if (scope) {

@@ -119,3 +119,3 @@

console.log('About to write to %s:\n\n%s\n', packageFile, d)
read({prompt:'Is this ok? ', default: 'yes'}, function (er, ok) {
read({prompt:'Is this OK? ', default: 'yes'}, function (er, ok) {
if (er) {

@@ -122,0 +122,0 @@ return cb(er)

{
"name": "init-package-json",
"version": "1.10.1",
"version": "1.10.2",
"main": "init-package-json.js",
"scripts": {
"test": "tap test/*.js"
"prerelease": "npm t",
"postrelease": "npm publish && git push --follow-tags",
"release": "standard-version -s",
"test": "tap --nyc-arg=--all --coverage test"
},

@@ -29,2 +32,3 @@ "repository": {

"rimraf": "^2.1.4",
"standard-version": "^4.3.0",
"tap": "^10.3.0"

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

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