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.
|
[](https://www.npmjs.com/package/cflare)
|
||||||
|
[](https://GitLab.com/pushrocks/cflare)
|
||||||
|
[](https://github.com/pushrocks/cflare)
|
||||||
|
[](https://pushrocks.gitlab.io/cflare/)
|
||||||
|
|
||||||
## Status
|
## Status for master
|
||||||
[](https://travis-ci.org/pushrocks/cflare)
|
[](https://GitLab.com/pushrocks/cflare/commits/master)
|
||||||
|
[](https://GitLab.com/pushrocks/cflare/commits/master)
|
||||||
|
[](https://www.npmjs.com/package/cflare)
|
||||||
|
[](https://david-dm.org/pushrocks/cflare)
|
||||||
|
[](https://www.bithound.io/github/pushrocks/cflare/master/dependencies/npm)
|
||||||
|
[](https://www.bithound.io/github/pushrocks/cflare)
|
||||||
|
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||||
|
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||||
|
[](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:
|
[](https://push.rocks)
|
||||||
[](https://lossless.com/)
|
|
||||||
|
|
||||||
[](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…
x
Reference in New Issue
Block a user