Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
@texting/lange
Advanced tools
Get string length s.t. correcting astral codes and skipping ansi codes
A function returning string length, s.t. skipping ansi (escape) codes, correcting length of astral symbols.
$ npm install @texting/lange
import { lange } from '@texting/lange'
const list = [
'tolstoy',
'\u001b[3;4;31mhatsu\u001b[0m',
'\u{1F3C3}2\u{1F525}7',
]
for (let tx of list) {
console.log(`[${tx}] [length] (${tx.length}) [lange] (${lange(tx)})`)
}
Copyright (c) 2019-present, Haoyang (Vincent) Wang
FAQs
Get string length s.t. correcting astral codes and skipping ansi codes
The npm package @texting/lange receives a total of 0 weekly downloads. As such, @texting/lange popularity was classified as not popular.
We found that @texting/lange demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.