This package has been deprecated

    Author message:

    cflare has been deprecated in favour of @mojoio/cloudflare - please upgrade asap!!!

    cflare
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.5 • Public • Published

    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

    Install

    npm i cflare

    DownloadsWeekly Downloads

    149

    Version

    1.0.5

    License

    MIT

    Last publish

    Collaborators

    • philkunz