Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kutyel/linq.ts
πLINQ for TypeScript
https://github.com/kutyel/linq.ts
hacktoberfest linq linq-expressions linq-extensions linq-methods linq-samples linq-to-objects linq-typescript typescript
Last synced: 28 days ago
JSON representation
πLINQ for TypeScript
- Host: GitHub
- URL: https://github.com/kutyel/linq.ts
- Owner: kutyel
- License: mit
- Created: 2016-02-26T09:58:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-05-16T12:05:14.000Z (over 1 year ago)
- Last Synced: 2024-05-18T02:02:56.466Z (6 months ago)
- Topics: hacktoberfest, linq, linq-expressions, linq-extensions, linq-methods, linq-samples, linq-to-objects, linq-typescript, typescript
- Language: TypeScript
- Homepage: http://kutyel.github.io/linq.ts/
- Size: 1.34 MB
- Stars: 830
- Watchers: 28
- Forks: 74
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: license
- Code of conduct: code-of-conduct.md
Awesome Lists containing this project
- awesome-list - linq.ts
README
# LinQ for TypeScript
[![Build](https://github.com/kutyel/linq.ts/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/kutyel/linq.ts/actions/workflows/main.yml)
[![Coverage Status](https://coveralls.io/repos/github/kutyel/linq.ts/badge.svg?branch=master)](https://coveralls.io/github/kutyel/linq.ts?branch=master)
[![Downloads](https://img.shields.io/npm/dm/linqts.svg)](https://npmjs.com/package/linqts)
[![Version](https://img.shields.io/npm/v/linqts.svg)](https://npmjs.com/package/linqts)
[![Sponsors](https://img.shields.io/github/sponsors/kutyel)](https://github.com/sponsors/kutyel)
[![linqts](https://raw.githubusercontent.com/kutyel/linq/master/linqts.png)](http://www.typescriptlang.org)## Install
```sh
$ npm i linqts
```## Usage
```typescript
import { List } from 'linqts';const arr = new List([1, 2, 3, 4, 5])
.Where(x => x > 3)
.Select(y => y * 2)
.ToArray(); // > [8, 10]const query = people.Join(pets,
person => person,
pet => pet.Owner,
(person, pet) =>
({ OwnerName: person.Name, Pet: pet.Name }));
```## Demo
![linqts.gif](https://raw.githubusercontent.com/kutyel/linq/master/linqts.gif)
## Documentation
If you do not know LinQ or just want to remember what is all about, have a look at the [docs](http://kutyel.github.io/linq.ts/docs/classes/list/index.html).
## Tests
```sh
$ npm t
```Powered by [AVA](https://github.com/sindresorhus/ava).
## Contributors
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
Flavio Corpa
π» π¬ π π
Luis Rogelio HernΓ‘ndez LΓ³pez
π» π§
Zsolt KovΓ‘cs
π»
Mo Abbas
π»
JuliΓ‘n Salgado Napolitano
π» π§
mstrzoda
π» π β οΈ
Kyle Wascher
β οΈ
James Richford
π§
Natarajan Ganapathi
π» π§
Jonas Brekle
π» π
LP
π» β οΈ
Asier Ferro
π» π§
marlon-tucker
π» π§ π¦
Misha Sulikashvili
π» β οΈ
Saurav Sahu
π
Bob Cook
π΅
Adrien
π»
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!
## License
MIT Β© [Flavio Corpa](http://flaviocorpa.com)