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

npm-name

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-name

Check whether a package or organization name is available on npm

  • 5.5.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
48K
decreased by-64.93%
Maintainers
1
Weekly downloads
 
Created

What is npm-name?

The npm-name package is used to check the availability of package names on the npm registry. It helps developers to determine if a particular package name is already taken or if it is available for use.

What are npm-name's main functionalities?

Check single package name

This feature allows you to check if a single package name is available on the npm registry. The code sample demonstrates how to use the npm-name package to check the availability of 'some-package-name'.

const npmName = require('npm-name');

(async () => {
  const isAvailable = await npmName('some-package-name');
  console.log(isAvailable ? 'Available' : 'Taken');
})();

Check multiple package names

This feature allows you to check the availability of multiple package names at once. The code sample shows how to check the availability of 'package-one' and 'package-two' using the npm-name package.

const npmName = require('npm-name');

(async () => {
  const result = await npmName.many(['package-one', 'package-two']);
  console.log(result);
})();

Check scoped package name

This feature allows you to check the availability of a scoped package name. The code sample demonstrates how to check if '@scope/some-package-name' is available on the npm registry.

const npmName = require('npm-name');

(async () => {
  const isAvailable = await npmName('@scope/some-package-name');
  console.log(isAvailable ? 'Available' : 'Taken');
})();

Other packages similar to npm-name

Keywords

FAQs

Package last updated on 30 Jun 2019

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