0.0.2 • Published 2 months ago

@nightmaregaurav/linq.js v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Linq.js

Linq.js is a TypeScript library that provides LINQ-like query capabilities for arrays, allowing you to perform powerful data manipulations and transformations with ease.

Table of Contents

Features

  • Fluent and functional programming style for array operations.
  • Filter, project, order, group, join, and more.
  • Chain multiple operations together for complex transformations.
  • Simplify common array manipulations.
  • Supports TypeScript and modern JavaScript.

Installation

npm install @nightmaregaurav/linq.js

Usage

Import the Linq class and start chaining operations:

import { Linq } from '@nightmaregaurav/linq.js';

const data = [/* your data array */];
const query = new Linq(data)
    .where(item => /* predicate function */)
    .select(item => /* selector function */)
    .orderBy((a, b) => /* comparer function */);

const result = query.toArray();
console.log(result);

License

Linq.js is released under the MIT License. You can find the full license details in the LICENSE file.

Contributing

Contributions are welcome! Feel free to open issues and submit pull requests.


Open For Contribution


Author

Linq.js is made with ❤️ by NightmareGaurav.

0.0.2

2 months ago

0.0.1

2 months ago