
Research
Security News
The Landscape of Malicious Open Source Packages: 2025 Mid‑Year Threat Report
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
is-name-taken
Advanced tools
Check if an NPM package name is taken.
Validates an NPM package name and then checks if a conflicting package exists. Also accounts for punctuation differences.
yarn add is-name-taken
npm install is-name-taken
import { isTaken, isValid } from "is-name-taken";
// Check if a package name is taken, and if so, return the conflict:
isTaken("ch-alk"); // "chalk"
// If not taken, return false
isTaken("package-that-doesnt-exist"); // false
// If invalid, return true
isTaken("INVALID_NAME"); // true
// Check if a package name is valid
isValid("chalk"); // true
isValid("INVALID_NAME"); // false
import { Options } from "is-name-taken";
type Options = {
/**
* Maximum milliseconds after a sync to avoid re-syncing
*/
maxAge?: number;
/**
* Setting optimistic to true will skip syncing latest packages from NPM.
* This is faster, but may lead to inconsistencies with recently published packages.
*/
optimistic?: boolean;
};
function isValid(name: string): boolean;
function isTaken(name: string, options?: Options): Promise<string | boolean>;
FAQs
Check if an NPM package name is taken
The npm package is-name-taken receives a total of 11,423 weekly downloads. As such, is-name-taken popularity was classified as popular.
We found that is-name-taken demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.