Socket
Socket
Sign inDemoInstall

kanji

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kanji

Get kanji characters in an array based on categorization


Version published
Weekly downloads
108
decreased by-30.77%
Maintainers
1
Weekly downloads
 
Created
Source

Kanji

Get kanji characters in an array based on categorization.

Usage

const { kanken, jlpt } = require('kanji');

// Kanji Kentei
console.log(kanken.lv10);
console.log(kanken.lv09);
console.log(kanken.lv08);
console.log(kanken.lv07);
console.log(kanken.lv06);
console.log(kanken.lv05);
console.log(kanken.lv04);
console.log(kanken.lv03);
console.log(kanken.lv02pre);
console.log(kanken.lv02);
console.log(kanken.lv01pre);
console.log(kanken.lv01);

// Old JLPT
console.log(jlpt.old4);
console.log(jlpt.old3);
console.log(jlpt.old2);
console.log(jlpt.old1);

// New JLPT
console.log(jlpt.n5);
console.log(jlpt.n4);
console.log(jlpt.n3);
console.log(jlpt.n2);
console.log(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.

Development

BranchStatus
masterBuild Status
developBuild Status

Testing

npm test

References

The items are collected from following sources.

Authors

See also the list of contributors who participated in this project.

License

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

Package last updated on 04 Oct 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc