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.
uni-string
Advanced tools
Unicode-aware String object
npm install uni-string
import UString from 'uni-string';
const UString = require('uni-string')
console.log(UString.support);
let t = (new UString('♥️𠬠典')).padStart(10, '𠬠');
t = t.concat('\n♥️𠬠典そこで彼らは\'",オリーブ山と呼ばれる山からエルサレムに帰った。');
console.dir(t);
let t2 = new UString(t);
console.log(t2);
//console.log(666, t2.substr(-9, 3));
console.log(666, t2.indexOf('𠬠典', 2));
console.log(666, t2.endsWith('𠬠典'));
let t3 = new UString('👩👩👧👦');
console.log(t3.size(), t3.split(''));
console.log('length', t2.length);
console.log('charLength', t2.charLength);
console.log('size()', t2.size());
//length 70
//charLength 49
//size() 49
{
split: true,
substr: true,
substring: true,
indexOf: true,
includes: true,
slice: true,
charAt: true,
startsWith: true,
endsWith: true,
padEnd: true,
padStart: true }
FAQs
Unicode String object
The npm package uni-string receives a total of 2,757 weekly downloads. As such, uni-string popularity was classified as popular.
We found that uni-string demonstrated a healthy version release cadence and project activity because the last version was released less than 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.