namehog

1.0.0 • Public • Published

namehog

Minimal command-line tool to check if a username is available for an account to claim on Twitter.

Usage

Namehog is designed as a command-line tool. Invoke it with npx:

$ npx namehog myDreamUsername
Available!
 
$ npx namehog myTakenUsername
Username has already been taken

Namehog can also return results in a boolean form, for easier scripting:

$ npx namehog myDreamUsername
# available 
 
$ npx namehog myTakenUsername
# unavailable 

Namehog also provides a validate function when used within another package. Use it by importing the validate function from the package:

import { validate } from 'namehog';
 
const {
    valid, // true/false 
    message, // string message / reason for unavailability if unavailable from Twitter API
= await validate('myDreamUsername');

License

This project is licensed entirely under the permissive MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i namehog

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

5.07 kB

Total Files

5

Last publish

Collaborators

  • thesephist