vk-bit-masks-decoder
v1.1.4
Published
lib to decode VK bit masks
Downloads
2
Readme
VK bit masks decoder
Very simple script to decode vk bit masks
Installation
Using npm:
npm i vk-bit-masks-decoder
Example usage:
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