{"_id":"is-expression","_rev":"14-93a54d80b5f931ccdadec3fa87fa7ec1","name":"is-expression","description":"Check if a string is a valid JavaScript expression","dist-tags":{"latest":"4.0.0"},"versions":{"1.0.0":{"name":"is-expression","version":"1.0.0","description":"Check if a string is a valid JavaScript expression","keywords":["javascript","expression"],"dependencies":{"acorn":"^2.6.2","object-assign":"^4.0.1"},"scripts":{"test":"node test && npm run coverage","coverage":"istanbul cover test"},"repository":{"type":"git","url":"git+https://github.com/TimothyGu/is-expression.git"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","gitHead":"0ee4468630f56d6d7bdc71647ff9d4cba5bf096a","bugs":{"url":"https://github.com/TimothyGu/is-expression/issues"},"homepage":"https://github.com/TimothyGu/is-expression#readme","_id":"is-expression@1.0.0","_shasum":"72fbfbed6acae7707c02dfefec1885f157523974","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"timothygu","email":"timothygu99@gmail.com"},"dist":{"shasum":"72fbfbed6acae7707c02dfefec1885f157523974","tarball":"https://registry.npmjs.org/is-expression/-/is-expression-1.0.0.tgz","integrity":"sha512-MYLM9Rcuxj3e3YFSIZ0g4m7mSSSB5+RImJGAJDiiCD6K1SKaW6uWzPLLsqf3qv+hQ3rhnXv1Ald74jwBGRf6Bw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoNSZprwBdLdkZOxrKGD3YvcY76/fd38Pppiu3/uof1AIgNV2u6LVBhIwlguZwhXDpbk+m1nQ8ZZ9aT98Hs0yNNtw="}]},"maintainers":[{"name":"timothygu","email":"timothygu99@gmail.com"}],"directories":{}},"1.0.1":{"name":"is-expression","version":"1.0.1","description":"Check if a string is a valid JavaScript expression","keywords":["javascript","expression"],"dependencies":{"acorn":"~2.6.2","object-assign":"^4.0.1"},"devDependencies":{"istanbul":"*","testit":"^2.0.2"},"scripts":{"test":"node test && npm run coverage","coverage":"istanbul cover test"},"repository":{"type":"git","url":"git+https://github.com/TimothyGu/is-expression.git"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","gitHead":"a113188097c869b204597f4b011a8a5008213c88","bugs":{"url":"https://github.com/TimothyGu/is-expression/issues"},"homepage":"https://github.com/TimothyGu/is-expression#readme","_id":"is-expression@1.0.1","_shasum":"22cfc0013e5c7044824e6aa81b286f5b94dee757","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"timothygu","email":"timothygu99@gmail.com"},"dist":{"shasum":"22cfc0013e5c7044824e6aa81b286f5b94dee757","tarball":"https://registry.npmjs.org/is-expression/-/is-expression-1.0.1.tgz","integrity":"sha512-tu8N3QrUbXJlqDEXhI0HIiLt2iyMu9ZIrczdeV3PDi0p4+dcx6RSVmCl7tvgPFS6PGDQ2msiz/fnEDbb1wnpsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBngvjVeo2BKlG2uLtjAjYpJOM28mIrQbyntBLWYJpLOAiEA5sLwvOK/6J3auJT/KGvNgjHVkt55Nly8nCSM1xqDVac="}]},"maintainers":[{"name":"timothygu","email":"timothygu99@gmail.com"}],"directories":{}},"1.0.2":{"name":"is-expression","version":"1.0.2","description":"Check if a string is a valid JavaScript expression","keywords":["javascript","expression"],"dependencies":{"acorn":"~2.7.0","object-assign":"^4.0.1"},"devDependencies":{"istanbul":"*","testit":"^2.0.2"},"scripts":{"test":"node test && npm run coverage","coverage":"istanbul cover test.js"},"repository":{"type":"git","url":"git+https://github.com/TimothyGu/is-expression.git"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","gitHead":"fe1b161b296f5dd9f7e1147b444b0f78b9f6822f","bugs":{"url":"https://github.com/TimothyGu/is-expression/issues"},"homepage":"https://github.com/TimothyGu/is-expression#readme","_id":"is-expression@1.0.2","_shasum":"a345b96218e9df21e65510c39b4dc3602fdd3f96","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.2.0","_npmUser":{"name":"timothygu","email":"timothygu99@gmail.com"},"dist":{"shasum":"a345b96218e9df21e65510c39b4dc3602fdd3f96","tarball":"https://registry.npmjs.org/is-expression/-/is-expression-1.0.2.tgz","integrity":"sha512-ynWEmX/S8I+WxXHWkHzrMbyjHTDzqreNdVOQBFwI9Pmdok9OOnTK1ytxg7JTNgQPjoAOEGFMW+9d0b9UtZsvIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGZBLwVbXL7aBaQrdCx1SARZaryly//hg/G0ddpAvvPQIgW5du82ykzkZY0mw1dkFyrMjOk+NIHfhyDcsqAKowugo="}]},"maintainers":[{"name":"timothygu","email":"timothygu99@gmail.com"}],"directories":{}},"2.0.0":{"name":"is-expression","version":"2.0.0","description":"Check if a string is a valid JavaScript expression","keywords":["javascript","expression"],"dependencies":{"acorn":"~3.0.2","object-assign":"^4.0.1"},"devDependencies":{"istanbul":"*","testit":"^2.0.2"},"scripts":{"test":"node test && npm run coverage","coverage":"istanbul cover test.js"},"repository":{"type":"git","url":"git+https://github.com/TimothyGu/is-expression.git"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","gitHead":"9840349db22024ad408141fc3e7d3c07e99bc135","bugs":{"url":"https://github.com/TimothyGu/is-expression/issues"},"homepage":"https://github.com/TimothyGu/is-expression#readme","_id":"is-expression@2.0.0","_shasum":"230718429ddba9c9334a90876ce35e85560f114b","_from":".","_npmVersion":"3.7.2","_nodeVersion":"5.6.0","_npmUser":{"name":"timothygu","email":"timothygu99@gmail.com"},"dist":{"shasum":"230718429ddba9c9334a90876ce35e85560f114b","tarball":"https://registry.npmjs.org/is-expression/-/is-expression-2.0.0.tgz","integrity":"sha512-tU7BBqecpTj7oZJpYkeYBB3syEwh3JkTxsgETR1T0S/us7Ej8dolH6g/cjTN+WzLWdiHmxO/DGtQmkZeNoygLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2b86nHAvdENXttfFFRErAyGZIHl7sDxKiCsGQLaBynAIhAI7+CnV9se2X2oRiN48IoXY3Ebe8TDK14c7GXjPMYyHw"}]},"maintainers":[{"name":"timothygu","email":"timothygu99@gmail.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/is-expression-2.0.0.tgz_1455326473612_0.3415470668114722"},"directories":{}},"2.0.1":{"name":"is-expression","version":"2.0.1","description":"Check if a string is a valid JavaScript expression","keywords":["javascript","expression"],"dependencies":{"acorn":"~3.1.0","object-assign":"^4.0.1"},"devDependencies":{"istanbul":"*","testit":"^2.0.2"},"scripts":{"test":"node test && npm run coverage","coverage":"istanbul cover test.js"},"repository":{"type":"git","url":"git+https://github.com/TimothyGu/is-expression.git"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","gitHead":"10369bf658d23e0925124ba9ec1232b200a835b2","bugs":{"url":"https://github.com/TimothyGu/is-expression/issues"},"homepage":"https://github.com/TimothyGu/is-expression#readme","_id":"is-expression@2.0.1","_shasum":"0c765eb662bcb2f831cb51054052a9c9e97426c5","_from":".","_npmVersion":"3.9.6","_nodeVersion":"6.2.1","_npmUser":{"name":"timothygu","email":"timothygu99@gmail.com"},"dist":{"shasum":"0c765eb662bcb2f831cb51054052a9c9e97426c5","tarball":"https://registry.npmjs.org/is-expression/-/is-expression-2.0.1.tgz","integrity":"sha512-b5pTbBRwYnyVzXLm144/VH959/xxcPYOglMJH/nfhtm6RYoRAIheY1mIGCGmetsi4f4xr8xzj1S+2MS2Q/W1xQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFK87EEBD4+lfz7BE4UkCDvqKfuAU5L/embzhK18lpLfAiAKG+V0yDwVdUihe4IzYpkyPxh4HqS9YVyIVjHF1UxlIA=="}]},"maintainers":[{"name":"timothygu","email":"timothygu99@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/is-expression-2.0.1.tgz_1465002887585_0.959619504166767"},"directories":{}},"2.1.0":{"name":"is-expression","version":"2.1.0","description":"Check if a string is a valid JavaScript expression","keywords":["javascript","expression"],"dependencies":{"acorn":"~3.3.0","object-assign":"^4.0.1"},"devDependencies":{"istanbul":"*","testit":"^2.0.2"},"scripts":{"test":"node test && npm run coverage","coverage":"istanbul cover test.js"},"repository":{"type":"git","url":"git+https://github.com/pugjs/is-expression.git"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","gitHead":"28810ef58c4993deb7700ecb4e577401b2b1444c","bugs":{"url":"https://github.com/pugjs/is-expression/issues"},"homepage":"https://github.com/pugjs/is-expression#readme","_id":"is-expression@2.1.0","_shasum":"91be9d47debcfef077977e9722be6dcfb4465ef0","_from":".","_npmVersion":"3.9.6","_nodeVersion":"6.2.1","_npmUser":{"name":"timothygu","email":"timothygu99@gmail.com"},"dist":{"shasum":"91be9d47debcfef077977e9722be6dcfb4465ef0","tarball":"https://registry.npmjs.org/is-expression/-/is-expression-2.1.0.tgz","integrity":"sha512-4RXb2Tj/BoJ/IAySawW8WWYBxnvekCeGF8KvzSgGBRUTcHg5OkcihoYWZXaLeVuJvuSSdxVlvbyJHycW5IvWDg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQDe/89kH4fEeXyiHPBYdKfE/KZY3ubozdzrS+5AcsX7jQIfHvww2bEIxi5hYXth4gB9gY42TDW0Fwsh+JPde5KldQ=="}]},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/is-expression-2.1.0.tgz_1469558631250_0.5454726330935955"},"directories":{}},"3.0.0":{"name":"is-expression","version":"3.0.0","description":"Check if a string is a valid JavaScript expression","keywords":["javascript","expression"],"dependencies":{"acorn":"~4.0.2","object-assign":"^4.0.1"},"devDependencies":{"istanbul":"*","testit":"^2.0.2"},"scripts":{"test":"node test && npm run coverage","coverage":"istanbul cover test.js"},"repository":{"type":"git","url":"git+https://github.com/pugjs/is-expression.git"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","gitHead":"fc635340548d1114707497e39babe8dc476326c8","bugs":{"url":"https://github.com/pugjs/is-expression/issues"},"homepage":"https://github.com/pugjs/is-expression#readme","_id":"is-expression@3.0.0","_shasum":"39acaa6be7fd1f3471dc42c7416e61c24317ac9f","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.4.0","_npmUser":{"name":"timothygu","email":"timothygu99@gmail.com"},"dist":{"shasum":"39acaa6be7fd1f3471dc42c7416e61c24317ac9f","tarball":"https://registry.npmjs.org/is-expression/-/is-expression-3.0.0.tgz","integrity":"sha512-vyMeQMq+AiH5uUnoBfMTwf18tO3bM6k1QXBE9D6ueAAquEfCZe3AJPtud9g6qS0+4X8xA7ndpZiDyeb2l2qOBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgwMlviC6QdIOXemYGzbYFtKbHArW+brs3Bk2C+4cTfwIgNrSPL8SQQvDbqgNtWlOGyrBKg0+amlO0l8Geh6mMWk0="}]},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-expression-3.0.0.tgz_1473638606404_0.5194024990778416"},"directories":{}},"4.0.0":{"name":"is-expression","version":"4.0.0","description":"Check if a string is a valid JavaScript expression","keywords":["javascript","expression"],"dependencies":{"acorn":"^7.1.1","object-assign":"^4.1.1"},"devDependencies":{"nyc":"^15.0.1","testit":"^3.1.0"},"scripts":{"test":"node test && npm run coverage","coverage":"nyc node test.js"},"repository":{"type":"git","url":"git+https://github.com/pugjs/is-expression.git"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","gitHead":"0a6fd6f92cfb707ca5fd293b465bfbeda6b81f76","bugs":{"url":"https://github.com/pugjs/is-expression/issues"},"homepage":"https://github.com/pugjs/is-expression#readme","_id":"is-expression@4.0.0","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-zMIXX63sxzG3XrkHkrAPvm/OVZVSCPNkwMHU8oTX7/U3AL78I0QXCEICXUM13BIa8TYGZ68PiTKfQz3yaTNr4A==","shasum":"c33155962abf21d0afd2552514d67d2ec16fd2ab","tarball":"https://registry.npmjs.org/is-expression/-/is-expression-4.0.0.tgz","fileCount":5,"unpackedSize":6121,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexGGPCRA9TVsSAnZWagAAgv0P/3fcF0jgQ+MsiFBPiF/U\n/ky2wxUC5DoFFA7PU5V5u6SPrPVh8rVMqqLap6512CCQdbeffHG0pcdf+xy4\nbWXj5TUqWLGQDusq/lC1Koc3qTjElSFimtaYe6BfJLucjHRBePIK+54yNAEm\nDIJWuGCArp9XxVoOHX4Wag26sE5pZNJLDw26emamJ4KpDBG4JEMEdAB/52c8\nL2V/4pJYC3gqs8I7Du9NVIboZZEXOyQmXpfFN7bBKTMW9ML6XxHP/fnFA+uk\nJXEQixiNv6jTFq/+MJC4dtgIOM2WampOYqjaeyGieFKSGTLzYIUVK6PDyzFW\nVQDdmIuN4uEsPM4WVUFONimRxNMKO8MZII09V6cr87MVGlIbBwoaMHBZ4krN\n0P7XYsVIvTgWkDmOPplDspyP8HxN86FInStsNw1HV0dnJq22UdRX6hDlbP89\nhP7HY2gRXvpaH7hGgvX0Pr+L61mIuVAxUw1nIatvd0PakEsRgNRVaJQaHMC2\nVLUAwFWWx+T7go5HuvqRmAgbuAhZZvbTPv6Ptu3L/dwLo9mbHIrD3/xgnBdM\no06JkpRHFDnZM1l48w9rVJD32imCn0DywurY/L1+oE5e7JI3Zsjdgp5pr37P\nmwX+hBXZm7KcDQR9evS0WQWCA4xXvXZwVbfOhs7SNSbc8wWjGqVoEv1ZatJC\npptg\r\n=ejV2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9Z3UxTqR0TafK6FtdDcm35AGOoocsxoOcAe6dKU1y/gIgayZwLH8Z89CXrkBvzeBrQlXq7CmJVv8WoriBoNJemgs="}]},"maintainers":[{"email":"forbes@lindesay.co.uk","name":"forbeslindesay"}],"_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-expression_4.0.0_1589928335156_0.7831520421332197"},"_hasShrinkwrap":false}},"readme":"# is-expression\n\nValidates a string as a JavaScript expression\n\n[![Build Status](https://img.shields.io/travis/pugjs/is-expression/master.svg)](https://travis-ci.org/pugjs/is-expression)\n[![Dependency Status](https://img.shields.io/david/pugjs/is-expression.svg)](https://david-dm.org/pugjs/is-expression)\n[![Rolling Versions](https://img.shields.io/badge/Rolling%20Versions-Enabled-brightgreen)](https://rollingversions.com/pugjs/is-expression)\n[![npm version](https://img.shields.io/npm/v/is-expression.svg)](https://www.npmjs.org/package/is-expression)\n\n## Installation\n\n npm install is-expression\n\n## Usage\n\n### `isExpression(src[, options])`\n\nValidates a string as a JavaScript expression.\n\n`src` contains the source.\n\n`options` can contain any Acorn options (since we use Acorn under-the-hood),\nor any of the following:\n\n- `throw`: Throw an error if the string is not an expression. The error can\n be an Acorn error, with location information in `err.loc` and `err.pos`.\n Defaults to `false`.\n- `strict`: Use strict mode when trying to parse the string. Defaults to\n `false`. Even if this option is `false`, if you have provided\n `options.sourceType === 'module'` which imples strict mode under ES2015,\n strict mode will be used.\n- `lineComment`: When `true`, allows line comments in the expression.\n Defaults to `false` for safety.\n\nSee the examples below for usage.\n\n## Examples\n\n```js\nvar isExpression = require('is-expression')\n\nisExpression('myVar')\n//=> true\nisExpression('var')\n//=> false\nisExpression('[\"an\", \"array\", \"\\'s\"].indexOf(\"index\")')\n//=> true\n\nisExpression('var', {throw: true})\n// SyntaxError: Unexpected token (1:0)\n// at Parser.pp.raise (acorn/dist/acorn.js:940:13)\n// at ...\n\nisExpression('public')\n//=> true\nisExpression('public', {strict: true})\n//=> false\n\nisExpression('abc // my comment')\n//=> false\nisExpression('abc // my comment', {lineComment: true})\n//=> true\n```\n\n## License\n\nMIT\n","maintainers":[{"email":"forbes@lindesay.co.uk","name":"forbeslindesay"}],"time":{"modified":"2022-06-19T02:41:08.052Z","created":"2015-11-12T01:39:00.612Z","1.0.0":"2015-11-12T01:39:00.612Z","1.0.1":"2015-11-12T16:57:36.341Z","1.0.2":"2016-01-07T01:37:50.414Z","2.0.0":"2016-02-13T01:21:16.927Z","2.0.1":"2016-06-04T01:14:50.531Z","2.1.0":"2016-07-26T18:43:55.226Z","3.0.0":"2016-09-12T00:03:26.635Z","4.0.0":"2020-05-19T22:45:35.608Z"},"homepage":"https://github.com/pugjs/is-expression#readme","keywords":["javascript","expression"],"repository":{"type":"git","url":"git+https://github.com/pugjs/is-expression.git"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"bugs":{"url":"https://github.com/pugjs/is-expression/issues"},"license":"MIT","readmeFilename":"README.md","users":{"rocket0191":true}}