simple-eval
Version:
Simple JavaScript expression evaluator
61 lines (60 loc) • 1.72 kB
JSON
{
"name": "simple-eval",
"version": "2.0.0",
"description": "Simple JavaScript expression evaluator",
"keywords": [
"eval",
"evaluation",
"code evaluation",
"code execution",
"ast"
],
"homepage": "https://github.com/P0lip/simple-eval",
"bugs": {
"url": "https://github.com/P0lip/simple-eval/issues"
},
"engines": {
"node": ">=12"
},
"files": [
"src/",
"dist/"
],
"typings": "./dist/index.d.ts",
"type": "module",
"module": "./dist/index.js",
"exports": {
".": "./dist/index.js",
"./eval": "./dist/reduce.js"
},
"license": "MIT",
"author": "Jakub Rożek",
"repository": {
"type": "git",
"url": "https://github.com/P0lip/simple-eval"
},
"scripts": {
"build": "tsup",
"typecheck": "tsc --noEmit",
"lint": "eslint --cache --cache-location .cache/ src && prettier --check src",
"test": "node --experimental-strip-types --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=coverage/lcov.info --test-coverage-lines=90 --test-coverage-branches=95 --test ./src/__tests__/*.ts",
"prepublishOnly": "node --run lint && node --run test && node --run typecheck && node --run build",
"prepare": "husky install"
},
"dependencies": {
"@types/estree": "^1.0.7",
"jsep": "^1.4.0"
},
"devDependencies": {
"@types/espree": "^10.1.0",
"@types/node": "^22.15.27",
"@typescript-eslint/eslint-plugin": "^8.33.0",
"@typescript-eslint/parser": "^8.33.0",
"eslint": "^9.27.0",
"espree": "^9.3.2",
"husky": "^6.0.0",
"prettier": "^3.5.3",
"tsup": "^8.5.0",
"typescript": "^5.8.3"
}
}