Skip to content

Commit

Permalink
Merge pull request #8 from sgoodgrove/tweak/readme
Browse files Browse the repository at this point in the history
Some minor rewording and typo fixes.
  • Loading branch information
jinhduong committed Jun 28, 2018
2 parents ca921a4 + 601eaa2 commit a4b0d6a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# linq-fns
.NET LINQ functions for Javascript, written by TypeScript.
- ⚑ Provide `Queryable<T>`, it's reusable, also variable and use `Predicate collection` for holding query and execute later.
- πŸ”¨ Contains almost the original .NET and some extends methods.
- πŸ”¨ Support `Promise` like as a input source.
- πŸ™… All `APIs` like a Javascript native methods so easily, simply implementation.
- πŸ“Š Includes some simple drivers. (like as `firebase real db`)
.NET LINQ functions for JavaScript written in TypeScript.
- ⚑ Provides `Queryable<T>`,which is reusable, variable and uses a *predicate collection* for deferred execution.
- πŸ”¨ Contains most of the original .NET methods and some additional methods.
- πŸ”¨ Supports `Promise` as an input source.
- πŸ™… All `APIs` are JavaScript native methods so can be easily incorporated into existing JavaScript projects.
- πŸ“Š Includes some simple drivers (such as `Firebase Realtime database`).

```js
npm install linq-fns --save
```

> This version just alpha so if have any problem, don't hesitate to let me know. πŸ‘‹
> This version is an alpha release so if you have any problems, please don't hesitate to let me know. πŸ‘‹
Browser client files at [Release](https://github.com/jinhduong/linq-fns/tree/master/release) folder.
Browser client files can be found in the [release](https://github.com/jinhduong/linq-fns/tree/master/release) folder.

### Basic example
#### Node or browser
Expand All @@ -30,15 +30,15 @@ let query = Queryable
.select(x => {
return {
area: x.key,
total: Queryable.fromSync(x.items).count() // Here will return number, not Promise<number>
total: Queryable.fromSync(x.items).count() // This will return a number, not Promise<number>
}
})
const asyncData = query.toList() // Will return Promise<{area:string, total:number}>
asyncData.then(data => {
console.log(data);
// [
// {area: 'Euro': total: 2},
// {area:'South Ameria', total: 1}
// {area:'South America', total: 1}
// ]
});
```
Expand All @@ -65,7 +65,7 @@ postsQuery.getQuery().where('...').select('...').toList().then(x=>'...');
const data = await postsQuery.getQuery().where('...').select('...').toList();

// WRITE DATA
// Just call not execute to server
// Prepare calls, but do not send requests to server
postsQuery.add(item);
postsQuery.remove(item);
postsQuery.update(item);
Expand All @@ -75,7 +75,7 @@ postsQuery.commitChanges();

```

#### localStogare
#### localStorage
```js

// Node
Expand Down

0 comments on commit a4b0d6a

Please sign in to comment.