Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
effective-domain-name-parser
Advanced tools
[![devDependency Status](https://david-dm.org/dontcallmedom/node-domain-name-parser/dev-status.svg)](https://david-dm.org/dontcallmedom/node-domain-name-parser#info=devDependencies)
This is very simple library for Node to parse a domain name into Top Level Domain / Second Level Domain / Subdomains based on the list of effective Top Level Domains maintained by Mozilla.
Install with npm install effective-domain-name-parser
.
var domainNameParser = require("effective-domain-name-parser");
console.log(domainNameParser.parse('www.example.com'));
// { tld: "com", sld: "example", "subdomain": "www" }
console.log(domainNameParser.parse('www.example.co.uk'));
// { tld: "co.uk", sld: "example", "subdomain": "www" }
The list of TLDs used by the library is built with node buildPLS.js
. This package should get updated each time the list is.
FAQs
[![devDependency Status](https://david-dm.org/dontcallmedom/node-domain-name-parser/dev-status.svg)](https://david-dm.org/dontcallmedom/node-domain-name-parser#info=devDependencies)
We found that effective-domain-name-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.