update README
This commit is contained in:
parent
2ee94dd179
commit
6bc7edceb9
56
README.md
56
README.md
@ -1,31 +1,47 @@
|
||||
# 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.
|
||||
I (Phil from Lossless) expect this package to be ready 1. of June 2016.
|
||||
## Availabililty
|
||||
[](https://www.npmjs.com/package/cflare)
|
||||
[](https://GitLab.com/pushrocks/cflare)
|
||||
[](https://github.com/pushrocks/cflare)
|
||||
[](https://pushrocks.gitlab.io/cflare/)
|
||||
|
||||
## Status
|
||||
[](https://travis-ci.org/pushrocks/cflare)
|
||||
## Status for master
|
||||
[](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
|
||||
Use TypeScript for best in class instellisense.
|
||||
|
||||
```javascript
|
||||
var cflare = require("cflare");
|
||||
var cflareInstance = new cflare();
|
||||
import * as cflare from 'cflare'
|
||||
|
||||
cflareInstance.auth({
|
||||
email:"",
|
||||
key:""
|
||||
});
|
||||
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(...)
|
||||
}
|
||||
|
||||
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://lossless.com/)
|
||||
|
||||
[](https://paypal.me/lossless)
|
||||
[](https://push.rocks)
|
||||
|
10
package.json
10
package.json
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "cflare",
|
||||
"version": "0.0.17",
|
||||
"description": "cloudflare management for CoreOS",
|
||||
"description": "easy cloudflare management",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
@ -9,18 +9,18 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/pushrocks/cflare.git"
|
||||
"url": "git+https://gitlab.com/pushrocks/cflare.git"
|
||||
},
|
||||
"keywords": [
|
||||
"CoreOS",
|
||||
"Push.Rocks",
|
||||
"cloudflare"
|
||||
],
|
||||
"author": "Lossless GmbH",
|
||||
"license": "MIT",
|
||||
"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": {
|
||||
"beautylog": "^6.1.1",
|
||||
"smartdelay": "^1.0.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user