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

new-error

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

new-error - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1-security

29

package.json
{
"name": "new-error",
"version": "0.0.0",
"description": "Create Error Objects With String Formatting",
"version": "0.0.1-security",
"description": "",
"main": "index.js",
"scripts": {
"test": "fox"
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"new-format": "*"
},
"keywords": [
"error",
"string",
"formatting"
],
"repository": {
"url": "git@github.com:azer\/new-error.git",
"type": "git"
"type": "git",
"url": "git+https://github.com/npm/security-holder.git"
},
"author": "Azer Ko\u00e7ulu <azer@kodfabrik.com>",
"license": "BSD"
}
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/npm/security-holder/issues"
},
"homepage": "https://github.com/npm/security-holder#readme"
}

@@ -1,20 +0,9 @@

## new-error
# Security holding package
Create Error Objects With String Formatting
This package name is not currently in use, but was formerly occupied
by a popular package. To avoid malicious use, npm is hanging on to
the package name, but loosely, and we'll probably give it to you if
you want it.
```js
newError = require('new-error')
error = newError('There is no result for "{0}". Did you mean "{1}" ?', 'f00ar', 'foo bar')
error.message
// => There is no result for "f00ar". Did you mean "foo bar" ?
// Objects also can be passed.
new Error('Invalid e-mail "{email}" and username "{username}"', { email: 'foo@foo', username: '!!!11' })
```
## Install
```bash
$ npm install new-error
```
You may adopt this package by contacting support@npmjs.com and
requesting the name.
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