Needlessly Promiscuous, Modularize!

    vk-bit-masks-decoder

    1.1.4 • Public • Published

    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

    Install

    npm i vk-bit-masks-decoder

    DownloadsWeekly Downloads

    0

    Version

    1.1.4

    License

    MIT

    Unpacked Size

    2.06 kB

    Total Files

    3

    Last publish

    Collaborators

    • trard