Skip to content

surge-sh/a-record

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Record

Share specific help for adding DNS Records to a domain.

Getting started

To add A Record to your project’s dependencies, install it with npm:

npm install --save a-record

Now, you can require it and within you application:

var hosts = require("a-record");

From here, you might pass the data along to your templates so you can iterate through the entire list:

ul
  each host in hosts
    li: a(href="#{ host.arecord }") Add an A Record using #{ host.name }
    li: a(href="#{ host.cname }")   Add a CNAME using #{ host.name }

Or, provide specific instructions if you already know the nameserver:

console.log('Get help at: ' + host['namecheap.com'].arecord);
// Get help at http://www.namecheap.com/support/knowledgebase/article.aspx/319/78/

License

The MIT License (MIT)

Copyright © 2015 Kenneth Ormandy & Chloi Inc.