Socket
Socket
Sign inDemoInstall

ndarray-bit

Package Overview
Dependencies
4
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ndarray-bit

ndarrays of bits


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
41.0 kB
Created
Weekly downloads
 

Readme

Source

ndarray-bit

An ndarray of bits.

Example

var ndbits = require("ndarray-bit")

//Create a 100x100 bit mask
var x = ndbits([100, 100])

x.set(1, 10, true)

x.get(1, 10) //Returns true

Install

npm install ndarray-bit

require("ndarray-bit")(shape)

Creates an ndarray of bits initialized to shape.

  • shape is the shape of the bit array

Returns An ndarray of bits. The underlying store is an instance of minimal-bit-array.

Credits

(c) 2013 Mikola Lysenko. MIT License

Keywords

FAQs

Last updated on 31 May 2014

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