{"_id":"constantinople","_rev":"47685","name":"constantinople","description":"Determine whether a JavaScript expression evaluates to a constant","dist-tags":{"latest":"4.0.1"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"time":{"modified":"2024-06-10T11:20:50.000Z","created":"2013-06-26T03:43:27.269Z","4.0.1":"2019-09-17T11:39:29.656Z","4.0.0":"2019-09-17T11:37:52.732Z","3.1.2":"2018-02-09T23:46:54.306Z","3.1.1":"2018-02-09T23:40:07.327Z","3.1.0":"2016-06-09T14:36:31.573Z","3.0.2":"2015-07-21T17:13:27.422Z","3.0.1":"2014-09-22T16:42:45.974Z","3.0.0":"2014-09-22T15:28:14.371Z","2.0.1":"2014-07-09T10:21:25.848Z","2.0.0":"2014-02-21T15:13:32.766Z","1.0.2":"2013-08-25T01:44:29.030Z","1.0.1":"2013-06-26T03:55:01.692Z","1.0.0":"2013-06-26T03:43:27.269Z"},"users":{"nyakto":true},"author":{"name":"ForbesLindesay"},"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/constantinople.git"},"versions":{"4.0.1":{"name":"constantinople","version":"4.0.1","main":"lib/index.js","types":"lib/index.d.ts","description":"Determine whether a JavaScript expression evaluates to a constant","keywords":["constant","ast","tooling"],"dependencies":{"@babel/parser":"^7.6.0","@babel/types":"^7.6.1"},"devDependencies":{"@types/node":"^9.4.4","mocha":"*","prettier":"^1.18.2","typescript":"^2.7.1"},"scripts":{"prepublish":"npm run build","build":"tsc","pretest":"npm run build && npm run prettier:check","test":"mocha -R spec","prettier:write":"prettier --ignore-path .gitignore --write './**/*.{md,json,yaml,js,jsx,ts,tsx}'","prettier:check":"echo \"If prettier fails you can fix it by running npm run prettier:write\" && prettier --ignore-path .gitignore --list-different './**/*.{md,json,yaml,js,jsx,ts,tsx}'"},"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/constantinople.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"7f81bd7f6f00db69f27a7e4b05eee27367e98620","bugs":{"url":"https://github.com/ForbesLindesay/constantinople/issues"},"homepage":"https://github.com/ForbesLindesay/constantinople#readme","_id":"constantinople@4.0.1","_nodeVersion":"10.16.2","_npmVersion":"6.9.0","dist":{"integrity":"sha512-vCrqcSIq4//Gx74TXXCGnHpulY1dskqLTFGDmhrGxzeXL8lF8kvXv6mpNWlJj1uD4DW23D4ljAqbY4RRaaUZIw==","shasum":"0def113fa0e4dc8de83331a5cf79c8b325213151","tarball":"http://registry-npm.ywwl.com/constantinople/download/constantinople-4.0.1.tgz","fileCount":15,"unpackedSize":35585,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdgMXyCRA9TVsSAnZWagAArQUP/2Yz1U7bWCruvC30HDzi\nOZdbOVCh6ftgi3NHOXXbohPHoOIeNlKJM1EQSvEhBQsxOXQ9RUmCcdaYueve\nO3LUu0TVc83/JDPH2ThDYoFvQD/Gcrl45z3/il19qyknPxMJBNmVLV5faF1h\n+KaK5nL4VcDJ2D9bC8EvW7qu/q9rxPSydhYFJGE9d9tKBMRLCaorfI+Hy2q6\nP+Hmgpz8jEVgP+cIq7uf2UhNbnEc94wDNu5EXurjqu44oyycXzVdcizB+WgS\nb7TcXB4BU4+Bpi07kD9P4Xtke8NStKiKTvrfZ2IYC+duJNLJKsvz4SKp4qLu\nynaRpH/aeaP94P5pfOCQxzm+L2S3IOB+Ipu6Yoz3jgh5CZ0PyjCsDYIgkqwj\nF20cWWY3Ukp3FTACdU8+NECHkj9N4S/4/hBodIGL5+qEahidPbA1p6LJRTtr\nuqRTrzUf9GfWCt00C6WW8HiKPgpGy/QVYgn7gpB+jyX2VUwoz9xEuaDYY/Pa\nrP2+/wvQSgFbIhntOq2EsRWsNm0dx8QAVYI/tMlA2VgHkKOCtH1cf0ZMMo3e\nfVTDVJvSpTTkTyU5j+8DrDfQuBuuy0A6BqB9p1aFiQ+iM68zCxRyeHSNmZz3\nWmgTmspdIHIME2aaEw/nd+OQDqebjgfIWVkZD/QXZtuSg2Bhv0AxCPYYiYwn\nq9RS\r\n=sCrl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFKNdi0gRmE0brRsPb5xVKB/YJE8m/TLezh6im2qZsZSAiBnndUFlVRy23XChekHSbMGrRtHpekUEKS24GPcxhrtjQ=="}],"size":7460,"noattachment":false,"key":"/constantinople/-/constantinople-4.0.1.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/constantinople_4.0.1_1568720369521_0.7712279961436586"},"_hasShrinkwrap":false,"publish_time":1568720369656,"_cnpm_publish_time":1568720369656},"4.0.0":{"name":"constantinople","version":"4.0.0","main":"lib/index.js","types":"lib/index.d.ts","description":"Determine whether a JavaScript expression evaluates to a constant","keywords":["constant","ast","tooling"],"dependencies":{"@babel/types":"^7.6.1","@babel/parser":"^7.6.0"},"devDependencies":{"@types/node":"^9.4.4","mocha":"*","typescript":"^2.7.1"},"scripts":{"prepublish":"npm run build","build":"tsc","pretest":"npm run build","test":"mocha -R spec"},"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/constantinople.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"9902a79893380b59a63a5a33f3855cc0f70e931f","bugs":{"url":"https://github.com/ForbesLindesay/constantinople/issues"},"homepage":"https://github.com/ForbesLindesay/constantinople#readme","_id":"constantinople@4.0.0","_nodeVersion":"10.16.2","_npmVersion":"6.9.0","dist":{"integrity":"sha512-TAXEFlBVfO5BlQh6HHCinrHSipzSnpCWMFZw8x+r/XnaQccxeK+7LHRIyNhWZJAeCS99zZLxJTRcjFYPaydvqA==","shasum":"38eb7bf0ecbb46b7e080402445b1abe8f9e16df2","tarball":"http://registry-npm.ywwl.com/constantinople/download/constantinople-4.0.0.tgz","fileCount":15,"unpackedSize":35026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdgMWRCRA9TVsSAnZWagAAerwP/2mqKeKT0+gT8oCTPaFp\njGTZ4yVRBy93/6Ooo3TDb4k9/Q6xeBHC+labZh6rCh5sVxWBsLUvq/Fimj+g\noTUDXUMgJ4fyMTV8tqiZB25o0nsxLr2d6nFdoMZhNU8QQawZQdUbdkVxNtUd\nALqIV133BK0ev5lABuwjAPT0QgMMtnS7BGKYuP9krErbtrGkT884MqlTv3mT\nii83ABg30MjpUJhkcf7Ey46ONmeNr/r0JU99VcRuJgeKXxPhyA+ar6UrPZy2\nvhrZ6UeyphvPKZX7oqV7FpfD0s64eBiMkk1XE50sPQYGq+6A94FGr8qo0gEN\n8zwjuGpgXfaeeFaMhwVbqH52YMo+dtruELznA2pT3dfHttz8GGFRqxa5eN54\n5LRszOSi/ZJ+kLh5lTf6rUzZmgdGz2YNK++ScURswAP3zYlasCWtBd6zE3Bo\nqddSZD5b1YfM7QY1ahlX3nI++JtaQ7ucGh7lJ5PEMXvCLefDLZvJnf4P2+LH\nN/aKp7L6B2eomEey+ESMkBFWT4Xm2lkqUJSI8VBrQPWt5yzYAQwzscUF2211\n5zccZb5pXwHpAJzIRy4o+t/sc8CgpE+oxnevNM6Wjp1eK9VwzssilZINmq3E\nGmYXTn8UGbr3Y9t2zwSubPqTHcxSER8XJjZmktO5rnanX1MBCcPbN0c/M1W6\nSJyA\r\n=3roV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGQozCtCQpKctq3nIl9uiaBMiXWFXyHawTbqBeANcUuqAiBOWAtOxChuKWFx9HYu1jdaUPaDZp0wHb/0y/VS2LOnMw=="}],"size":7307,"noattachment":false,"key":"/constantinople/-/constantinople-4.0.0.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/constantinople_4.0.0_1568720272605_0.8513705623475625"},"_hasShrinkwrap":false,"publish_time":1568720272732,"_cnpm_publish_time":1568720272732},"3.1.2":{"name":"constantinople","version":"3.1.2","main":"lib/index.js","types":"lib/index.d.ts","description":"Determine whether a JavaScript expression evaluates to a constant (using acorn)","keywords":["acorn","ast","tooling"],"dependencies":{"@types/babel-types":"^7.0.0","@types/babylon":"^6.16.2","babel-types":"^6.26.0","babylon":"^6.18.0"},"devDependencies":{"@types/node":"^9.4.4","mocha":"*","typescript":"^2.7.1"},"scripts":{"prepublish":"npm run build","build":"tsc","pretest":"npm run build","test":"mocha -R spec"},"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/constantinople.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"8c1e731bd862da48df1158980e3171f689f5b9af","bugs":{"url":"https://github.com/ForbesLindesay/constantinople/issues"},"homepage":"https://github.com/ForbesLindesay/constantinople#readme","_id":"constantinople@3.1.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"dist":{"integrity":"sha512-yePcBqEFhLOqSBtwYOGGS1exHo/s1xjekXiinh4itpNQGCu4KA1euPh1fg07N2wMITZXQkBz75Ntdt1ctGZouw==","shasum":"d45ed724f57d3d10500017a7d3a889c1381ae647","tarball":"http://registry-npm.ywwl.com/constantinople/download/constantinople-3.1.2.tgz","fileCount":14,"unpackedSize":34110,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEDOvWbEb4HQLxhrVqwEGBvaqAxSzLwLQ0cpfsLIH0rlAiApNpsCDQYEh1/stK6Hy6u+r/U/IovmMWgtdF5EVwZ3ZA=="}],"size":7134,"noattachment":false,"key":"/constantinople/-/constantinople-3.1.2.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/constantinople_3.1.2_1518220013631_0.12338593752898475"},"_hasShrinkwrap":false,"publish_time":1518220014306,"_cnpm_publish_time":1518220014306},"3.1.1":{"name":"constantinople","version":"3.1.1","main":"lib/index.js","types":"lib/index.d.ts","description":"Determine whether a JavaScript expression evaluates to a constant (using acorn)","keywords":["acorn","ast","tooling"],"dependencies":{"@types/babylon":"^6.16.2","babel-types":"^6.16.0","babylon":"^6.18.0","babylon-walk":"^1.0.2"},"devDependencies":{"@types/node":"^9.4.4","mocha":"*","typescript":"^2.7.1"},"scripts":{"prepublish":"npm run build","build":"tsc","pretest":"npm run build","test":"mocha -R spec"},"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/constantinople.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"01d409c0d081dfd65223e6b7767c244156d35f7f","bugs":{"url":"https://github.com/ForbesLindesay/constantinople/issues"},"homepage":"https://github.com/ForbesLindesay/constantinople#readme","_id":"constantinople@3.1.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"dist":{"integrity":"sha512-flmdUwXmWehQ0FlJyeHM4uwTXrEmEcX1ZC7+xXaB+uwCF1lw138xf707SjTCuQTudgpF4f6eLmm3tHSuuQtF/Q==","shasum":"eaaa48b48aadc5b5c7ad060cc7b59ab862067fa9","tarball":"http://registry-npm.ywwl.com/constantinople/download/constantinople-3.1.1.tgz","fileCount":14,"unpackedSize":34091,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIvZwv5l7yBiq0A5fqVuqSurRAXbffjALwF+Dp0vqwYgIhAJqqfTFMYXDm99Mh7oGt1DtlI9t+PTNp1YFBAIh44/t/"}],"size":7129,"noattachment":false,"key":"/constantinople/-/constantinople-3.1.1.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/constantinople_3.1.1_1518219606604_0.6792148811026057"},"_hasShrinkwrap":false,"publish_time":1518219607327,"_cnpm_publish_time":1518219607327},"3.1.0":{"name":"constantinople","version":"3.1.0","description":"Determine whether a JavaScript expression evaluates to a constant (using acorn)","keywords":["acorn","ast","tooling"],"dependencies":{"acorn":"^3.1.0","is-expression":"^2.0.1"},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/constantinople.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"d130e2ead6ef68861f31d4446f074458de8daf89","bugs":{"url":"https://github.com/ForbesLindesay/constantinople/issues"},"homepage":"https://github.com/ForbesLindesay/constantinople#readme","_id":"constantinople@3.1.0","_shasum":"7569caa8aa3f8d5935d62e1fa96f9f702cd81c79","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"dist":{"shasum":"7569caa8aa3f8d5935d62e1fa96f9f702cd81c79","tarball":"http://registry-npm.ywwl.com/constantinople/download/constantinople-3.1.0.tgz","integrity":"sha512-EiQujbmPtODxPla615C3gnQzP8k1Z/XqfHuIPBC/U89HYAvBq+IfuNeX/xok3wqIIzKFXPysi8kVVT0UJ2hJAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaF5gOsc8iPiHYagWOkE1RUm1loybeUWcF51KodW9BygIgYFa83EeSsZkARGxbhO/iNxezXESCAk0v2V5iek5Q4vg="}],"size":4085,"noattachment":false,"key":"/constantinople/-/constantinople-3.1.0.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/constantinople-3.1.0.tgz_1465482989204_0.43931016116403043"},"directories":{},"deprecated":"Please update to at least constantinople 3.1.1","publish_time":1465482991573,"_cnpm_publish_time":1465482991573},"3.0.2":{"name":"constantinople","version":"3.0.2","description":"Determine whether a JavaScript expression evaluates to a constant (using UglifyJS)","keywords":[],"dependencies":{"acorn":"^2.1.0"},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/constantinople.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"8947fdfb41428b1c8f5df1645f38bc0af34d7f21","bugs":{"url":"https://github.com/ForbesLindesay/constantinople/issues"},"homepage":"https://github.com/ForbesLindesay/constantinople","_id":"constantinople@3.0.2","_shasum":"4b945d9937907bcd98ee575122c3817516544141","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"dist":{"shasum":"4b945d9937907bcd98ee575122c3817516544141","tarball":"http://registry-npm.ywwl.com/constantinople/download/constantinople-3.0.2.tgz","integrity":"sha512-UnEggAQrmhxuTxlb7n1OsTtagNXWUv2CRlOogZhWOU4jLK4EJEbF8UDSNxuGu+jVtWNtO2j51ab2H1wlBIzF/w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyjR/jpSIuhTjMYJcUnLvLgrvKehlvWkiwivpgavoGGwIgN8pbppUrdiHsOs8jDeqY7dd/f70tL0QI2nAIlp521dg="}],"size":4005,"noattachment":false,"key":"/constantinople/-/constantinople-3.0.2.tgz"},"directories":{},"deprecated":"Please update to at least constantinople 3.1.1","publish_time":1437498807422,"_cnpm_publish_time":1437498807422},"3.0.1":{"name":"constantinople","version":"3.0.1","description":"Determine whether a JavaScript expression evaluates to a constant (using UglifyJS)","keywords":[],"dependencies":{"acorn-globals":"^1.0.0"},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/constantinople.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"ed3597688b01f666ec716108bf7c348338ef14af","bugs":{"url":"https://github.com/ForbesLindesay/constantinople/issues"},"homepage":"https://github.com/ForbesLindesay/constantinople","_id":"constantinople@3.0.1","_shasum":"1ddf9deac0d14c4367c1d5b3f16fb2763f123108","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"forbeslindesay","email":"forbes@lindeay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"dist":{"shasum":"1ddf9deac0d14c4367c1d5b3f16fb2763f123108","tarball":"http://registry-npm.ywwl.com/constantinople/download/constantinople-3.0.1.tgz","integrity":"sha512-3JLb0+ZlcpWRFPEtUE6HeJ3fJTCK/MedtC3s5UarIa3UD1hSSjKEg6eHhiJPYE56S98DXOA1E7wIsriA/O8LQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAt9qN08yskScPPQftFbzXzTIYLfGmhH8MrbGRuGNoxDAiEA8fNiMwVXF3gHmNFpo5ZbxUDX/hjENG9UfaUEbI8Ccy4="}],"size":2881,"noattachment":false,"key":"/constantinople/-/constantinople-3.0.1.tgz"},"directories":{},"deprecated":"Please update to at least constantinople 3.1.1","publish_time":1411404165974,"_cnpm_publish_time":1411404165974},"3.0.0":{"name":"constantinople","version":"3.0.0","description":"Determine whether a JavaScript expression evaluates to a constant (using UglifyJS)","keywords":[],"dependencies":{"acorn-globals":"^1.0.0"},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/constantinople.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"1201642d68ba9817a6b1c1d8aadcde17af753eba","bugs":{"url":"https://github.com/ForbesLindesay/constantinople/issues"},"homepage":"https://github.com/ForbesLindesay/constantinople","_id":"constantinople@3.0.0","_shasum":"2567a7c4602311b375fd252b3e50affa25d0a0de","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"forbeslindesay","email":"forbes@lindeay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"dist":{"shasum":"2567a7c4602311b375fd252b3e50affa25d0a0de","tarball":"http://registry-npm.ywwl.com/constantinople/download/constantinople-3.0.0.tgz","integrity":"sha512-q+c6/Smn9zPn3XhnzkaCG5GFbVGszmnpy0SL+GjAYATrrLPOqUyaBeVt2tj2XXzobiygVcA/hG4/gBOaKhzFDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICm116qz5L2qnUvPEIhgF6/yxGB10c9P7XUoy3JtgMeBAiAafWuMX6uDzqBXuELOSOCw3/l5ahYhjX1nuoTTqJkH8g=="}],"size":2806,"noattachment":false,"key":"/constantinople/-/constantinople-3.0.0.tgz"},"directories":{},"deprecated":"Please update to at least constantinople 3.1.1","publish_time":1411399694371,"_cnpm_publish_time":1411399694371},"2.0.1":{"name":"constantinople","version":"2.0.1","description":"Determine whether a JavaScript expression evaluates to a constant (using UglifyJS)","keywords":[],"dependencies":{"uglify-js":"~2.4.0"},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/constantinople.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","bugs":{"url":"https://github.com/ForbesLindesay/constantinople/issues"},"homepage":"https://github.com/ForbesLindesay/constantinople","_id":"constantinople@2.0.1","dist":{"shasum":"5829f856f301a9bdb107d935f77d8eb8ccec4c79","tarball":"http://registry-npm.ywwl.com/constantinople/download/constantinople-2.0.1.tgz","integrity":"sha512-ZF+ejGc/Gu8ucEaiTOgbptlCxKnzHtUaS7rwB/ZYjnoCZxZyuu82V6zQB/Ax/CS/rp/x2FI/x8gQxrtC4ekxlw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAGav4YPPsFzPo7VPFfl/wLstP3m3pZV3UoRSb66M6TZAiBW809GE6UB5NNh7vEdvUXop5i77ytuRmQOBiWr6WMfVA=="}],"size":2990,"noattachment":false,"key":"/constantinople/-/constantinople-2.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"forbeslindesay","email":"forbes@lindeay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"deprecated":"Please update to at least constantinople 3.1.1","publish_time":1404901285848,"_cnpm_publish_time":1404901285848},"2.0.0":{"name":"constantinople","version":"2.0.0","description":"Determine whether a JavaScript expression evaluates to a constant (using UglifyJS)","keywords":[],"dependencies":{"uglify-js":"~2.4.0"},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/constantinople.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","bugs":{"url":"https://github.com/ForbesLindesay/constantinople/issues"},"homepage":"https://github.com/ForbesLindesay/constantinople","_id":"constantinople@2.0.0","dist":{"shasum":"0558c3f340095a43acf2386149e5537074330e49","tarball":"http://registry-npm.ywwl.com/constantinople/download/constantinople-2.0.0.tgz","integrity":"sha512-b1Wuk4zo66NAMNU8sjCukS/+dg8r2NvOIIPg0tZzgiAxx28zvtUklbmDt1xg3pbz8Z7F7Rlw5Hacqd2WYDDI2A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDE5HhU+gci8//cfQx9i624czqQ+TY2TyFr3bV/jxrLkQIhANVvwY+LmalCAJWohPnAmLrxQZ1hWHa7QiQzm5bbLx1w"}],"size":2814,"noattachment":false,"key":"/constantinople/-/constantinople-2.0.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"forbeslindesay","email":"forbes@lindeay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"deprecated":"Please update to at least constantinople 3.1.1","publish_time":1392995612766,"_cnpm_publish_time":1392995612766},"1.0.2":{"name":"constantinople","version":"1.0.2","description":"Determine whether a JavaScript expression evaluates to a constant (using UglifyJS)","keywords":[],"dependencies":{"uglify-js":"~2.4.0"},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/constantinople.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","bugs":{"url":"https://github.com/ForbesLindesay/constantinople/issues"},"_id":"constantinople@1.0.2","dist":{"shasum":"0e64747dc836644d3f659247efd95231b48c3e71","tarball":"http://registry-npm.ywwl.com/constantinople/download/constantinople-1.0.2.tgz","integrity":"sha512-n1hD02YqQHUsLQIJ7oW37kiXf+qFESnoaIUuX9BumnykBDUzB75LBpeQ7fIBHI3+bHvDaFksvISIa9n+UjUyKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGZQVSE5qICX53q+jmTENF//hY8RJDrp3lAS88hg427oAiA8bmRY0oVKembGx8Qmm8Y6Kr075QdnOHitVu/T7i3aNQ=="}],"size":2530,"noattachment":false,"key":"/constantinople/-/constantinople-1.0.2.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"deprecated":"Please update to at least constantinople 3.1.1","publish_time":1377395069030,"_cnpm_publish_time":1377395069030},"1.0.1":{"name":"constantinople","version":"1.0.1","description":"Determine whether a JavaScript expression evaluates to a constant (using UglifyJS)","keywords":[],"dependencies":{"uglify-js":"~2.3.6"},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/constantinople.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","_id":"constantinople@1.0.1","dist":{"shasum":"038727385eb70567ffb5a825abc44870b56f4de9","tarball":"http://registry-npm.ywwl.com/constantinople/download/constantinople-1.0.1.tgz","integrity":"sha512-ouqMgWaYFfngM2JfJUwFS+20UginIna5aANr/va8OMkR+Az9XktlV6S2FZo4/+anihL+OtY8TVun4V1/c+jj6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICKiMUUK/d7Wb+CL7LNDkV54CFfO4CRdYvoj8DTsBbj5AiEAmjF7Kf2sbZ7LSbaeEtmDrf3ClmTwmx4HRnw/4by4ltk="}],"size":2527,"noattachment":false,"key":"/constantinople/-/constantinople-1.0.1.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"deprecated":"Please update to at least constantinople 3.1.1","publish_time":1372218901692,"_cnpm_publish_time":1372218901692},"1.0.0":{"name":"constantinople","version":"1.0.0","description":"Determine whether a JavaScript expression evaluates to a constant (using UglifyJS)","keywords":[],"dependencies":{"uglify-js":"~2.3.6"},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/constantinople.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","_id":"constantinople@1.0.0","dist":{"shasum":"550a82e33ad2f591d2b58fa5bba40380994d90ce","tarball":"http://registry-npm.ywwl.com/constantinople/download/constantinople-1.0.0.tgz","integrity":"sha512-7PktsmPg4U5x5vV+Be0k2icqM60Jk5H8Lx1uNmT33s5OgKKPfqEkJF2MS5kVY7BA0RmjYi6ei2LGkm9Ujxxg/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUUJMgOSa0NmRbMcdSRVosIBwX6zva0A59fz5h5MXqeQIhAL9OxaHbdg5u1TmIyhZ5sm/KJg4pyEbrvGGt1kQesJ4z"}],"size":2468,"noattachment":false,"key":"/constantinople/-/constantinople-1.0.0.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"deprecated":"Please update to at least constantinople 3.1.1","publish_time":1372218207269,"_cnpm_publish_time":1372218207269}},"readme":"# constantinople\n\nDetermine whether a JavaScript expression evaluates to a constant (using Babylon). Here it is assumed to be safe to underestimate how constant something is.\n\n[![Build Status](https://img.shields.io/travis/pugjs/constantinople/master.svg)](https://travis-ci.org/pugjs/constantinople)\n[![Dependency Status](https://img.shields.io/david/pugjs/constantinople.svg)](https://david-dm.org/pugjs/constantinople)\n[![NPM version](https://img.shields.io/npm/v/constantinople.svg)](https://www.npmjs.org/package/constantinople)\n\n## Installation\n\n    npm install constantinople\n\n## Usage\n\n```js\nvar isConstant = require('constantinople');\n\nif (isConstant('\"foo\" + 5')) {\n  console.dir(isConstant.toConstant('\"foo\" + 5'));\n}\nif (isConstant('Math.floor(10.5)', {Math: Math})) {\n  console.dir(isConstant.toConstant('Math.floor(10.5)', {Math: Math}));\n}\n```\n\n## API\n\n### isConstant(src, [constants, [options]])\n\nReturns `true` if `src` evaluates to a constant, `false` otherwise. It will also return `false` if there is a syntax error, which makes it safe to use on potentially ES6 code.\n\nConstants is an object mapping strings to values, where those values should be treated as constants. Note that this makes it a pretty bad idea to have `Math` in there if the user might make use of `Math.random` and a pretty bad idea to have `Date` in there.\n\nOptions are directly passed-through to [Babylon](https://github.com/babel/babylon#options).\n\n### toConstant(src, [constants, [options]])\n\nReturns the value resulting from evaluating `src`. This method throws an error if the expression is not constant. e.g. `toConstant(\"Math.random()\")` would throw an error.\n\nConstants is an object mapping strings to values, where those values should be treated as constants. Note that this makes it a pretty bad idea to have `Math` in there if the user might make use of `Math.random` and a pretty bad idea to have `Date` in there.\n\nOptions are directly passed-through to [Babylon](https://github.com/babel/babylon#options).\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/ForbesLindesay/constantinople#readme","bugs":{"url":"https://github.com/ForbesLindesay/constantinople/issues"},"license":"MIT"}