
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
khmer-normalizer
Advanced tools
Normalize Khmer strings according to https://www.unicode.org/L2/L2022/22290-khmer-encoding.pdf
This module normalizes Khmer text according to the proposed normal encoding structure at https://www.unicode.org/L2/L2022/22290-khmer-encoding.pdf.
It does not attempt to identify faulty text, merely to ensure that two strings that would have rendered the same are output as the same string.
A live online version is available at https://convert.ភាសាខ្មែរ.com/ (see https://ភាសាខ្មែរ.com for related tools).
ខែ្មរ is corrected to ខ្មែរ:
U+1781 ែ U+17C2 ្ U+17D2 ម U+1798 រ U+179AU+1781 ្ U+17D2 ម U+1798 ែ U+17C2 រ U+179Anpm install khmer-normalizer
import { khnormal } from 'khmer-normalizer';
// Normal use -- Modern Khmer
const cleanKhmer = khnormal(inputKhmer);
// Specifying the Modern Khmer language tag is optional
const cleanKhmer = khnormal(inputKhmer, 'km');
// For Middle Khmer, use the language tag 'xhm'
const cleanMiddleKhmerText = khnormal(inputMiddleKhmerText, 'xhm');
khnormal [options] [inputFile...]
If no input files are specified, reads from stdin, utf-8
# Options
--outfile, -o Write concatenated output to file; if not specified, writes to stdout, utf-8
--fail, -f Highlight places where khnormal was unable to regularize text
--lang, -l Specify processing language, km (Modern Khmer, default) or xhm (Middle Khmer)
--help, -h Print this help
FAQs
Normalize Khmer strings according to https://www.unicode.org/L2/L2022/22290-khmer-encoding.pdf
We found that khmer-normalizer demonstrated a not healthy version release cadence and project activity because the last version was released 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.