@akirco/dir_size
Version:
Get folder size quickly using N-API and Rust
118 lines • 2.86 kB
JSON
{
"name": "@akirco/dir_size",
"version": "1.0.1",
"description": "Get folder size quickly using N-API and Rust",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/akirco/dir_size.git"
},
"license": "MIT",
"browser": "browser.js",
"keywords": [
"napi-rs",
"NAPI",
"N-API",
"Rust",
"node-addon",
"node-addon-api",
"folder-size",
"directory-size",
"dir-size",
"get-folder-size",
"get-directory-size"
],
"files": [
"index.d.ts",
"index.js",
"browser.js"
],
"napi": {
"binaryName": "dir_size",
"targets": [
"x86_64-pc-windows-msvc",
"x86_64-unknown-linux-gnu",
"aarch64-apple-darwin"
]
},
"engines": {
"node": ">= 12.22.0 < 13 || >= 14.17.0 < 15 || >= 15.12.0 < 16 || >= 16.0.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"scripts": {
"artifacts": "napi artifacts",
"bench": "node --import @oxc-node/core/register benchmark/bench.ts",
"build": "napi build --platform --release",
"build:debug": "napi build --platform",
"format": "run-p format:prettier format:rs format:toml",
"format:prettier": "prettier . -w",
"format:toml": "taplo format",
"format:rs": "cargo fmt",
"lint": "oxlint .",
"prepublishOnly": "napi prepublish -t npm",
"test": "ava",
"preversion": "napi build --platform && git add .",
"version": "napi version",
"prepare": "husky"
},
"devDependencies": {
"@emnapi/core": "^1.5.0",
"@emnapi/runtime": "^1.5.0",
"@napi-rs/cli": "^3.2.0",
"@oxc-node/core": "^0.0.32",
"@taplo/cli": "^0.7.0",
"@tybys/wasm-util": "^0.10.0",
"@types/node": "^24.9.1",
"ava": "^6.4.1",
"chalk": "^5.6.2",
"get-folder-size": "^5.0.0",
"husky": "^9.1.7",
"lint-staged": "^16.1.6",
"npm-run-all2": "^8.0.4",
"oxlint": "^1.14.0",
"prettier": "^3.6.2",
"tinybench": "^5.0.1",
"typescript": "^5.9.2"
},
"lint-staged": {
"*.@(js|ts|tsx)": [
"oxlint --fix"
],
"*.@(js|ts|tsx|yml|yaml|md|json)": [
"prettier --write"
],
"*.toml": [
"taplo format"
]
},
"ava": {
"extensions": {
"ts": "module"
},
"timeout": "2m",
"workerThreads": false,
"environmentVariables": {
"OXC_TSCONFIG_PATH": "./__test__/tsconfig.json"
},
"nodeArguments": [
"--import",
"@oxc-node/core/register"
]
},
"prettier": {
"printWidth": 120,
"semi": false,
"trailingComma": "all",
"singleQuote": true,
"arrowParens": "always"
},
"packageManager": "yarn@4.10.3",
"optionalDependencies": {
"@akirco/dir_size-win32-x64-msvc": "1.0.1",
"@akirco/dir_size-linux-x64-gnu": "1.0.1",
"@akirco/dir_size-darwin-arm64": "1.0.1"
}
}