update README
This commit is contained in:
parent
2ee94dd179
commit
6bc7edceb9
56
README.md
56
README.md
@ -1,31 +1,47 @@
|
|||||||
# cflare
|
# cflare
|
||||||
allows you to manage multiple cloudflare accounts.
|
easy cloudflare management
|
||||||
|
|
||||||
> Note: this package is still in alpha, so some things do not yet work.
|
## Availabililty
|
||||||
I (Phil from Lossless) expect this package to be ready 1. of June 2016.
|
[![npm](https://push.rocks/assets/repo-button-npm.svg)](https://www.npmjs.com/package/cflare)
|
||||||
|
[![git](https://push.rocks/assets/repo-button-git.svg)](https://GitLab.com/pushrocks/cflare)
|
||||||
|
[![git](https://push.rocks/assets/repo-button-mirror.svg)](https://github.com/pushrocks/cflare)
|
||||||
|
[![docs](https://push.rocks/assets/repo-button-docs.svg)](https://pushrocks.gitlab.io/cflare/)
|
||||||
|
|
||||||
## Status
|
## Status for master
|
||||||
[![Build Status](https://travis-ci.org/pushrocks/cflare.svg?branch=master)](https://travis-ci.org/pushrocks/cflare)
|
[![build status](https://GitLab.com/pushrocks/cflare/badges/master/build.svg)](https://GitLab.com/pushrocks/cflare/commits/master)
|
||||||
|
[![coverage report](https://GitLab.com/pushrocks/cflare/badges/master/coverage.svg)](https://GitLab.com/pushrocks/cflare/commits/master)
|
||||||
|
[![npm downloads per month](https://img.shields.io/npm/dm/cflare.svg)](https://www.npmjs.com/package/cflare)
|
||||||
|
[![Dependency Status](https://david-dm.org/pushrocks/cflare.svg)](https://david-dm.org/pushrocks/cflare)
|
||||||
|
[![bitHound Dependencies](https://www.bithound.io/github/pushrocks/cflare/badges/dependencies.svg)](https://www.bithound.io/github/pushrocks/cflare/master/dependencies/npm)
|
||||||
|
[![bitHound Code](https://www.bithound.io/github/pushrocks/cflare/badges/code.svg)](https://www.bithound.io/github/pushrocks/cflare)
|
||||||
|
[![TypeScript](https://img.shields.io/badge/TypeScript-2.x-blue.svg)](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||||
|
[![node](https://img.shields.io/badge/node->=%206.x.x-blue.svg)](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||||
|
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
Use TypeScript for best in class instellisense.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var cflare = require("cflare");
|
import * as cflare from 'cflare'
|
||||||
var cflareInstance = new cflare();
|
|
||||||
|
|
||||||
cflareInstance.auth({
|
let myCflareAccount = new cflare.CflareAccount()
|
||||||
email:"",
|
testCflareAccount.auth({
|
||||||
key:""
|
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(...)
|
||||||
|
}
|
||||||
|
|
||||||
cflareInstance.createRecord(); // returns promise with resolve function getting the response;
|
|
||||||
cflareInstance.removeRecord(); // returns promise with resolve function getting the response;
|
|
||||||
cflareInstance.copyRecord(); // returns promise with resolve function getting the response;
|
|
||||||
cflareInstance.listRecords(); // returns promise with resolve function getting the response;
|
|
||||||
cflareInstance.listDomains(); // returns promise with resolve function getting the response;
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### About the authors:
|
[![npm](https://push.rocks/assets/repo-header.svg)](https://push.rocks)
|
||||||
[![Project Phase](https://mediaserve.lossless.digital/lossless.com/img/createdby_github.svg)](https://lossless.com/)
|
|
||||||
|
|
||||||
[![Gitter](https://img.shields.io/badge/Support%20us-PayPal-blue.svg)](https://paypal.me/lossless)
|
|
||||||
|
10
package.json
10
package.json
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "cflare",
|
"name": "cflare",
|
||||||
"version": "0.0.17",
|
"version": "0.0.17",
|
||||||
"description": "cloudflare management for CoreOS",
|
"description": "easy cloudflare management",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -9,18 +9,18 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/pushrocks/cflare.git"
|
"url": "git+https://gitlab.com/pushrocks/cflare.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"CoreOS",
|
"Push.Rocks",
|
||||||
"cloudflare"
|
"cloudflare"
|
||||||
],
|
],
|
||||||
"author": "Lossless GmbH",
|
"author": "Lossless GmbH",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/pushrocks/cflare/issues"
|
"url": "https://gitlab.com/pushrocks/cflare/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/pushrocks/cflare#readme",
|
"homepage": "https://gitlab.com/pushrocks/cflare#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"beautylog": "^6.1.1",
|
"beautylog": "^6.1.1",
|
||||||
"smartdelay": "^1.0.1",
|
"smartdelay": "^1.0.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user