Huge news!Announcing our $20M Series A led by Andreessen Horowitz.Learn more
Socket
Socket
Log inDemoInstall

npm-normalize-package-bin

Package Overview
Dependencies
0
Maintainers
6
Versions
5
Issues
File Explorer

Advanced tools

Install Socket

Protect your apps from supply chain attacks

Install

npm-normalize-package-bin

Turn any flavor of allowable package.json bin into a normalized object

    3.0.1latest
    GitHub
    npm

Version published
Maintainers
6
Weekly downloads
11,601,727
decreased by-1.98%

Weekly downloads

Changelog

Source

3.0.1 (2023-05-02)

Bug Fixes

Readme

Source

npm-normalize-package-bin

Turn any flavor of allowable package.json bin into a normalized object.

API

const normalize = require('npm-normalize-package-bin')
const pkg = {name: 'foo', bin: 'bar'}
console.log(normalize(pkg)) // {name:'foo', bin:{foo: 'bar'}}

Also strips out weird dots and slashes to prevent accidental and/or malicious bad behavior when the package is installed.

FAQs

Last updated on 02 May 2023

Did you know?

Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install
SocketSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc