Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
core-functions
Advanced tools
Core functions and utilities for working with primitives and built-in objects, including strings, functions, booleans, Promises, base 64, etc.
Core functions and utilities for working with Node/JavaScript primitives and built-in objects, including strings, functions, booleans, Promises, base 64, etc.
Currently includes:
This module is exported as a Node.js module.
Using npm:
$ {sudo -H} npm i -g npm
$ npm i --save core-functions
In Node.js:
// To use the string utilties
const Strings = require('core-functions/strings');
// To use the number utilties
const Numbers = require('core-functions/numbers');
// To use the boolean utilties
const Booleans = require('core-functions/booleans');
// To use the function utilties
const Functions = require('core-functions/functions');
// To use the Base 64 encoding and decoding utilities
const base64 = require('core-functions/base64');
// To use the Promise utilties, which currently add static methods to the native `Promise` class
require('core-functions/promises');
This module's unit tests were developed with and must be run with tape. The unit tests have been tested on Node.js v4.3.2.
See the package source for more details.
trimOrEmpty
functionsafeTrim
function to trim
and changed safeTrim
to an alias for trim
1.1.0
trimOrEmpty
functionsafeTrim
function to trim
and changed safeTrim
to an alias for trim
FAQs
Core functions, utilities and classes for working with Node/JavaScript primitives and built-in objects, including strings, booleans, Promises, base 64, Arrays, Objects, standard AppErrors, etc.
The npm package core-functions receives a total of 48 weekly downloads. As such, core-functions popularity was classified as not popular.
We found that core-functions 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.