
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
####summary
Get the type of a variable or one unevaluated operand in easy way and provides all the util.is* functions from Node core.
V1
####app
var type = require('get-type')
type.get(operand) // returns a string
and all core-utils-is functions:
more the isJSON function to check if a string is a valid JSON string
####example
var t = require('assert');
var type = require('get-type');
t.deepEqual(type.get('{"a": 2014, "b": [1,2]}'), 'json', 'should return a json');
t.deepEqual(type.get([1,2,3,4]), 'array', 'should return an array');
t.deepEqual(type.get(true), 'boolean', 'should return a boolean');
t.deepEqual(type.get(null), 'null', 'should return null');
t.deepEqual(type.get(2014), 'number', 'should return a number');
t.deepEqual(type.get('a string message'), 'string', 'should return a string');
t.deepEqual(type.get(), 'undefined', 'should return undefined');
t.deepEqual(type.get(/w/), 'regexp', 'should return a regexp');
t.deepEqual(type.get({a:1}), 'object', 'should return an object');
t.deepEqual(type.get(new Date()), 'date', 'should return a date object');
t.deepEqual(type.get(new Error()), 'error', 'should return an error object');
t.deepEqual(type.get(function () {}), 'function', 'should return a function');
t.deepEqual(type.get(new Buffer('')), 'buffer', 'should return a buffer');
FAQs
Get the type of a variable or one unevaluated operand
The npm package get-type receives a total of 37 weekly downloads. As such, get-type popularity was classified as not popular.
We found that get-type 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
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.