Security News
vlt Debuts New JavaScript Package Manager and Serverless Registry at NodeConf EU
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
With Kanji you can:
const kanji = require('kanji');
// Kanji Kentei
console.log(kanji.kanken.lv10);
console.log(kanji.kanken.lv09);
console.log(kanji.kanken.lv08);
console.log(kanji.kanken.lv07);
console.log(kanji.kanken.lv06);
console.log(kanji.kanken.lv05);
console.log(kanji.kanken.lv04);
console.log(kanji.kanken.lv03);
console.log(kanji.kanken.lv02pre);
console.log(kanji.kanken.lv02);
console.log(kanji.kanken.lv01pre);
console.log(kanji.kanken.lv01);
// Old JLPT
console.log(kanji.jlpt.old4);
console.log(kanji.jlpt.old3);
console.log(kanji.jlpt.old2);
console.log(kanji.jlpt.old1);
// New JLPT
console.log(kanji.jlpt.n5);
console.log(kanji.jlpt.n4);
console.log(kanji.jlpt.n3);
console.log(kanji.jlpt.n2);
console.log(kanji.jlpt.n1);
// Kyouiku Kanji
console.log(kanji.grade.g01);
console.log(kanji.grade.g02);
console.log(kanji.grade.g03);
console.log(kanji.grade.g04);
console.log(kanji.grade.g05);
console.log(kanji.grade.g06);
console.log(kanji.grade.g08); // Remaining of Joyo Kanji
console.log(kanji.grade.g09); // Jinmeiyo Kanji
console.log(kanji.grade.g10); // Variant of Joyo Kanji
// Frequency 1-2501 Kanji taken from KANJIDIC
// The frequency list is made by Alexandre Girardi
console.log(kanji.freq);
// 13,108 kanji from KANJIDIC (JIS X 0208-1998, JIS X 0212-1990, JIS X 0213-2012)
console.log(kanji.all);
The kanji characters in the frequency list array are ordered from most popular to least popular. The rest of arrays are not ordered.
const kanji = require('kanji');
console.log(kanji.kanjiTree('国'));
/* Result:
{
element: "国",
g: [{ element: "囗" },
{
element: "玉",
g: [
{ element: "王" },
{ element: "丶" }
]
},
{ element: "囗" }
]
} */
Everytime you call kanjiTree
, it reads the tree json in lib folder. If you call the same character frequently, please use memoization
techniques to reduce file read.
Branch | Status |
---|---|
master | |
develop |
npm install
npm run download-source
npm run extract-kanjivg-tree
npm test
The items are collected from following sources.
See also the list of contributors who participated in this project.
Kanji code is licensed under MPL-2.0. Images, logos, docs, and articles in this Kanji project are released under CC-BY-4.0.
Libraries, dependencies, and tools used in this project are tied with their own licenses respectively.
FAQs
Get kanji readings, kanji composition trees, and groupings
We found that 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
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Security News
Research
The Socket Research Team uncovered a malicious Python package typosquatting the popular 'fabric' SSH library, silently exfiltrating AWS credentials from unsuspecting developers.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.