punkt
Version:
A port of NLTK's Punkt sentence tokenizer to JS.
80 lines (79 loc) • 2.02 kB
JSON
{
"name": "punkt",
"version": "1.0.1",
"description": "A port of NLTK's Punkt sentence tokenizer to JS.",
"author": "noahcoolboy",
"license": "Apache-2.0",
"keywords": [
"punkt",
"sentence",
"tokenizer",
"nltk"
],
"repository": {
"type": "git",
"url": "git+https://github.com/noahcoolboy/punkt.git"
},
"homepage": "https://github.com/noahcoolboy/punkt#readme",
"bugs": {
"url": "https://github.com/noahcoolboy/punkt/issues"
},
"scripts": {
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
"build:esm": "tsc --module es2015 --outDir dist/esm",
"clean": "rimraf dist",
"prebuild": "npm run clean",
"prepack": "npm run test && npm run lint:fix && npm run format && npm run build",
"pretest": "npm run generate",
"test": "vitest run",
"test:watch": "vitest watch",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"format": "prettier -w -l src",
"format:check": "prettier -c src",
"prepare": "husky",
"generate": "npm run build && node scripts/generate-packs.mjs"
},
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/esm/index.d.ts",
"exports": {
".": {
"types": "./dist/esm/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"devDependencies": {
"eslint": "^9.33.0",
"fflate": "^0.8.2",
"globals": "^16.3.0",
"husky": "^9.1.7",
"lint-staged": "^16.1.5",
"prettier": "^3.6.2",
"rimraf": "^6.0.1",
"typescript": "^5.9.2",
"typescript-eslint": "^8.39.1",
"vitest": "^3.2.4"
},
"prettier": {
"semi": true,
"singleQuote": false,
"trailingComma": "es5",
"arrowParens": "avoid",
"tabWidth": 2,
"endOfLine": "lf"
},
"lint-staged": {
"src/**/*.{js,ts}": [
"eslint --fix",
"prettier -w -l"
]
}
}