Skip to content

pfist/john-cname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

john-cname

A bad pun that turns domains into CNAME files

Build Status

Install

NPM:

$ npm install john-cname

Yarn:

$ yarn add john-cname

Usage

const cname = require('john-cname')

cname('http://cname.cool/', 'build')
// 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('http://cname.cool/', 'build')
// -> cname.cool

path

Type: string

Path to output the CNAME file.

cname('http://cname.cool/', 'build')
// -> ./build/CNAME

License

MIT © Nick Pfisterer

About

A bad pun that turns domains into CNAME files

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published