UNPKG

kuroshiro-enhance

Version:

kuroshiro is a Japanese language library for converting Japanese sentence to Hiragana, Katakana or Romaji with furigana and okurigana modes supported.

90 lines 2.3 kB
{ "name": "kuroshiro-enhance", "version": "2.1.0", "description": "kuroshiro is a Japanese language library for converting Japanese sentence to Hiragana, Katakana or Romaji with furigana and okurigana modes supported.", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", "exports": { ".": { "import": { "types": "./dist/index.d.mts", "default": "./dist/index.mjs" }, "require": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } } }, "files": [ "dist" ], "repository": { "type": "git", "url": "git+https://github.com/gene891212/kuroshiro-enhance.git" }, "keywords": [ "kuroshiro", "kuroshiro-enhance", "Japanese", "language", "convert", "converter", "kanji", "hiragana", "katakana", "kana", "romaji", "furigana", "okurigana", "library", "utility", "tool", "hepburn" ], "author": { "name": "gene891212", "email": "gene891212@gmail.com" }, "license": "MIT", "bugs": { "url": "https://github.com/gene891212/kuroshiro-enhance/issues" }, "homepage": "https://github.com/gene891212/kuroshiro-enhance", "dependencies": { "kuromoji": "^0.1.2" }, "devDependencies": { "@eslint/js": "^10.0.1", "@types/node": "^18.0.0", "@vitest/coverage-v8": "^1.2.2", "cross-env": "^7.0.3", "eslint": "^9.0.0", "husky": "^8.0.3", "kuroshiro-analyzer-kuromoji": "^1.1.0", "lint-staged": "^15.2.0", "rimraf": "^5.0.5", "tsup": "^8.0.1", "typescript": "^5.3.3", "typescript-eslint": "^8.57.0", "vitest": "^1.2.2" }, "engines": { "node": ">=18.0.0" }, "lint-staged": { "src/**/*.{js,ts}": "eslint", "test/**/*.{js,ts}": "eslint" }, "scripts": { "dev": "tsup --watch", "build": "cross-env NODE_ENV=production tsup && node -e \"const fs=require('fs'); fs.renameSync('dist/index.global.js', 'dist/kuroshiro.min.js'); fs.renameSync('dist/index.global.js.map', 'dist/kuroshiro.min.js.map');\"", "test": "vitest run", "test:watch": "vitest", "test:coverage": "vitest run --coverage", "typecheck": "tsc --noEmit", "lint": "eslint src test", "clean": "rimraf dist coverage" } }