npm

nim_bipf
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Nim BIPF

BIPF is a binary format for data interchange, designed to be compact and fast to parse.

This library provides a Nim implementation of BIPF, with support for both reading, writing, searching.

Status: Work in progress, prefer pointing to the github repository for now in the requires section of your nimble file.

Installation

For Nim library:

nimble install https://github.com/BundleFeed/nim_bipf

For NPM library:

npm install nim_bipf

Note: the Node module is not yet published on NPM. To use it, you need to clone the repository and build it locally using nimble compileNodeJsModule.

Backends

  • [x] Nim library
  • [x] Pure JS library (to deploy in the browser use NodeJs Buffer polyfill or some packager)
  • [x] Compatibility layer with https://www.npmjs.com/package/bipf (pass all tests but those that are not compliant with the spec in this implementation)
  • [x] NodeJs Module (build with cmake-js)
  • [ ] WebAssembly Module
  • [x] Spec pull request implementation Convert NULLBOOL type to ATOM type

Performance

For JS

A benchmark (results) is available in the tests-js folder. To run it:

nimble benchJs

or

npm run benchmark

It compares the performances of

License

Apache-2.0

Readme

Keywords

none

Package Sidebar

Install

npm i nim_bipf

Weekly Downloads

0

Version

0.2.0

License

Apache-2.0

Unpacked Size

379 kB

Total Files

6

Last publish

Collaborators

  • gpicron