Store domain data in a tree structure
npm install domain-tree
const {DomainNames} = require('domain-tree')
let tree = new DomainNames()
tree.addDomain('me.whatever.com', { dev: true })
tree.addDomain('them.whatever.com', { dev: false })
tree.addDomain('other.com', { other: true })
console.log( tree )
console.log( tree.toJSON() )
Matt Hoyle - [email protected]