node-darts
Version:
Node.js Native Addon for Darts (Double-ARray Trie System)
110 lines (109 loc) • 3.27 kB
JSON
{
"name": "node-darts",
"version": "1.0.0",
"description": "Node.js Native Addon for Darts (Double-ARray Trie System)",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"files": [
"dist",
"lib",
"binding.gyp",
"src/native",
"include"
],
"scripts": {
"build": "yarn clean && tsc -p tsconfig.build.cjs.json && tsc -p tsconfig.build.esm.json && yarn build:addon && node scripts/postbuild-copy.cjs",
"build:addon": "node-gyp rebuild",
"build:addon-with-tools": "node scripts/install-build-tools.js && node-gyp rebuild",
"clean": "rimraf dist lib",
"lint": "eslint src tests --ext .ts",
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
"test": "jest",
"test:coverage": "jest --coverage",
"test:coverage:check": "jest --coverage --passWithNoTests --coverageThreshold='{\"global\":{\"branches\":60,\"functions\":95,\"lines\":85,\"statements\":85}}'",
"prepare": "yarn build",
"prepublishOnly": "yarn clean && yarn lint && yarn test && yarn build",
"install": "node-pre-gyp install --fallback-to-build || npm run build:addon-with-tools"
},
"binary": {
"module_name": "node_darts",
"module_path": "./lib/binding/{node_abi}-{platform}-{arch}",
"host": "https://github.com/libraz/node-darts/releases/download/",
"remote_path": "{version}",
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz"
},
"keywords": [
"darts",
"trie",
"dictionary",
"search",
"native",
"addon",
"node-api"
],
"author": "libraz <libraz@libraz.net>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/libraz/node-darts.git"
},
"bugs": {
"url": "https://github.com/libraz/node-darts/issues"
},
"homepage": "https://github.com/libraz/node-darts#readme",
"engines": {
"node": ">=20.0.0"
},
"simple-git-hooks": {
"pre-commit": "yarn lint-staged"
},
"lint-staged": {
"*.{js,ts}": [
"eslint --fix --max-warnings=0 --cache",
"prettier --write",
"jest --findRelatedTests --passWithNoTests"
],
"package.json": [
"yarn test:coverage:check"
]
},
"dependencies": {
"@mapbox/node-pre-gyp": "^2.0.0",
"bindings": "^1.5.0",
"node-addon-api": "^8.3.1"
},
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/node": "^22.15.3",
"@typescript-eslint/eslint-plugin": "^8.30.1",
"@typescript-eslint/parser": "^8.30.1",
"eslint": "8",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^10.1.2",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.11.0",
"eslint-plugin-prettier": "^5.2.6",
"jest": "^29.7.0",
"lint-staged": "^15.5.1",
"node-gyp": "^11.2.0",
"prettier": "^3.5.3",
"rimraf": "^6.0.1",
"simple-git-hooks": "^2.13.0",
"ts-jest": "^29.3.2",
"typescript": "^5.8.3"
},
"volta": {
"node": "20.19.0",
"yarn": "4.9.1"
},
"packageManager": "yarn@4.9.1"
}