dot-dev

Tells you whether the document being served on a .dev domain.

Usage no npm install needed!

<script type="module">
  import dotDev from 'https://cdn.skypack.dev/dot-dev';
</script>

README

dot-dev

Javascript module for the browser that tells you whether the document is being served on a .dev domain.

Installation

$ npm install dot-dev

API

var dev = require('dot-dev');

if (dev)
    console.log('The document is being served on a .dev domain.');

License

MIT