{"_id":"expr-parser","_rev":"348202","name":"expr-parser","description":"this is a simple javascript expression parser","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"juneandgreen","email":""}],"time":{"modified":"2021-07-13T07:46:07.000Z","created":"2018-11-24T07:14:42.317Z","1.0.0":"2018-11-24T07:48:57.705Z","0.0.1":"2018-11-24T07:14:42.317Z"},"users":{},"author":{"name":"june_01"},"repository":{"type":"git","url":"git+https://github.com/JuneAndGreen/expr-parser.git"},"versions":{"1.0.0":{"name":"expr-parser","version":"1.0.0","description":"this is a simple javascript expression parser","main":"index.js","scripts":{"test":"jest ./test.js --silent --bail","coverage-local":"jest ./test.js --coverage --bail","coverage":"jest ./test.js --coverage --coverageReporters=text-lcov | coveralls"},"jest":{"testEnvironment":"node","collectCoverageFrom":["index.js"]},"repository":{"type":"git","url":"git+https://github.com/JuneAndGreen/expr-parser.git"},"keywords":["javascript","expression","parser"],"author":{"name":"june_01"},"license":"MIT","bugs":{"url":"https://github.com/JuneAndGreen/expr-parser/issues"},"homepage":"https://github.com/JuneAndGreen/expr-parser#readme","devDependencies":{"coveralls":"^3.0.2","jest":"^23.6.0"},"gitHead":"967c4ea0d5446802723d718fdd871d8eb1719b85","_id":"expr-parser@1.0.0","_npmVersion":"6.4.0","_nodeVersion":"9.2.0","_npmUser":{"name":"juneandgreen","email":"june_01@qq.com"},"dist":{"shasum":"b85be870efce3c764977578d4a505795233f9022","size":5394,"noattachment":false,"key":"/expr-parser/-/expr-parser-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/expr-parser/download/expr-parser-1.0.0.tgz"},"maintainers":[{"name":"juneandgreen","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expr-parser_1.0.0_1543045737619_0.07872652914073308"},"_hasShrinkwrap":false,"publish_time":1543045737705,"_cnpm_publish_time":1543045737705},"0.0.1":{"name":"expr-parser","version":"0.0.1","description":"","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"MIT","_id":"expr-parser@0.0.1","_npmVersion":"6.4.0","_nodeVersion":"9.2.0","_npmUser":{"name":"juneandgreen","email":"june_01@qq.com"},"dist":{"shasum":"fe0e9117600542db5c6dd468dbd32fdcbc80dcf9","size":293,"noattachment":false,"key":"/expr-parser/-/expr-parser-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/expr-parser/download/expr-parser-0.0.1.tgz"},"maintainers":[{"name":"juneandgreen","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expr-parser_0.0.1_1543043682168_0.32340622468002156"},"_hasShrinkwrap":false,"publish_time":1543043682317,"_cnpm_publish_time":1543043682317}},"readme":"# expr-parser\n\n[![](https://img.shields.io/npm/v/expr-parser.svg?style=flat)](https://www.npmjs.org/package/expr-parser)\n[![](https://img.shields.io/travis/JuneAndGreen/expr-parser.svg)](https://github.com/JuneAndGreen/expr-parser)\n[![](https://img.shields.io/npm/l/expr-parser.svg)](https://github.com/JuneAndGreen/expr-parser)\n[![](https://img.shields.io/coveralls/github/JuneAndGreen/expr-parser.svg)](https://github.com/JuneAndGreen/expr-parser)\n\n## 简介\n\n一个方便好用的 js 表达式解析器\n\n## 安装\n\n```bash\nnpm install --save expr-parser\n```\n\n## 使用\n\n```\nconst Expression = require('expr-parser');\n\nconst exprCalc = new Expression('a.value + 12 - (2 * 14 / 4)').parse();\n\nconsole.log(exprCalc({\n    a: {\n        value: 3 \n    },\n})); // 传入数据，输出计算结果 8\n```\n\n> 更多用法请参考[测试用例](./test.js)。\n\n## 协议\n\nMIT\n","_attachments":{},"homepage":"https://github.com/JuneAndGreen/expr-parser#readme","bugs":{"url":"https://github.com/JuneAndGreen/expr-parser/issues"},"license":"MIT"}