Skip to content

Commit f7fc385

Browse files
committed
Add CI badge
1 parent 38c236d commit f7fc385

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
11
# Forge JavaScript SDK
22

3+
<p>
4+
<a href="https://travis-ci.org/GeoffSelby/nevexo-forge-javascript-sdk"><img src="https://travis-ci.org/GeoffSelby/nevexo-forge-javascript-sdk.svg?branch=master" alt="Build Status"></a>
5+
</p>
6+
37
A complete, promise-based Javascript SDK for the Laravel Forge API
48

59
## Installation
610

7-
With yarn (*recommended*):
8-
``` bash
11+
With yarn (_recommended_):
12+
13+
```bash
914
yarn add nevexo-forge-js
1015
```
1116

1217
With npm:
13-
``` bash
18+
19+
```bash
1420
npm install nevexo-forge-js
1521
```
1622

1723
## Basic Usage
1824

19-
``` js
25+
```js
2026
import Forge from 'nevexo-forge-js';
2127

2228
// Instantiate the SDK
@@ -26,12 +32,12 @@ const forge = new Forge('API_TOKEN_HERE');
2632
try {
2733
const servers = await forge.servers.list();
2834
console.log(servers);
29-
} catch(error) {
35+
} catch (error) {
3036
console.log(error);
3137
}
3238
```
3339

34-
> The SDK utilizes native ES6 promises so you should use async/await to handle the resolved promise. You can, of course, use ```.then()``` and ```.catch()``` if you prefer.
40+
> The SDK utilizes native ES6 promises so you should use async/await to handle the resolved promise. You can, of course, use `.then()` and `.catch()` if you prefer.
3541
3642
## Documentation
3743

0 commit comments

Comments
 (0)