Go to file
2019-07-18 17:12:03 +02:00
test fix(core): update 2019-07-18 17:12:03 +02:00
ts fix(core): update 2019-07-18 17:12:03 +02:00
.gitignore fix(core): update 2019-07-18 11:51:56 +02:00
.gitlab-ci.yml fix(core): update 2019-07-18 11:51:56 +02:00
LICENSE add lossless badge 2016-04-27 02:27:52 +02:00
npmextra.json fix(core): update 2019-07-18 11:51:56 +02:00
package-lock.json 3.0.2 2019-07-18 15:31:25 +02:00
package.json 3.0.2 2019-07-18 15:31:25 +02:00
qenv.yml fix(core): update 2019-07-18 11:51:56 +02:00
README.md fix(core): update 2019-07-18 11:51:56 +02:00
tslint.json fix(core): update 2019-07-18 14:25:10 +02:00

@mojoio/cloudflare

easy cloudflare management

Status for master

build status coverage report npm downloads per month Known Vulnerabilities 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 | By using this npm module you agree to our privacy policy

repo-footer