john-cname
A bad pun that turns domains into CNAME files
Install
NPM:
$ npm install john-cname
Yarn:
$ yarn add john-cname
Usage
const cname = // Outputs a properly formatted CNAME file in ./build
API
cname(domain, [path])
domain
Type: string
Domain the CNAME file should contain. Protocols and trailing slashes are automatically removed.
// -> cname.cool
path
Type: string
Path to output the CNAME file.
// -> ./build/CNAME
License
MIT © Nick Pfisterer