fixchar
Convert legacy Japanese characters such as fullwidth alphanumerics and symbols
Install
$ npm install fixchar
$ yarn add fixchar
Usage
const { fixchar } = require("fixchar"); // Only required in Node.js, or using bundler such as Browserify and Webpack
const fixed1 = fixchar("東京都港区港南 2ー16ー3");
console.log(fixed1); // 東京都港区港南 2-16-3
const fixed2 = fixchar("(屮゜Д゜)屮 カモーン!");
console.log(fixed2); // (屮゜Д゜)屮 カモーン!
const fixed3 = fixchar("私の専攻分野は,コンピューターサイエンスです.");
console.log(fixed3); // 私の専攻分野は,コンピューターサイエンスです.