{"_id":"@emmetio/math-expression","_rev":"12-dc4bbab5bc09f785b6c883d077c5732b","name":"@emmetio/math-expression","description":"Parse and evaluate simple math expressions","dist-tags":{"latest":"1.0.5"},"versions":{"0.1.0":{"name":"@emmetio/math-expression","version":"0.1.0","description":"Parse &amp; evaluate simple math expressions","main":"dist/math.cjs.js","module":"dist/math.es.js","scripts":{"test":"mocha","build":"rollup -c","watch":"rollup -wc"},"repository":{"type":"git","url":"git+https://github.com/emmetio/math-expression.git"},"keywords":[],"author":{"name":"Sergey Chikuyonok","email":"serge.che@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/emmetio/math-expression/issues"},"homepage":"https://github.com/emmetio/math-expression#readme","dependencies":{"@emmetio/stream-reader":"^2.0.1","@emmetio/stream-reader-utils":"^0.1.0"},"devDependencies":{"babel-plugin-transform-es2015-modules-commonjs":"^6.24.1","babel-register":"^6.24.1","mocha":"^3.2.0","rollup":"^0.41.6","rollup-watch":"^3.2.2"},"gitHead":"f17789edce0d12dc4bf8439f8aab137105ccc0e9","_id":"@emmetio/math-expression@0.1.0","_shasum":"cfe8c03b70a61cc7e42193e90252dc077504d6db","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.3","_npmUser":{"name":"emmetio","email":"info@emmet.io"},"dist":{"shasum":"cfe8c03b70a61cc7e42193e90252dc077504d6db","tarball":"https://registry.npmjs.org/@emmetio/math-expression/-/math-expression-0.1.0.tgz","integrity":"sha512-CWiEeukAUJ4PGIbF0TQ0es5k6Pyj9W8YNRb3j732pXz+L7FSualCCL/l+9CCI83hADtmJGqNjZyuGRZ0ZIb7ZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHQcO2XC0p5LOMFZD7hnM9lDUd5SsqnUM4WQsujeITtuAiEAyUcDLdQSEq0eFFu+h4S7PI4x93R513qgYN65Ix7BjRE="}]},"maintainers":[{"name":"emmetio","email":"info@emmet.io"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/math-expression-0.1.0.tgz_1492036690965_0.04797977930866182"},"directories":{}},"0.1.1":{"name":"@emmetio/math-expression","version":"0.1.1","description":"Parse &amp; evaluate simple math expressions","main":"dist/math.cjs.js","module":"dist/math.es.js","scripts":{"test":"mocha","build":"rollup -c","watch":"rollup -wc","prepublish":"npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/emmetio/math-expression.git"},"keywords":[],"author":{"name":"Sergey Chikuyonok","email":"serge.che@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/emmetio/math-expression/issues"},"homepage":"https://github.com/emmetio/math-expression#readme","dependencies":{"@emmetio/stream-reader":"^2.0.1","@emmetio/stream-reader-utils":"^0.1.0"},"devDependencies":{"babel-plugin-transform-es2015-modules-commonjs":"^6.24.1","babel-register":"^6.24.1","mocha":"^3.2.0","rollup":"^0.41.6","rollup-watch":"^3.2.2"},"gitHead":"31dc028f80c27b5b00be9395e35ebd07c9cd8862","_id":"@emmetio/math-expression@0.1.1","_shasum":"1ff2c7f05800f64c57ca89038ee18bce9f5776dc","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.3","_npmUser":{"name":"emmetio","email":"info@emmet.io"},"dist":{"shasum":"1ff2c7f05800f64c57ca89038ee18bce9f5776dc","tarball":"https://registry.npmjs.org/@emmetio/math-expression/-/math-expression-0.1.1.tgz","integrity":"sha512-MSFHVjQSa1TIKAQhxHZ+TxnuraclZV43Na+mUugBQgiLwmnvqelVEPcRBSjcA3UFTYcqJz/Cm0IpO9AjZ8VJ1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCf1zwDwtylnOwXwFcajCfVqGKfjNPSDgMxxVHuuPMtdgIgQN9g+T6WAdsSke8soZ4uKOjgDdYbtjCdLKjeHOj6PAQ="}]},"maintainers":[{"name":"emmetio","email":"info@emmet.io"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/math-expression-0.1.1.tgz_1492119798667_0.8933299670461565"},"directories":{}},"1.0.0":{"name":"@emmetio/math-expression","version":"1.0.0","description":"Parse and evaluate simple math expressions","main":"./dist/math.cjs.js","module":"./dist/math.es.js","types":"./dist/index.d.ts","scripts":{"test":"mocha","build":"rollup -c","watch":"rollup -wc","lint":"tslint ./src/*.ts","clean":"rm -rf ./dist","prepare":"npm test && npm run lint && npm run clean && npm run build"},"repository":{"type":"git","url":"git+https://github.com/emmetio/math-expression.git"},"keywords":["math","expression","evaluate","emmet"],"author":{"name":"Sergey Chikuyonok","email":"serge.che@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/emmetio/math-expression/issues"},"homepage":"https://github.com/emmetio/math-expression#readme","devDependencies":{"@emmetio/scanner":"0.0.7","@types/mocha":"^5.2.7","@types/node":"^12.7.12","mocha":"^6.2.1","rollup":"^1.24.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-typescript2":"^0.24.3","ts-node":"^8.4.1","tslint":"^5.20.0","typescript":"^3.6.4"},"mocha":{"require":"ts-node/register","spec":"./test/*.ts"},"gitHead":"2ed712d8c9acb575673f59669e03e30cdfbf92e1","_id":"@emmetio/math-expression@1.0.0","_nodeVersion":"10.9.0","_npmVersion":"6.10.1","dist":{"integrity":"sha512-4ww6QQ5yUTapA/Dg5/giQB81G2WNo3Gqn1FPCXT5bFRfJCHcSOzidN1bnWHuGmiI1umPkOZcwudTlpGHtWLzBw==","shasum":"07947c7e93648beb4d22fac712b0a4bc7df2b88d","tarball":"https://registry.npmjs.org/@emmetio/math-expression/-/math-expression-1.0.0.tgz","fileCount":10,"unpackedSize":86333,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpk7rCRA9TVsSAnZWagAAJUAP/Ag3OW3K/syly6NTICDN\n2OnFWKHXyX9RZgsMH+B+TeF1wz16/PQyIT0MP5DS44UuQqZXctFbks8QOl+w\nITYVsK/o9JaPgbRW1DF42r3mpRRQbNqKeTTOYV35wTffrsgTj5JDJMyUHH5n\n549N0xinPGie7cJDCATjX0foZ7lEeU7+/v2dMVygESakimWM1uRUeJlSZBX5\nEztAlrx3XHRqe5hpGD4OSv5vSlJI0/Xzkd0yjdIa+HS0/t7StHUqPzm3YAip\nQLt5URapczmvNlg7CHzbHKB8IM7O4wTszrGwAgYLd0s1iWkVwoTwwm/up9/I\nvjyL0alCWB+hokenfa9S+5/++OrYyUC1dKn5+0200TXbxJw3A1fuBySE4EU9\nkVo9r4P0CFvSwyIfniDdFJ+drGxNNnfUOSbZTPXan1UQnsZc1ZZtaNd/SihY\n+NASKTAPteNjmt8q+4gtaiAtraZB/CwkjR4fSJht0LCtHKItn7q2Xv73ILNv\nbmzzbks8wtB5DIUjPyvDelGkZSsE+OHmLk+uQtRGW9lhPxrC8J/PSXOm8Qhc\nqTwwmICRamozprk8DPmXHq7fqhCsX/Heivn2SCHjX138CyKRVJRIzB+qieTL\nRaSn2JWMxUKcUrw4NhIb0qzMiIUVHcpuC8G9/QZrLlH6yt/OEPJjkqfG/So0\n8nrH\r\n=RhzL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFmY5TrHL2DHuquRT7AsWWBQ9kPWTM/weC7JAUiAIgtzAiBK3O3lehQIRLHyCf+7UOC8QM2TXAe3HUzWrjDDVSDrYA=="}]},"maintainers":[{"email":"info@emmet.io","name":"emmetio-user"},{"email":"serge.che@gmail.com","name":"serge.che"}],"_npmUser":{"name":"serge.che","email":"serge.che@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/math-expression_1.0.0_1571180266967_0.35204058535325555"},"_hasShrinkwrap":false},"1.0.1":{"name":"@emmetio/math-expression","version":"1.0.1","description":"Parse and evaluate simple math expressions","main":"./dist/math.cjs.js","module":"./dist/math.es.js","types":"./dist/index.d.ts","scripts":{"test":"mocha","build":"rollup -c","watch":"rollup -wc","lint":"tslint ./src/*.ts","clean":"rm -rf ./dist","prepare":"npm test && npm run lint && npm run clean && npm run build"},"repository":{"type":"git","url":"git+https://github.com/emmetio/math-expression.git"},"keywords":["math","expression","evaluate","emmet"],"author":{"name":"Sergey Chikuyonok","email":"serge.che@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/emmetio/math-expression/issues"},"homepage":"https://github.com/emmetio/math-expression#readme","devDependencies":{"@emmetio/scanner":"0.0.7","@types/mocha":"^5.2.7","@types/node":"^12.7.12","mocha":"^6.2.1","rollup":"^1.24.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-typescript2":"^0.24.3","ts-node":"^8.4.1","tslint":"^5.20.0","typescript":"^3.6.4"},"mocha":{"require":"ts-node/register","spec":"./test/*.ts"},"gitHead":"fe7441006e5b1abdabdcfb6850a6bc0f4fdfdfb6","_id":"@emmetio/math-expression@1.0.1","_nodeVersion":"10.9.0","_npmVersion":"6.10.1","dist":{"integrity":"sha512-RY+YTGg2kpz9O1YlNgi6x1p1C1+9mHOEWOA/ya1syCSDzwSUFUdw7YYol2GQDY2Kor1mdlflKrO16K34stXd+Q==","shasum":"dcf801c5880ef79ed67a03a6f183c13cda8aebdc","tarball":"https://registry.npmjs.org/@emmetio/math-expression/-/math-expression-1.0.1.tgz","fileCount":10,"unpackedSize":87115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdqw5CCRA9TVsSAnZWagAAgvQQAJAkKTiDUZccH0BWn11a\ndkW7vAZ2UbdcLDEV9HzwC4yjrnzQVsSBkzuFO3IZcssuTG/yRrQlPYmMPmpR\nKYgmaOv+s/gkER794rcKu5DQJyEr80Kdj75VmDJ+daWGqTKAUG8l6kPq12Cu\n9ySOjKAYxO1uT0pSYeYwcgmoSil099SxqsqVqSu7baFrGj4WF0uwHWYT5CJB\nY7OV4SVy/96mTKS7Mr4mM0wn9iMDrVIlp6Teayka1mdc5X0v4Rs/BOOUwluo\nXUTXpQnibPkmcE1TfD6w1c7js9ZOacpGQKAV69g0bMzoJnvMRWEaGvo295cj\n8ax2r+KruzRRejKOljBCvhYTwO8pnx0XsNNjjVuVc8K7hkLT0eEbT0sGjKl7\nYhhXkgqEXCnnnujbwXaWwv0Amnbcxhvsd632M3D5JL/LJszFb1fadGDNo46x\nCkywTNYLhjlKJHK0WqRPnsmS7df/S5Hr97fnhJBw+LNLISdDveagDQPJYagT\nl2eBOk3A84/mZ1lkfKg/4DUFHyL9vrkRe4X4Vh4mp4+y3FJt1LKjszT8fhqM\n1rfKcoymTEXQuO3z3i17S33TvS2ehQP2w4L43aw6ywEuV9nRKxa+N2TOOpqt\nKYRLw0/Vud1BOBz3Smvl7tKbiVzgU54RzVaxPkcbH3XI/ALv9vPfINbW4nx9\nCgq/\r\n=RZWq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLOlalzasMfmZp0GBfF8CZnm5/IKj0PT7ArbQu4b2xEgIgIhkZvTWy8+1uSThIKXNjwNP9nzyT1gU3p1TCgs9i1aw="}]},"maintainers":[{"email":"info@emmet.io","name":"emmetio-user"},{"email":"serge.che@gmail.com","name":"serge.che"}],"_npmUser":{"name":"serge.che","email":"serge.che@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/math-expression_1.0.1_1571491393368_0.5446599600478204"},"_hasShrinkwrap":false},"1.0.2":{"name":"@emmetio/math-expression","version":"1.0.2","description":"Parse and evaluate simple math expressions","main":"./dist/math.cjs.js","module":"./dist/math.es.js","types":"./dist/index.d.ts","scripts":{"test":"mocha","build":"rollup -c","watch":"rollup -wc","lint":"tslint ./src/*.ts","clean":"rm -rf ./dist","prepare":"npm test && npm run lint && npm run clean && npm run build"},"repository":{"type":"git","url":"git+https://github.com/emmetio/math-expression.git"},"keywords":["math","expression","evaluate","emmet"],"author":{"name":"Sergey Chikuyonok","email":"serge.che@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/emmetio/math-expression/issues"},"homepage":"https://github.com/emmetio/math-expression#readme","dependencies":{"@emmetio/scanner":"0.0.7"},"devDependencies":{"@types/mocha":"^7.0.2","@types/node":"^12.7.12","mocha":"^7.1.1","rollup":"^2.6.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-typescript2":"^0.27.0","ts-node":"^8.8.2","tslint":"^6.1.1","typescript":"^3.8.3"},"mocha":{"require":"ts-node/register","spec":"./test/*.ts"},"gitHead":"68ccd8d2972888891b2313256093a7af70388155","_id":"@emmetio/math-expression@1.0.2","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-fClnPqgGLzQ+GOWI5tEB/bmZwT6mmK9ZSG574kot3imkj0PXcvg96i6jJhl/RT7zR6YX+4wu90xE8jtVa2OQVQ==","shasum":"495e7aacf47566c70da733171c328aa5e4e74d12","tarball":"https://registry.npmjs.org/@emmetio/math-expression/-/math-expression-1.0.2.tgz","fileCount":10,"unpackedSize":62313,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekhTUCRA9TVsSAnZWagAAB18P/3pZs4XCNpAxkGvo7dSP\neVH9qa7C7ALA7MVo7HLW3el1eLXmgRw6W16PXJ4uHPg1FT/MRfOLE6Tf3srT\nypE4GQHgsxl9dylqaCgBj6uu3qPSU7WwSqOJhDzO7RyJUR9BlFoiLzTs3FFV\np4X/Y/Q78myn/qkDLn+hGCRkHQtmNExSK2Pg6xJ/h7VN/jDTCpTw8YgfiIvF\nJxIFyGaUmf07UvPkkACrAiWCjgAOwgfomBZqoWEoKK4x64CME00fNjbrtz0M\negaZ3F+BibrXFFGLxqhRkFDieffxU3zGm3/rJM0X8GYO9KirPV1uEFs1tXrI\n47zjYgHxPS8mFr9GbZXZ7RA7yt/fphz4/PCsxXlBQ53LWy+AhGxQLYa15NcG\nGrx1DnAveAYT6yW1t9eXvHNJPI1XOT5vnlHlBcQ2xa+hco+Aqu/PrthZhoW0\nQQT9ixJIMPcoQPoWeGIudKqhy0O6LOgnKCU7z64OB945yPTW2p2UbGo5+h93\nJikgHo/YUwQYN/W03PLu0xnHvpBhxzbCwzUYJFA7uIAuxDd0VGzGGroxxNml\nuPIp53tpjdbqW2ZkPZMjs5hqLYNAfS0GnPG5GvjJZE2UaQCqTw1KlvSmriN2\nZwn+ASanur6FfUVGXqc8wyaYQHQRQIw83LAAVkfVn80dsuj1Vap7yCfTbp+b\njQdR\r\n=ea9d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD101IyhtBBBw/+BI7IZ7LsBHWzklntXeezzDf2zqbExQIhANekqJDhWqZhHH/S6RZA0C3CEcgxZSkc2OdWpc05LQbW"}]},"maintainers":[{"email":"info@emmet.io","name":"emmetio-user"},{"email":"serge.che@gmail.com","name":"serge.che"}],"_npmUser":{"name":"serge.che","email":"serge.che@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/math-expression_1.0.2_1586631892076_0.478276067224227"},"_hasShrinkwrap":false},"1.0.3":{"name":"@emmetio/math-expression","version":"1.0.3","description":"Parse and evaluate simple math expressions","main":"./dist/math.cjs.js","module":"./dist/math.es.js","types":"./dist/index.d.ts","scripts":{"test":"mocha","build":"rollup -c","watch":"rollup -wc","lint":"tslint ./src/*.ts","clean":"rm -rf ./dist","prepare":"npm test && npm run lint && npm run clean && npm run build"},"repository":{"type":"git","url":"git+https://github.com/emmetio/math-expression.git"},"keywords":["math","expression","evaluate","emmet"],"author":{"name":"Sergey Chikuyonok","email":"serge.che@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/emmetio/math-expression/issues"},"homepage":"https://github.com/emmetio/math-expression#readme","dependencies":{"@emmetio/scanner":"^0.0.8"},"devDependencies":{"@types/mocha":"^7.0.2","@types/node":"^12.7.12","mocha":"^7.1.1","rollup":"^2.6.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-typescript2":"^0.27.0","ts-node":"^8.8.2","tslint":"^6.1.1","typescript":"^3.8.3"},"mocha":{"require":"ts-node/register","spec":"./test/*.ts"},"gitHead":"87372cda432e50c546b49a5cd96e9b64ccd5d36a","_id":"@emmetio/math-expression@1.0.3","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-WY4PBSeUXrDVIv3l1PCRpsP3ZuPkDZpQh+f0DH0X46lDk3nuNFqxsrCkkfQD3NrQ7m6KTDAohvbMDz23+lXb6w==","shasum":"3e78e92670fd23503a1e5d8a661350e67514254a","tarball":"https://registry.npmjs.org/@emmetio/math-expression/-/math-expression-1.0.3.tgz","fileCount":10,"unpackedSize":62314,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekhlfCRA9TVsSAnZWagAAJqcQAJKlQTAZQTwAlhWhHQne\npYh+vsMPTvCHdKxO6omQ7cL52reSKTzzMZRL7d6z27FflaI3HDwiZfIvMS50\n0v77Vti1YwcPb7X1WfknviMLsxk4qRo3lcpiyby4wjn5Tj+PPL+GEc7ye9wj\nPUoVwN5seyanihcNtmZ4dgRs9dTdAOT0tPbijld2bPUvWYRJTi0skO9x0vIE\nyJ3yqKkHrPYJI4BYNjG57//2wx07iAGXqn6ugREdI9rDoDADYRXvOTh7aJ+Y\nn8T3l2SiI7+pE0tCbYmh31JQvZXhCDCWL9fxmnLRGeT0INWj+6Ae/wPeexjy\nsJ6F++rDiJg2uipKWvqTo6zaGSWov5Y7ACpPemS7zOqGCBFeOOCKpQF+NOid\nQtzKh1IxAMyS6jt8O5arTBHKp241pIKekwP/p7AHyGSR7l4WpZa2qPPklgAH\n7ptPpszLDI+58FJ0AdTQi1ehnH15iMbmSZFNABQSNMv84k3GfOa+AYj0ey4N\neqy8usEx3fCxx4z4FIHVOTCMvGOl+J5OIwb8VXUKPRhsGbm7Pg3u0TMGu37w\nxBQWuR8We/3A8SBVwGC2PNNEZbKgwn1CKmv4VA5WJTlvaJKPPBUCF6CZYbBG\nDBonSLjIW34uDq/uuBDOoekYZ6BdQJGmqq0oK2u26Ylc4H7UnU/j6h5gLCmj\nmv1B\r\n=Mxbh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAD/bRZ9+O3IUqqq1Qrcuhbx74dqB7AKeFaFOn9ufg+AIhAMMUyomyrYo972ftfCwJNkt0mwdWn1sdnggDJvHaKQdq"}]},"maintainers":[{"email":"info@emmet.io","name":"emmetio-user"},{"email":"serge.che@gmail.com","name":"serge.che"}],"_npmUser":{"name":"serge.che","email":"serge.che@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/math-expression_1.0.3_1586633055536_0.6154191293854003"},"_hasShrinkwrap":false},"1.0.4":{"name":"@emmetio/math-expression","version":"1.0.4","description":"Parse and evaluate simple math expressions","main":"./dist/math.cjs.js","module":"./dist/math.es.js","types":"./dist/index.d.ts","scripts":{"test":"mocha","build":"rollup -c","watch":"rollup -wc","lint":"tslint ./src/*.ts","clean":"rm -rf ./dist","prepare":"npm test && npm run lint && npm run clean && npm run build"},"repository":{"type":"git","url":"git+https://github.com/emmetio/math-expression.git"},"keywords":["math","expression","evaluate","emmet"],"author":{"name":"Sergey Chikuyonok","email":"serge.che@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/emmetio/math-expression/issues"},"homepage":"https://github.com/emmetio/math-expression#readme","dependencies":{"@emmetio/scanner":"^1.0.0"},"devDependencies":{"@types/mocha":"^7.0.2","@types/node":"^12.7.12","mocha":"^7.1.1","rollup":"^2.6.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-typescript2":"^0.27.0","ts-node":"^8.8.2","tslint":"^6.1.1","typescript":"^3.8.3"},"mocha":{"require":"ts-node/register","spec":"./test/*.ts"},"gitHead":"2fe90ac5daa2bc50f39bd98d2a7ba10533c031ca","_id":"@emmetio/math-expression@1.0.4","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-1m7y8/VeXCAfgFoPGTerbqCIadApcIINujd3TaM/LRLPPKiod8aT1PPmh542spnsUSsSnZJjbuF7xiO4WFA42g==","shasum":"cb657ed944f82b3728f863bf5ece1b1ff3ae7497","tarball":"https://registry.npmjs.org/@emmetio/math-expression/-/math-expression-1.0.4.tgz","fileCount":10,"unpackedSize":62314,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelix9CRA9TVsSAnZWagAA01gP+waNrVIBB581XSspN50N\nh/hCe6juQaSY21ciDbx675YoYn86n5tO43A8JUcAfcDrqGRWBJVh+XLWs6Hx\nIZ4yPI/cFLSrueA/1mLLphRMBc8TsrM7hLqB+1VeLhkWjxapfSWGnV9nOT41\nKOZO2zX3mfdz+BgmtySDZAnZKuZUvLOaH9Se6jtX4DUY2Pi/vHJKGZtuDtEi\nw61okeIoFszT4hWP4VZBG8DkrQRZz/cGs81g6A/MijgIux4by/IsrMyIImJV\nVyJ4/e46otHkJCQagtp4Gea5IzXN20IXaxddyJZ3XWOwa2kIHMFrDfad5LbG\nvdWsVcKqY9PtUf6/qoOP00djqtXbF0VjqyLiz+EsoaM3ZOsPe8c+QKK/UVFQ\nBMb/Ofl7Vpoq0CsB7PYpIlWNI2zEoy9/T4eCyp6y4ASF53h9XLZ0Jk5Jjuxj\nKX9Indw+c39fOsTPXUI6mIrYGXjKCVqtHT058sirC0iZSBGM1ALrECkYvyTe\nBTs9yryebxjjGwweFZJovn37M1SLX4n+7LLs9zNXrMbN/AE/01h9BvF4RMPR\nf+ejhVvmJ/8RX+OcsW9tya58vkqRC5gysjwSdEWXhB+cqXHJBOgD9aiQbMLp\n16Vo2qqIW/ZnJ2fYZ94xVyTM0V/DWm++X72N49kScYHTEg2oJF4Pkco9DQgz\nPSoE\r\n=Sy6z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDv63INuF9IA7FGqxTtraz2txRDeZcwNQCu+IQcTIY4cAiEAufO9q8KBpdrfRloW8xfNrrlRTkubcGoDYkz4ne64SYc="}]},"maintainers":[{"email":"info@emmet.io","name":"emmetio-user"},{"email":"serge.che@gmail.com","name":"serge.che"}],"_npmUser":{"name":"serge.che","email":"serge.che@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/math-expression_1.0.4_1586900092929_0.8238052517451404"},"_hasShrinkwrap":false},"1.0.5":{"name":"@emmetio/math-expression","version":"1.0.5","description":"Parse and evaluate simple math expressions","main":"./dist/math.cjs.js","module":"./dist/math.es.js","types":"./dist/index.d.ts","scripts":{"test":"mocha","build":"rollup -c","watch":"rollup -wc","lint":"tslint ./src/*.ts","clean":"rm -rf ./dist","prepare":"npm test && npm run lint && npm run clean && npm run build"},"repository":{"type":"git","url":"git+https://github.com/emmetio/math-expression.git"},"keywords":["math","expression","evaluate","emmet"],"author":{"name":"Sergey Chikuyonok","email":"serge.che@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/emmetio/math-expression/issues"},"homepage":"https://github.com/emmetio/math-expression#readme","dependencies":{"@emmetio/scanner":"^1.0.4"},"devDependencies":{"@types/mocha":"^7.0.2","@types/node":"^12.7.12","mocha":"^7.1.1","rollup":"^2.6.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-typescript2":"^0.27.0","ts-node":"^8.8.2","tslint":"^6.1.1","typescript":"^3.8.3"},"mocha":{"require":"ts-node/register","spec":"./test/*.ts"},"gitHead":"c6e424e3cbdb6631e230bb172774b022635796a4","_id":"@emmetio/math-expression@1.0.5","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-qf5SXD/ViS04rXSeDg9CRGM10xLC9dVaKIbMHrrwxYr5LNB/C0rOfokhGSBwnVQKcidLmdRJeNWH1V1tppZ84Q==","shasum":"d0cc52ed453a107bc9b19c5d71d1390d3aecbe48","tarball":"https://registry.npmjs.org/@emmetio/math-expression/-/math-expression-1.0.5.tgz","fileCount":10,"unpackedSize":62314,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEIGAtsjfBcSeoT7YuhTFjPyPL6s8kQYFLhnK7z0sR6wAiBm061Pb+uK11OeTGUFo7V2Ard4ajJbL3o+2f8KZhBi1Q=="}]},"_npmUser":{"name":"serge.che","email":"serge.che@gmail.com"},"directories":{},"maintainers":[{"name":"emmetio-user","email":"info@emmet.io"},{"name":"serge.che","email":"serge.che@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/math-expression_1.0.5_1683706004355_0.9428699847956645"},"_hasShrinkwrap":false}},"readme":"# Math expression parser and evaluator\n\nFast and small (less than 2KB minified and gzipped) zero-dependency math expression parser and evaluator.\n\n```js\nimport evaluate from '@emmetio/math-expression';\n\nconsole.log(evaluate('2 * (-3 + 5)')); // 4\n```\n\n## Motivation\n\nIn JavaScript, you can use built-in `eval()` function to evaluate expressions:\n\n```js\nconsole.log(eval('2 * (-3 + 5)')); // 4\n```\n\nBut in most modern JavaScript environments `eval()` function is considered harmful since it can evaluate _any_ arbitrary JS code. And in some cases (like in [Atom](https://atom.io) editor) it’s disabled by default due to security reasons.\n\nWith `@emmetio/math-expression` module you can safely parse & evaluate basic math expressions in any JS environment.\n\n## Extract expression from text\n\nThis module is used by [Emmet](https://emmet.io) project to evaluate math expression in-place in code source. A default user workflow is to enter math expression somewhere in source code and run action to evaluate it. You can use `extract` function to extract math expression from given source code, starting at specified position:\n\n```js\nimport evaluate, { extract } from '@emmetio/math-expression';\n\nconst code = 'Here goes math: 2 + 3 foo bar';\nconst [start, end] = extract(code, 21); // 16, 21\nconst expr = code.substring(start, end); // 2 + 3\nconsole.log(evaluate(expr)); // 5\n```\n","maintainers":[{"name":"emmetio-user","email":"info@emmet.io"},{"name":"serge.che","email":"serge.che@gmail.com"}],"time":{"modified":"2023-05-10T08:06:44.645Z","created":"2017-04-12T22:38:11.550Z","0.1.0":"2017-04-12T22:38:11.550Z","0.1.1":"2017-04-13T21:43:19.334Z","1.0.0":"2019-10-15T22:57:47.133Z","1.0.1":"2019-10-19T13:23:13.511Z","1.0.2":"2020-04-11T19:04:52.260Z","1.0.3":"2020-04-11T19:24:15.705Z","1.0.4":"2020-04-14T21:34:53.069Z","1.0.5":"2023-05-10T08:06:44.506Z"},"homepage":"https://github.com/emmetio/math-expression#readme","keywords":["math","expression","evaluate","emmet"],"repository":{"type":"git","url":"git+https://github.com/emmetio/math-expression.git"},"author":{"name":"Sergey Chikuyonok","email":"serge.che@gmail.com"},"bugs":{"url":"https://github.com/emmetio/math-expression/issues"},"license":"MIT","readmeFilename":"README.md"}