Socket
Socket
Sign inDemoInstall

readbitmap

Package Overview
Dependencies
25
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    readbitmap

read bitmap from redis


Version published
Maintainers
1
Install size
1.32 MB
Created

Readme

Source

readBitmap

read bitmap from redis


Quick Start

Install

npm i --save readbitmap

Basic Usage

const readBitmap = require('readbitmap')
readBitmap('testBit').then((res) => {
  console.log(res)
})

// [0, 12, 13, 100]

// or connect remote redis server

const readBitmap = require('readbitmap')
readBitmap('testBit', { host: 'redis_host', port: 3306 }).then((res) => {
  console.log(res)
})

// or read buffer
const readBitmap = require('readbitmap')
readBitmap(Buffer.from('0123')).then((res) => {
  console.log(res)
})

Params

The first param is redis bitmap key or buffer, redis config can`t work if you use buffer.

The second param is redis config, you can see ioredis to get more infomation to connect redis.

License

MIT

Keywords

FAQs

Last updated on 06 Aug 2018

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