Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@elliottcable/bs-gen
Advanced tools
bs-gen
This is c-cube's Gen iterator library for OCaml, cross-compiled to JavaScript via BuckleScript (an OCaml-to-JavaScript compiler) for Reason (an alternative OCaml syntax targeting that compiler.)
You can safely ignore the installation instructions below when compiling to JS. Instead:
Install this fork through npm:
npm install --save @elliottcable/bs-gen
Manually add bs-gen
to your bsconfig.json
's bs-dependencies
:
"bs-dependencies": [
...
"@elliottcable/bs-gen"
],
Use Gen.t
!
Of note, I ran into some type errors when trying to compile with
GenLabels
API enabled; thus, the npm version of this library omits
that entirly. All of the other modules are included, though.
Iterators for OCaml, both restartable and consumable. The implementation keeps a good balance between simplicity and performance.
The library is extensively tested using qtest
. If you find a bug,
please report!
The documentation can be found here; the main module is Gen and should suffice for 95% of use cases.
$ opam install gen
or, manually, by building the library and running make install
. Opam is
recommended, for it keeps the library up-to-date.
You can either build and install the library (see "Build"), or just copy files to your own project. The last solution has the benefits that you don't have additional dependencies nor build complications (and it may enable more inlining).
If you have comments, requests, or bugfixes, please share them! :-)
There are no dependencies. This should work with OCaml>=3.12.
$ make
To build and run tests (requires oUnit
and qtest
):
$ opam install oUnit qtest
$ ./configure --enable-tests
$ make test
This code is free, under the BSD license.
FAQs
Simple, efficient iterators for OCaml
The npm package @elliottcable/bs-gen receives a total of 2 weekly downloads. As such, @elliottcable/bs-gen popularity was classified as not popular.
We found that @elliottcable/bs-gen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.