New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

publicsuffix

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

publicsuffix

JavaScript version of the Public Suffix List

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Weekly downloads
1
decreased by-75%
Maintainers
0
Weekly downloads
 
Created
Source

publicsuffix-js

Implements the algorithm to distinguish separate domains (for example browsers need to know that for their cookies and authorization models). Unfortunately there is no better algorithm than looking-up a published list.

See http://publicsuffix.org/ for more details.

Have fun, Jonas

Licence

All code of this project is in public domain. It is assumed that contributors loose their copyrights on code they contribute. See http://unlicence.org for more details.

Ideas for later (or if you want to help)

  • Changing the list to a reverse hash tree could be more space efficient. Lookup would maybe also be faster, but there is not efficiency problem for me. A hash tree like {uk: {co: ...

  • Provide a mean to update the list at runtime. It's hard to do that in the browser though.

FAQs


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