Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
sorted-joyo-kanji
Advanced tools
Sorted array of joyo-kanji
npm:
npm install sorted-joyo-kanji
var assert = require('power-assert')
var joyoKanji = require('sorted-joyo-kanji')
var each = require('amp-each')
var codePoint = require('code-point')
describe('JoyoKanjiTest', () => {
it('array length check', () => {
var kanji = joyoKanji.kanji
var codepoint = joyoKanji.codepoint
assert(kanji.length === 2136)
assert(codepoint.length === 2136)
})
it('array sort check', () => {
var codepoint = joyoKanji.codepoint
each(codepoint, (item, index) => {
if (index < codepoint.length - 1) {
assert(codepoint[index] < codepoint[index + 1])
}
})
})
it('isJoyo', () => {
assert(joyoKanji.isJoyo('聡') === false)
assert(joyoKanji.isJoyo('明') === true)
assert(joyoKanji.isJoyo('推') === true)
assert(joyoKanji.isJoyo('敲') === false)
})
})
kanji
— Sorted array of the Joyo Kanji. ["一","丁","七","万","丈","三","上","下","不","与","且","世", ...]
codepoint
— Sorted array of UTF-16-encoded code point number. [19968,19969,19971,19975,19976,19977,19978,19979,19981, ...]
Parameters
value
— a kanji character.FAQs
Sorted array of the Joyo Kanji
We found that sorted-joyo-kanji 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.