Go to file
2017-06-04 17:29:19 +02:00
dist go async/await 2017-06-04 17:29:19 +02:00
test go async/await 2017-06-04 17:29:19 +02:00
ts go async/await 2017-06-04 17:29:19 +02:00
.gitignore update dependencies 2016-07-31 23:54:13 +02:00
.gitlab-ci.yml update to new ci 2017-01-29 17:29:06 +01:00
.travis.yml added travis and improved README 2016-04-27 02:20:27 +02:00
LICENSE add lossless badge 2016-04-27 02:27:52 +02:00
package.json go async/await 2017-06-04 17:29:19 +02:00
qenv.yml update to latest dependencies 2016-06-20 22:56:09 +02:00
README.md update brand link 2017-02-12 22:28:26 +01:00
tslint.json now using smartrequest 2017-01-29 17:27:48 +01:00
yarn.lock go async/await 2017-06-04 17:29:19 +02:00

cflare

easy cloudflare management

Availabililty

npm git git docs

Status for master

build status coverage report npm downloads per month Dependency Status bitHound Dependencies bitHound Code TypeScript node JavaScript Style Guide

Usage

Use TypeScript for best in class instellisense.

import * as cflare from 'cflare'

let myCflareAccount = new cflare.CflareAccount()
testCflareAccount.auth({
    email: 'someuser@example.com',
    key: 'someLongApiKey'
})

let myAsyncCflareManagement = async () => {
    // get things
    let myZones = await myCflareAccount.listZones() // zones are fully typed
    let myIdForADomain = await myCflareAccount.getZoneId('example.com') // type number
    let myRecordsForADomain = await myCflareAccount.listRecords('example.com') // records are fully typed

    // set things
    myCflareAccount.updateRecord(...)
    myCflareAccount.createRecord(...)
    myCflareAccount.deleteRecord(...)
}

For further information read the linked docs at the top of this README.

MIT licensed | © Lossless GmbH

repo-footer