# ts-querying

> A fluent interface to query any array

Latest version **1.0.4** (published 2018-08-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install ts-querying
pnpm add ts-querying
yarn add ts-querying
bun add ts-querying
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2018-08-03 |
| First published | 2018-07-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 23.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sergey Chibitko |
| Maintainers | chibitko |

## Links

- npm: https://www.npmjs.com/package/ts-querying
- Repository: https://github.com/Chibitko/ts-querying
- Homepage: https://github.com/Chibitko/ts-querying#readme
- Issues: https://github.com/Chibitko/ts-querying/issues
- npm.io page: https://npm.io/package/ts-querying

## Recent versions

- 1.0.4 (latest) — 2018-08-03
- 1.0.3 — 2018-08-02
- 1.0.2 — 2018-07-24
- 1.0.1 — 2018-07-20
- 1.0.0 — 2018-07-20

## README

# ts-querying
A fluent interface to query any array
## Installation 
```sh
npm install ts-querying --save
yarn add ts-querying
bower install ts-querying --save
```
## Usage
### Javascript
```javascript
var TsQuery = require('ts-querying');
var result = TsQuery.create([-5, 1, 2, 7, 9])
    .where((x, i) => x === i)
    .result();
console.log(result);
```
```sh
Output should be '[1, 2]'
```
### TypeScript
```typescript
import { TsQuery } from 'ts-querying';
var result = index.TsQuery.create([1, 2, 3])
    .select((x, i) => (x + i).toString())
    .result();
console.log(result);
```
```sh
Output should be '["1", "3", "5"]'
```
### AMD
```javascript
define(function(require,exports,module){
    var TsQuery = require('ts-querying');
});
```
## Test 
```sh
npm run test
```

---
_Source: https://npm.io/package/ts-querying · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
