### Install whois-raw Globally via npm Source: https://github.com/moneals/whois-raw/blob/master/README.md Installs the `whois-raw` library globally on your system, allowing it to be run directly from the command line. ```Shell $ npm install -g whois ``` -------------------------------- ### Install whois-raw Locally via npm Source: https://github.com/moneals/whois-raw/blob/master/README.md Installs the `whois-raw` library as a local dependency in your project's `node_modules` directory. ```Shell $ npm install whois ``` -------------------------------- ### Run whois-raw Tests Source: https://github.com/moneals/whois-raw/blob/master/README.md Executes the test suite for the `whois-raw` library using npm. ```Shell npm test ``` -------------------------------- ### Basic WHOIS Lookup in Node.js Source: https://github.com/moneals/whois-raw/blob/master/README.md Demonstrates how to perform a basic WHOIS lookup for a domain name using the `whois-raw` library in a Node.js application. ```JavaScript var whois = require('whois') whois.lookup('google.com', function(err, data) { console.log(data) }) ``` -------------------------------- ### WHOIS Lookup Options Object Structure Source: https://github.com/moneals/whois-raw/blob/master/README.md Defines the structure and available properties for the options object that can be passed to the `whois.lookup` function to customize its behavior. ```JavaScript { "server": "", // this can be a string ("host:port") or an object with host and port as its keys; leaving it empty makes lookup rely on servers.json "follow": 2, // number of times to follow redirects "timeout": 0, // socket timeout, excluding this doesn't override any default timeout value "verbose": false // setting this to true returns an array of responses from all servers "bind": null // bind the socket to a local IP address "proxy": { // (optional) SOCKS Proxy host: '118.190.206.111', port: 9999, userId: "optional", password: "optional", type: 5 // or 4 } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.