Socket
Socket
Sign inDemoInstall

geninq

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    geninq

A JavaScript version of the Linq library for Generators


Version published
Weekly downloads
3
increased by50%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

GenInq

This is an implementation of the Linq feature set using JavaScript Generators. It also works using AsyncGenerators and is fully types and tested for your convenience.

Using the library is simple. Just import the code and your autocomplete will do the request. There is also a handy utility attached to arrays to turn them into Generators for processing.

import "geninq";
import fs from "fs-extra";

for await (const pointless_file of [1, 2, 3, 4]
  .geninq()
  .select((i) => i + 4)
  .where((i) => i % 2 !== 0)
  .async()
  .select((i) => fs.readJson(PATH_FROM_INTEGER(i)))
  .take(2)) {
  // Do something with your file
}

This project has only just been started and I will be using it in professional work as well as personal projects to expect to see more updates to the ReadMe bug fixes to come.

Until then, please feel free to use this library and report any issues on the GitHub page or make contributions yourself. All pull requests will be considered.

Keywords

FAQs

Last updated on 21 Mar 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc