Skip to content
Browse files

Another attempt at fixing README.md

  • Loading branch information...
1 parent f38b538 commit 12503f040676e37445425c1c435bc568ebf3c411 @vially committed
Showing with 25 additions and 25 deletions.
  1. +25 −25 README.md
View
50 README.md
@@ -5,31 +5,31 @@ Node.js library for the cPanel/WHM API
$ npm install cpanel-lib
## Usage
- ``` js
- var cpanel = require('cpanel-lib');
-
- var options = {
- host: 'whm.example.com',
- port: 2087,
- secure: true,
- username: 'WHM_USERNAME',
- accessKey: 'YOUR_ACCESS_KEY'
- };
-
- var cpanelClient = cpanel.createClient(options);
-
- cpanelClient.call('version', {}, function (err, res) {
- console.log('WHM Version: %j', res.version);
- });
-
- cpanelClient.call('listaccts', {}, function (err, res) {
- console.log('Result: %j', res);
- });
-
- cpanelClient.callApi2('AddonDomain', 'listaddondomains', {}, function (err, res) {
- console.log('Result: %j', res);
- });
- ```
+```js
+var cpanel = require('cpanel-lib');
+
+var options = {
+ host: 'whm.example.com',
+ port: 2087,
+ secure: true,
+ username: 'WHM_USERNAME',
+ accessKey: 'YOUR_ACCESS_KEY'
+};
+
+var cpanelClient = cpanel.createClient(options);
+
+cpanelClient.call('version', {}, function (err, res) {
+ console.log('WHM Version: %j', res.version);
+});
+
+cpanelClient.call('listaccts', {}, function (err, res) {
+ console.log('Result: %j', res);
+});
+
+cpanelClient.callApi2('AddonDomain', 'listaddondomains', {}, function (err, res) {
+ console.log('Result: %j', res);
+});
+```
## API
cpanelClient.call(action, params, callback)

0 comments on commit 12503f0

Please sign in to comment.
Something went wrong with that request. Please try again.