New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

namehog

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

namehog

A minimal command-line tool to check if a username is available on Twitter

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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
1 # available

$ npx namehog myTakenUsername
0 # 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.

FAQs

Package last updated on 22 Jul 2018

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