ici4j-japan
v1.0.15
Published
The ici4j-japan library exported as Node.js modules.
Downloads
1,094
Maintainers
Readme
ici4j-japan
The ici4j-japan library exported as Node.js modules.
The ici4j-japan library is com.ibm.icu library running in java which is called and used on javascript
Installation
Using npm:
$ npm i ici4j-japan
$ npm i --save ici4j-japan
Environment settings dependencies
1. npm install -g node-gyp
2. Install java SDK (version >= 22)
Link download SDK java (click)
Example in Debian operating system (version 23):
$ apt-get update
$ wget https://download.oracle.com/java/23/latest/jdk-23_linux-x64_bin.deb
$ dpkg -i jdk-23_linux-x64_bin.deb
3. Install python (version current 3.12)
Using ici4j-japan in projects:
js
const ici4jJapan = require("ici4j-japan");
const input = "こんにちは";
ici4jJapan.convertToNFC(input).then((result) => {
console.log(result); // result: コンニチハ
});
Or
const { convertToNFC } = require("ici4j-japan");
const input = "こんにちは";
convertToNFC(input).then((result) => {
console.log(result); // result: コンニチハ
});
ts
import * as ici4jJapan from "ici4j-japan";
const input = "こんにちは";
ici4jJapan.convertToNFC(input).then((result) => {
console.log(result); // result: コンニチハ
});
Or
import { convertToNFC } from "ici4j-japan";
const input = "こんにちは";
convertToNFC(input).then((result) => {
console.log(result); // result: コンニチハ
});