Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

expensive

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expensive

A Namecheap.com Client To Register And Manage Domains From The CLI.

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

namecheap

expensive

npm version

expensive is a namecheap.com client to check domain availability, obtain WHOIS information, register domains, update DNS hosts and control domains' name servers via the CLI. It allows to login using 2-factor authentication and white-list IP addresses without having to use the web interface. The package uses the API and Web API libraries to make requests.

Package ManagerCommand
Yarnyarn global add expensive
Npmnpm i -g expensive

Expensive Demo Of Registering A Domain Name In CLI

Table Of Contents

Configuration

Upon the first run the program will ask a series of questions:

Username: <namecheap-username>
Api key https://ap.www.namecheap.com/settings/tools/apiaccess/: <api key>
Client ip [10.10.10.10]: <the ip>
Last 3 digit of phone to use for 2 factor auth: <055>

After they've been answered, expensive will remember the answers and store them in the .expensiverc file in the home directory (or .expensive-sandboxrc), and use this data for all calls to the API.

Client IP is required for requests, but if not given, it will be acquired automatically each time prior to calls.

The last 3 digits will be used to during the second-stage of the 2-factor web auth required to white-list unknown IP addresses.

Sandbox

To use the sandbox version of the app for testing, either the SANDBOX environmental variable needs to be set, or --sandbox or -s flags should be passed.

CLI

The program can be used from the terminal.

expensive -h
expensive
A CLI application to access namecheap.com domain name registrar API.

	domains          	The domain name for operations, or multiple domain names
	                 	for checking availability.
	--init, -I       	Initialise package configuration interactively, i.e.,
	                 	the API key and ip address.
	--info, -i       	Show the information for the domain.
	--register, -r   	Register the domain.
	--whois, -w      	Display brief WHOIS data.
	--Whois          	Display full WHOIS data.
	--coupon         	Find this month's coupon.
	--sandbox, -s    	Use the sandbox API.
	--whitelistIP, -W	Add current IP address to the list of white-listed ones.
	--version, -v    	Display the current version number.
	--help, -h       	Show help information.

expensive domain.com --info
Display the information about the domain on the account.
Also displays DNS hosts if using Namecheap's DNS.

expensive
Print the list of domains belonging to the account.

	--sort, -S    	Sort by this field (name, expire, create).
	--desc, -D    	Sort in descending order.
	--filter, -F  	Filter by this word.
	--pageSize, -P	The page size.
	--type, -T    	Domain type (ALL, EXPIRING, EXPIRED).

expensive domain.com [--record A] [--TXT|A|CNAME|address 10.10.10.10] [--host "*"]...
Manipulate DNS Records.

	--record       	The record type. Can be one of the following:
	               	A, AAAA, ALIAS, CAA, CNAME, MX, MXE,
	               	NS, TXT, URL, URL301, FRAME.
	--TXT, -TXT    	Add a TXT record with this address to the domain.
	               	Alias for --record TXT --address <TXT>.
	--A, -A        	Add an A record with this address to the domain.
	               	Alias for --record A --address <A>.
	--CNAME, -CNAME	Add a CNAME record with this address to the domain.
	               	--record CNAME --address <CNAME>.
	--ttl          	When adding host records, sets the _TTL_.
	               	By default, namecheap sets 1800.
	--host         	The host name for adding dns records.
	               	Default: @.
	--address      	The address of the new host record.
	--mxpref       	MX preference for hosts. Applicable to MX records only.
	--github, -g   	Setup GitHub pages for the apex domain as per docs
	               	https://git.io/fjyr7 Also removes the parking page
	               	and URL redirect. All other hosts are kept itact.
	--delete, -d   	Remove the specified host record.

expensive domain.com -r [-p PROMO]
Register the domain name. Expensive will attempt to find the promo
code online, and compare its price to the normal price.

	--promo, -p	Use this promo code on registration.
	--years, -y	The number of years that the domain should be registered for.

expensive domain|domain.com [domain.org] [-f] [-z app,page]
Check domains for availability. When no TLD is given,
com, net, org, biz, co, cc, io, bz, nu, app, page are checked.

	--free, -f 	Display only free domains.
	--zones, -z	Check in these zones only.
CommandMeaningWiki
expensiveList all domains.📜List Domains
expensive hello world example.comCheck domain(s)' availability.Check Availability
expensive example.com -iDisplay information about a domain associated with the account.ℹ️Domain Information
expensive example.com -wRequest WHOIS data.👁Show Whois
expensive example.com -rRegister a domain name.💵Registration
expensive --initInitialises or updates settings such as API key.🔏Initialise Config
expensive domain.com --githubUpdates hosts records to include GitHub apex records. GitHub Pages
expensive --versionPrint version.Version
expensive --helpShow help.Usage

Result Log

A log of search queries and found free domains is written to HOMEDIR/.expensive.log.

Art Deco © Art Deco 2020 Tech Nation Visa Tech Nation Visa Sucks

Keywords

FAQs

Package last updated on 07 Jan 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc