# vk-bit-masks-decoder

> lib to decode VK bit masks

Latest version **1.1.4** (published 2021-06-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install vk-bit-masks-decoder
pnpm add vk-bit-masks-decoder
yarn add vk-bit-masks-decoder
bun add vk-bit-masks-decoder
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2021-06-09 |
| First published | 2021-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Trard |
| Maintainers | trard |
| Keywords | vk, bit, mask, decode, decoder, masks |

## Links

- npm: https://www.npmjs.com/package/vk-bit-masks-decoder
- Repository: https://github.com/Trard/vk-bit-masks-decoder
- Homepage: https://github.com/Trard/vk-bit-masks-decoder#readme
- Issues: https://github.com/Trard/vk-bit-masks-decoder/issues
- npm.io page: https://npm.io/package/vk-bit-masks-decoder

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 1.1.4 (latest) — 2021-06-09
- 1.1.3 — 2021-06-08
- 1.1.2 — 2021-06-08
- 1.1.1 — 2021-06-08
- 1.1.0 — 2021-06-08
- 1.0.0 — 2021-06-08

## README

# VK bit masks decoder

Very simple script to decode vk bit masks

## Installation

Using npm:
```shell
npm i vk-bit-masks-decoder
```

## Example usage:

```js
const { perms, decodeBitMask } = require('vk-bit-masks-decoder')

const bitMask = 244236287

console.log(decodeBitMask(bitMask, perms.user))
/*
[
  'notify',
  'friends',
  'photos',
  'video',
  'add_app_to_left_menu',
  'status',
  'messages',
  'ads',
  'offline',
  'docs',
  'groups',
  'notifications',
  'stats',
  'email',
  'market'
]
*/
```

## Perms
You can find from https://vk.com/dev/permissions two types of bit masks:
- user
- community

---
_Source: https://npm.io/package/vk-bit-masks-decoder · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
