Socket
Socket
Sign inDemoInstall

numcodecs

Package Overview
Dependencies
1
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

5

package.json
{
"name": "numcodecs",
"author": "Trevor James Manz",
"version": "0.1.0",
"version": "0.1.1",
"description": "Buffer compression and transformation codecs for use in data storage and communication applications.",

@@ -27,5 +27,6 @@ "types": "dist/types/src/index.d.ts",

},
"sideEffects": false,
"repository": {
"type": "git",
"url": "github.com/manzt/numcodecs.js"
"url": "https://github.com/manzt/numcodecs.js.git"
},

@@ -32,0 +33,0 @@ "scripts": {

11

README.md
# numcodecs.js
[![Actions Status](https://github.com/manzt/numcodecs.js/workflows/tests/badge.svg)](https://github.com/manzt/numcodecs.js/actions)
![Top Language Badge](https://img.shields.io/github/languages/top/manzt/numcodecs.js)
[![NPM badge](https://img.shields.io/npm/v/numcodecs)](https://www.npmjs.com/package/numcodecs)

@@ -16,3 +19,3 @@ Buffer compression and transformation codecs for use in [Zarr.js](https://github.com/gzuidhof/zarr.js/) and beyond...

const codec = new Blosc();
const codec = new Blosc(); // or Blosc.fromConfig({ clevel: 5, cname: 'lz4', shuffle: Blosc.SHUFFLE, blocksize: 0 });

@@ -33,3 +36,3 @@ const size = 100000;

const decoded = await coded.decode(encoded);
const decoded = await codec.decode(encoded);
console.log(new Uint32Array(decoded.buffer));

@@ -46,3 +49,3 @@ // Uint32Array(100000) [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ... ]

Each compressor is bundled as a separate entrypoint and exported as a package submodule using Node's [conditional exports](https://nodejs.org/api/modules.html). This means that compressors can be imported as independent modules. We hope this will afford an option to have a more dynamic and configurable compressor registry in Zarr.js in the future.
Each compressor is bundled as a separate entrypoint and exported as a package submodule using Node's [conditional exports](https://nodejs.org/api/modules.html). This means each compressor can be imported independently from code-split modules. I hope this will afford an option to have a more dynamic and configurable compressor registry in Zarr.js in the future, allowing users to define the codecs necessary for their applications.

@@ -54,3 +57,3 @@ ```javascript

// index.mjs
import { Zlib } from 'numcodecs/zlib';
import Zlib from 'numcodecs/zlib';
```
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