0.1.0 • Published 9 years ago
john-cname v0.1.0
john-cname
A bad pun that turns domains into CNAME files
Install
NPM:
$ npm install john-cnameYarn:
$ yarn add john-cnameUsage
const cname = require('john-cname')
cname('http://cname.cool/', 'build')
// Outputs a properly formatted CNAME file in ./buildAPI
cname(domain, path)
domain
Type: string
Domain the CNAME file should contain. Protocols and trailing slashes are automatically removed.
cname('http://cname.cool/', 'build')
// -> cname.coolpath
Type: string
Path to output the CNAME file.
cname('http://cname.cool/', 'build')
// -> ./build/CNAMELicense
MIT © Nick Pfisterer
0.1.0
9 years ago