Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

Commit f201a98

Browse files
committed
Fixed linting error
1 parent 9d50928 commit f201a98

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,32 @@
22

33
[![Build Status](https://travis-ci.org/Yahapi/node-yahapi.svg?branch=master)](https://travis-ci.org/Yahapi/node-yahapi) [![Coverage Status](https://coveralls.io/repos/Yahapi/node-yahapi/badge.svg?branch=master)](https://coveralls.io/r/Yahapi/node-yahapi?branch=master)
44

5-
This library contains utility classes for building a Yahapi-style REST API in Node/IO.
5+
This library contains utility classes for building a Yahapi-style REST API in Node/IO.js
66

77
Currently it contains the following classes:
88

9+
- **Collection**: utility class to create a collection resource representation.
10+
- **LinksBuilder**: utility class to add links to your JSON response.
911
- **RestErrors**: a collection of common HTTP errors.
10-
- **LinksBuilder**: helper to add links to your JSON response.
11-
- **Collection**: helper to create a collection resource representation.
1212

1313
## Collection
1414

1515
The collection resource representation contains an array with additional metadata
16-
and links to aid simplify the client when paginating, sorting or drilling down.
16+
and links to aid the client with paginating, sorting and/or drilling down.
1717

1818
```javascript
1919
var Collection = require('yahapi').Collection;
2020

2121
var items = [1,2,3,4,5,6];
2222
var requestUrl = 'http://www.example.org/test/12345?limit=3&offset=0';
2323

24-
var collection = new Collection(requestUrl, items)
24+
var result = new Collection(requestUrl, items)
2525
.paginate(10, 23)
2626
.transform(function(elm) { return elm * 2 })
2727
.link('customLink', '/my/custom/link')
2828
.build();
2929

30-
console.log(collection);
30+
console.log(result);
3131
/*
3232
{
3333
meta: {

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var requestUrl = 'http://www.example.org/test/12345?limit=3&offset=0';
77

88
var collection = new Collection(requestUrl, items)
99
.paginate(10, 23)
10-
.transform(function(elm) { return elm * 2 })
10+
.transform(function(elm) { return elm * 2; })
1111
.link('customLink', '/my/custom/link')
1212
.build();
1313

0 commit comments

Comments
 (0)