npm-normalize-package-bin

WebJar for npm-normalize-package-bin

License

License

ISC
Categories

Categories

ORM Data
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

npm-normalize-package-bin
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

npm-normalize-package-bin
WebJar for npm-normalize-package-bin
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/npm/npm-normalize-package-bin

Download npm-normalize-package-bin

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/npm-normalize-package-bin/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>npm-normalize-package-bin</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/npm-normalize-package-bin/
implementation 'org.webjars.npm:npm-normalize-package-bin:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/npm-normalize-package-bin/
implementation ("org.webjars.npm:npm-normalize-package-bin:1.0.1")
'org.webjars.npm:npm-normalize-package-bin:jar:1.0.1'
<dependency org="org.webjars.npm" name="npm-normalize-package-bin" rev="1.0.1">
  <artifact name="npm-normalize-package-bin" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='npm-normalize-package-bin', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "npm-normalize-package-bin" % "1.0.1"
[org.webjars.npm/npm-normalize-package-bin "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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.

org.webjars.npm

npm

node package manager

Versions

Version
1.0.1