# pkg-name **Repository Path**: mirrors_sindresorhus/pkg-name ## Basic Information - **Project Name**: pkg-name - **Description**: Check whether a package name is available on npm and bower - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-05-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Deprecated Use [`npm-name`](https://github.com/sindresorhus/npm-name) instead. --- # pkg-name [![Build Status](https://travis-ci.org/sindresorhus/pkg-name.svg?branch=master)](https://travis-ci.org/sindresorhus/pkg-name) > Check whether a package name is available on npm and bower ## Install ``` $ npm install --save pkg-name ``` ## Usage ```js var pkgName = require('pkg-name'); pkgName('chalk', function (err, available) { console.log(available); //=> {npm: false, bower: false} }); ``` ## CLI ![](screenshot.png) ``` $ npm install --global pkg-name ``` ``` $ pkg-name --help Usage $ pkg-name Examples $ bower-name multiline ✖ Unavailable $ bower-name unicorn-cake ✔ Available ``` ## License MIT © [Sindre Sorhus](http://sindresorhus.com)