New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

es-env-remove-footguns

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-env-remove-footguns

Removing footguns from an ECMAScript environment

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

es-env-remove-footguns

Removing some footguns from an ECMAScript environment.

WARNING! this will turn the environment you're running in non-standard. Your own code or some dependency code may break as a result.

Install

npm install es-env-remove-footguns --save

How to use it

Just require it before anything else. Beware, this may break dependent packages. Use at your own risk!

require('es-env-remove-footguns');

Potential limitations

For now, this has only been tested and used on Node.js™ 0.10. It should work fine on 0.12 and io.js but in the unlikely case you run into problems, please file an issue

Changes

(should) remove Object.prototype.proto

Using this one for setting hurts performance and for getting, the standard Object.getPrototypeOf does the job fine

Replace isNaN with a function that throws

isNaN is broken, ES6 fixed it with Number.isNaN, let's just kill isNaN.

Licence

ISC

Keywords

FAQs

Package last updated on 07 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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