cookie-domain-monster

Utility function for extracting cookie domain from a list of hosts

Usage no npm install needed!

<script type="module">
  import cookieDomainMonster from 'https://cdn.skypack.dev/cookie-domain-monster';
</script>

README

cookie-domain-monster

Build Status

A library that extracts high level cookie domains from a list of urls

Install

$ npm install cookie-domain-monster

Usage

import CookieDomainMonster from 'cookie-domain-monster';

var urls = ['http://www.honeypot.io', 'https://blog.honeypot.io']
var cookieDomains = CookieDomainMonster(urls) // ['.honeypot.io']

for more examples checkout the tests

Contributin

  1. Add some tests
  2. Add some code
  3. Run npm test
  4. Send a pull request

License

Copyright © 2016 Honeypot GmbH. It is free software, and may be redistributed under the terms specified in the LICENSE file.

About Honeypot

Honeypot

Honeypot is a developer focused job platform. The names and logos for Honeypot are trademarks of Honeypot GmbH.