<commit_before>#!/usr/bin/env node
'use strict';
const meow = require('meow');
const logSymbols = require('log-symbols');
const chalk = require('chalk');
const npmName = require('npm-name');

const cli = meow(`
	Usage
	  $ npm-name <name>

	Examples
	  $ npm-name chalk
	  ${logSymbols.error} ${chalk.bold('chalk')} is unavailable
	  $ npm-name unicorn-cake
	  ${logSymbols.success} ${chalk.bold('unicorn-cake')} is available

	Exits with code 0 when the name is available or 2 when taken
`);

const input = cli.input[0];

if (!input) {
	console.error('Package name required');
	process.exit(1);
}

npmName(input).then(available => {
	const name = chalk.bold(input);<commit_msg>support searching for package name that are numbers<commit_after>#!/usr/bin/env node
'use strict';
const meow = require('meow');
const logSymbols = require('log-symbols');
const chalk = require('chalk');
const npmName = require('npm-name');

const cli = meow(`
	Usage
	  $ npm-name <name>

	Examples
	  $ npm-name chalk
	  ${logSymbols.error} ${chalk.bold('chalk')} is unavailable
	  $ npm-name unicorn-cake
	  ${logSymbols.success} ${chalk.bold('unicorn-cake')} is available

	Exits with code 0 when the name is available or 2 when taken
`, {
	string: ['_']
});

const input = cli.input[0];

if (!input) {
	console.error('Package name required');
	process.exit(1);
}

npmName(input).then(available => {
	const name = chalk.bold(input);
{'fraction_non_alphanumeric': 0.15983026874115983, 'fraction_numerical': 0.005657708628005658, 'mean_word_length': 4.549019607843137, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7398303', 'n_tokens_mistral': 524, 'n_tokens_neox': 476, 'n_words': 129}