
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
vk-api-util
Advanced tools
Utility methods for working with VK API
$ npm install --save vk-api-util
var vkUtil = require('vk-api-util');
vkUtil.bitMask(['friends', 'photos']);
//=> 6
boolean
Returns true if given metod is mentioned in VK API docs.
Required
Type: string
boolean
Returns true if given method doesn't require authentication.
Required
Type: string
number
Returns bit mask for given scope.
Required
Type: string
, array
or number
Pass a string of scopes divided by comma (,
) or array of scopes. If number is passed it assumed to be a bit mask itself and returned without changes.
boolean
Returns true if given area is visible within given scope.
vkApiUtil.checkScope(['friends', 'video'], 4456466);
//=> true
Required
Type: string
, array
or number
Required
Type: string
, array
or number
area
and scope
arguments are same as scope
in aforementioned vkUtil.bitMask()
method.
boolean
Returns true if given method is reachable within given scope.
Required
Type: string
Type: string
, array
or number
Default: 0
MIT © Dmitriy Sobolev
FAQs
Utility methods for working with VK API
The npm package vk-api-util receives a total of 9 weekly downloads. As such, vk-api-util popularity was classified as not popular.
We found that vk-api-util demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.