{"versions":{"1.0.0":{"name":"esast-util-from-js","version":"1.0.0","description":"estree (and esast) utility to parse from JavaScript","license":"MIT","keywords":["unist","estree","estree-util","esast","esast-util","util","utility","js","parse","tokenize","acorn"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/esast-util-from-js.git"},"bugs":{"url":"https://github.com/syntax-tree/esast-util-from-js/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/estree-jsx":"^0.0.1","acorn":"^8.0.0","esast-util-from-estree":"^1.0.0","vfile-message":"^3.0.0"},"devDependencies":{"@types/tape":"^4.0.0","acorn-stage3":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.49.0"},"scripts":{"prepack":"npm run build && npm run format","build":"rimraf \"{lib,test}/**/*.d.ts\" \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test/index.js","test-coverage":"c8 --check-coverage --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"no-await-in-loop":"off"},"ignore":["test/fixtures/"]},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreFiles":["lib/types.d.ts"]},"gitHead":"41ec60d64641bbc706b5beb41ebfa6382fef6502","homepage":"https://github.com/syntax-tree/esast-util-from-js#readme","_id":"esast-util-from-js@1.0.0","_nodeVersion":"18.2.0","_npmVersion":"8.9.0","dist":{"integrity":"sha512-jqK8mokE7Gvij+UDeRpU8P+Rgris7B9lkHyez7uqAG5ID/h0joG9ps9DCHKOZzKCHooQdGYIClTCgmlPk6P35Q==","shasum":"3ceb25419d861128799c8c848c346c20bbf4f8ab","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/esast-util-from-js/-/esast-util-from-js-1.0.0.tgz","fileCount":7,"unpackedSize":15580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDweiWAWGRBm3/YZwkozrVJBkoXOO1aq6j+YkcYosB7LgIhAPzdT/SSl/Vtl+pH7FbvKZdtYL8Wpek0tftsODp9PSG/"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilQYbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpyJQ//XfRnNba24gPg7/j2+FygNa2uHdqKz74qpwExflqeM02mMoOk\r\nHCsqBrcURbAP7G2wpJYd2J3IJG4bh1kLPB2tq3P2ZSobKjt4X1rB3lp8eHIv\r\nOu4iWKDE5mLkj7nZ2vz/oSeHMT5r1HGuI5i6qk5hWZnAYPMuIKv8GStNNwNK\r\n+f3UdSncsSH1tp1xK8Pt7/GCNqduMItng2vFwvCHnS/Yl8rbJTsDmxO835Jd\r\nrFajtcynqKQUqohQ7DRNtZ/nVpOD//z3Wh4Wm1AnqyRqeJrmouWC2iSq/TXh\r\nAEPYNlhBg+WE8RedHuGrZiaqGrmxlOJIPSrLaS5m+lb5fk6zgK1GfO6IbfLg\r\n/1lHE6f6zstIv1T9pAaEV+/tGzQtFYQOwW2R7Rl8xGNIR0ex5qe7rFrpShIj\r\nYwEU6U3Sf/iRy+IB2EwJadOuADXbzZ7v+MNdBEEEmVYhPSg5IUIFDeHOGTHn\r\nCK3C/DYOYlOErCghA6ekSgaPIfMe2/FW3vItxwcRbF6uvCFBmk3b630fGxoS\r\njOCkO+V0v2d6BCA5ejwVyx69StE5gOfQs4bAD1i0Xo+drTKsZRutU6MlpulB\r\nSVlkVHJXwC+DS+wXKjYSHWF01fGPuGdPBdJKs54twrz0GF8KuJhxjkq80IF1\r\nVr3LzQxz3mCre9UfgpJ2WbFT+gYKJmOHLOs=\r\n=aDF8\r\n-----END PGP SIGNATURE-----\r\n","size":5425},"_npmUser":{"name":"anonymous","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esast-util-from-js_1.0.0_1653933595283_0.6368768968170446"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-30T18:00:37.646Z"},"1.1.0":{"name":"esast-util-from-js","version":"1.1.0","description":"estree (and esast) utility to parse from JavaScript","license":"MIT","keywords":["unist","estree","estree-util","esast","esast-util","util","utility","js","parse","tokenize","acorn"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/esast-util-from-js.git"},"bugs":{"url":"https://github.com/syntax-tree/esast-util-from-js/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/estree-jsx":"^1.0.0","acorn":"^8.0.0","esast-util-from-estree":"^1.0.0","vfile-message":"^3.0.0"},"devDependencies":{"@types/tape":"^4.0.0","acorn-stage3":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.51.0"},"scripts":{"prepack":"npm run build && npm run format","build":"rimraf \"{lib,test}/**/*.d.ts\" \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test/index.js","test-coverage":"c8 --check-coverage --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"no-await-in-loop":"off"},"ignore":["test/fixtures/"]},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreFiles":["lib/types.d.ts"]},"gitHead":"3debd67703155866cfa09eb5d8264f83865b5f2c","homepage":"https://github.com/syntax-tree/esast-util-from-js#readme","_id":"esast-util-from-js@1.1.0","_nodeVersion":"18.2.0","_npmVersion":"8.13.2","dist":{"integrity":"sha512-XaW9Y5Ag4ceNg6kkwNFhRexnkNgtINnBbHdXC5LRv7g021xLj5LX7AGB6qLafvrEcVeVl+iUV0i6SssTOoOoBA==","shasum":"a2fc7057847c0f632b15d0dbc64444514e9d3a0e","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/esast-util-from-js/-/esast-util-from-js-1.1.0.tgz","fileCount":7,"unpackedSize":15580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFvhU2GWOj/zgh7AIwRaFDnylRpiHcrQ5KKM8wQXWZrQAiBX/ozHgeQH18kwNQmJzpD5hlWpgrnQLzjPnBDeQgMaMA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3Rk5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoS8w/9Fle/nETslTvvycGbQcGzlkoKIQV9PenOVqpo1erKXknzzo4n\r\nsaBMjMJNodXnx3nylGyhIWJNIi5cJ0qTbFYnS7hpW72jLSMFrh10bfuFWpR+\r\nY3q30KmZGMZjzjXLsNN3S/eJnwebhjQJ7H73xS6J6Tn4VEDX1vbMIfYKZmlP\r\n+q39kQBA/kdpiiD6C7eYrrP3Hs5Z9Sc7EdPL6QaAk0vh80Hdt8S985hDFsK0\r\nNi4WsCTYOoN7lOEeg6TAOOluzlEeRnm4o/1CHVXevZEmkkpHQ/lQV1Qnhw38\r\ntxQLX4DjLF6LrFFYwh88di2qPvPfuaI7eFE6eYxsxTERirrZar8/llz130m1\r\nKz+u22Y/JCAt13lUDPu5Qq4JG8k/RzqkXHBT9I2DupI12Tz6kzw41hANZp37\r\nrYnOSeurzUO6a7q19G9Fh9REUyXMs/J2pVtJkfSi5irqwz5qefYEFTrWD6iM\r\nWfNM/0JhWlI560fSZV/Vk7N0N3RePbjy9p57yq4XpoJWJssCUG9GIv7vSsxD\r\nf3dT8V2SVR6jb1gC06PHw4jRyo3AdeOlXlkghSfS41fnhc9cauT6veNmI28T\r\nKzBRnSPTTmhXfw36uq5s8GW43KLJO2HeCkRcE6EtCg41WDpMu8kxWgne54iJ\r\nCD09mUMu6c0iAyNM/QeE+yH+FKMkn73r0As=\r\n=UVmG\r\n-----END PGP SIGNATURE-----\r\n","size":5419},"_npmUser":{"name":"anonymous","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"tituswormer@gmail.com"},{"name":"anonymous","email":"keith@mcknig.ht"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esast-util-from-js_1.1.0_1658657080953_0.6345193000195284"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-24T10:04:46.200Z"},"1.1.1":{"name":"esast-util-from-js","version":"1.1.1","description":"estree (and esast) utility to parse from JavaScript","license":"MIT","keywords":["unist","estree","estree-util","esast","esast-util","util","utility","js","parse","tokenize","acorn"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/esast-util-from-js.git"},"bugs":{"url":"https://github.com/syntax-tree/esast-util-from-js/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/estree-jsx":"^1.0.0","acorn":"^8.0.0","esast-util-from-estree":"^1.0.0","vfile-message":"^3.0.0"},"devDependencies":{"@types/node":"^18.0.0","acorn-stage3":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.53.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test/index.js","test-coverage":"c8 --check-coverage --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"no-await-in-loop":"off"},"ignore":["test/fixtures/"]},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreFiles":["lib/types.d.ts"]},"gitHead":"a90db039a347290d3fd68c56f2c1c9f17f307992","homepage":"https://github.com/syntax-tree/esast-util-from-js#readme","_id":"esast-util-from-js@1.1.1","_nodeVersion":"19.3.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-ShNLvlRTegmn1SUqHpOT1OG/DjxR4TOK9iIQh2t0AiR9Dbi+n4Qa4KYKIauXEQSuZOBMDv01gBvBsxYASZF2Tg==","shasum":"b1e5172a434458d6579338a442edde95902a21ca","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/esast-util-from-js/-/esast-util-from-js-1.1.1.tgz","fileCount":7,"unpackedSize":16835,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCphk3sV1PP6XiEZSKtpNsc0XF0rXstNkE0k9nMoz8S/QIgRWt/t49K0NiMYLRJHg3gvVtBGhkBPlqQ1buq02rW8bk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtYyaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6qA/9FfZZJAzhaoz9Y7qd56PXiileV2taRxa1AAzbhNYuPXwdScxu\r\nZTy/I1G256uNZI/jgPcWGAdFglbSBKfo+J/TnIcSOTnmLQfgCUpU+thmAG1G\r\nBFTXzhLholHen44gjgKmqdNyrG10rxe1fGt7w8qtYAPgtNeRAlm8WIWxWQVQ\r\nLNA7qW7Sipy34rgBerbei25sd5xXNk9MO+oNKRH3IJ6xYjS9EhyGdhTCf933\r\nB3CEDf+Ppn5jbSgdXpTNUh/VxJV63anKVphJQWgeVYvdy2cv0N2kKR/p8YB7\r\ndXGTlHbkMTWb7ZThsNGGqVISK/GuzIbD4Ko4UWvb74LG5ueXZaaL7bKly78Y\r\nwVtBlTWNp3KdFAEhJ37DZQTEgOCOI72qKekQ5xepvK5bulqxWdq66llHaLVs\r\nsUFZNVXFWISbe1Ntx8Vbg35Z9Wg72VgukYzdRh2ZfzPRIILf7/T1RDe8zcKo\r\nS1sktt52o9H1URJc1c1AouXbENAd0yrCAdbFnKkJLikvvnq5ZywPTE5paBss\r\noYzahI8Tei4vDUrI4pZxNRj+b1GDPb00BvteFge1AiT/UzoFVVYP7ijGxnLp\r\nYMrlIVhF6bfiiM8I9vt2BtTKeG8iFAskHC+1fBzWQLt631/1rXlvqQfMUgSB\r\nhUHPoYYkjycSdsZFa94Hsy/dzFjE9gwP60k=\r\n=JsNU\r\n-----END PGP SIGNATURE-----\r\n","size":5654},"_npmUser":{"name":"anonymous","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"tituswormer@gmail.com"},{"name":"anonymous","email":"keith@mcknig.ht"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esast-util-from-js_1.1.1_1672842394241_0.9764344578922828"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-04T14:27:53.320Z"},"1.2.0":{"name":"esast-util-from-js","version":"1.2.0","description":"estree (and esast) utility to parse from JavaScript","license":"MIT","keywords":["unist","estree","estree-util","esast","esast-util","util","utility","js","parse","tokenize","acorn"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/esast-util-from-js.git"},"bugs":{"url":"https://github.com/syntax-tree/esast-util-from-js/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/estree-jsx":"^1.0.0","acorn":"^8.0.0","esast-util-from-estree":"^1.0.0","vfile-message":"^3.0.0"},"devDependencies":{"@types/node":"^18.0.0","acorn-stage3":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.53.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test/index.js","test-coverage":"c8 --check-coverage --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"no-await-in-loop":"off"},"ignore":["test/fixtures/"]},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreFiles":["lib/types.d.ts"]},"gitHead":"dcdf080ec71ae0298f8096cf55957045a2f7e561","homepage":"https://github.com/syntax-tree/esast-util-from-js#readme","_id":"esast-util-from-js@1.2.0","_nodeVersion":"19.3.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-vqze/JvT47Q+S30zleU5CSqp1/pybqr2Px/WRJYTIBwqomUCLjFdxo0UwMwS/E+Ba3rQjxxoAZjcWfsJ/6igew==","shasum":"908698ce39cfae0eb86d5da2eb30390f5da02cb7","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/esast-util-from-js/-/esast-util-from-js-1.2.0.tgz","fileCount":7,"unpackedSize":17735,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDYvNE+jkytmjwKiqUyTFzPSjuRa+8uYkLrZkiLDTZSDAiAM+wYC8eNqkJiKPsOXoWZNKPjKaCB3SrPaG5Jxb3COjg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjy/TWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKSA/5AQC+EGnN05b79iUAJhhQpm/w9TJIaTECpwmvyl+EaAxOb8zM\r\nCYeBo7ZekvAe3vtehyXqaLwbiRPbWo9ayKazD14hsc3Anb+4F+jyJS+ycPtf\r\nr5MsnMQRuq0Bim+xBPsIpUXvtFsPOJgvTSIY/wMsssLqdZKnQK/rzL/w7WbI\r\nigOY3MDgs4o8mHan1drUEqMD629Tu75FeqRJHcQid1ii8Px6aGpEg+ooYyQg\r\ndCEH1T21DPuo0MlwPerNWLj5tDTWPGxV/XjHh05FrSBvoAl8HzaOpKxp2oo1\r\nptk6JJVm9IkPg2v9Z7eeh53MeebY6CbL4ZcGggAYnfbdM/wTkzNjX37GUBVj\r\nOdFVq8A+7/GOr8T+SuiRmBO2PNVuNd2m+6sPD5TGAz2BKtExN+lMMC2rTewz\r\nx2FCQy0l20KIiZwe6GNZbA86q2JlLzjqGfRETXfWi9RaH2mgmrC2HZiiVLgv\r\n7rfWLAaK7TGRbf4zWyhg1yfTl5Ucr2E2Kn++rtzfBnIBQ6zvYuNfWT003Lou\r\nvdMBt4OIL557v+m6DCzD2hz2ie/Ae5JWxfYUMWZ9GQ4ea003ugQRqcW3v7fV\r\nlGsPjizxRHt6r1ocW6sqrj4QEKRoK7U9rOPDLRl8yV09b8pUm96rqpyi8b3/\r\ngCI+Ail1hhxrH3+7Vyq7OlJ2NNDK5VXqz2s=\r\n=Olis\r\n-----END PGP SIGNATURE-----\r\n","size":5758},"_npmUser":{"name":"anonymous","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"tituswormer@gmail.com"},{"name":"anonymous","email":"keith@mcknig.ht"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esast-util-from-js_1.2.0_1674310870175_0.25886930329799984"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-21T14:21:10.350Z","publish_time":1674310870350},"2.0.0":{"name":"esast-util-from-js","version":"2.0.0","description":"estree (and esast) utility to parse from JavaScript","license":"MIT","keywords":["unist","estree","estree-util","esast","esast-util","util","utility","js","parse","tokenize","acorn"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/esast-util-from-js.git"},"bugs":{"url":"https://github.com/syntax-tree/esast-util-from-js/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","exports":"./index.js","dependencies":{"@types/estree-jsx":"^1.0.0","acorn":"^8.0.0","esast-util-from-estree":"^1.0.0","vfile-message":"^4.0.0"},"devDependencies":{"@types/node":"^20.0.0","acorn-stage3":"^4.0.0","c8":"^8.0.0","prettier":"^3.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^5.0.0","xo":"^0.55.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . -qfo && prettier . -w --log-level warn && xo --fix","test-api":"node --conditions development test/index.js","test-coverage":"c8 --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"bracketSpacing":false,"semi":false,"singleQuote":true,"tabWidth":2,"trailingComma":"none","useTabs":false},"remarkConfig":{"plugins":["remark-preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"ignoreCatch":true,"strict":true},"xo":{"ignore":["test/fixtures/"],"prettier":true,"rules":{"no-await-in-loop":"off"}},"gitHead":"ad5606a785bbc0757c2daddd9bf2f8490d3392ef","types":"./index.d.ts","homepage":"https://github.com/syntax-tree/esast-util-from-js#readme","_id":"esast-util-from-js@2.0.0","_nodeVersion":"20.0.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-JziSwBlFdfRPA9pVqzG79nKUnJaO3NQlJdSWqZbnC8rwyZxZkzV28oW4/aWX14JChWptBO7W6idx1rKRB4Qepg==","shasum":"f7f99e8375dc60d2be7624ff03a8fe2a2ddee4f8","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/esast-util-from-js/-/esast-util-from-js-2.0.0.tgz","fileCount":7,"unpackedSize":19066,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHlVbpgXL5i8/U+XnUiI6Y5TYbkNfh3HU3CUW07d5PDNAiAw+IyMNMvU1MPSwtFlTMZGsB63lxmSDPwQsF1gZEA57Q=="}],"size":6052},"_npmUser":{"name":"anonymous","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"tituswormer@gmail.com"},{"name":"anonymous","email":"keith@mcknig.ht"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esast-util-from-js_2.0.0_1689773293351_0.5686541205026068"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-19T13:28:13.655Z","publish_time":1689773293655,"_source_registry_name":"default"},"2.0.1":{"name":"esast-util-from-js","version":"2.0.1","description":"estree (and esast) utility to parse from JavaScript","license":"MIT","keywords":["unist","estree","estree-util","esast","esast-util","util","utility","js","parse","tokenize","acorn"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/esast-util-from-js.git"},"bugs":{"url":"https://github.com/syntax-tree/esast-util-from-js/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","exports":"./index.js","dependencies":{"@types/estree-jsx":"^1.0.0","acorn":"^8.0.0","esast-util-from-estree":"^2.0.0","vfile-message":"^4.0.0"},"devDependencies":{"@types/node":"^20.0.0","acorn-stage3":"^4.0.0","c8":"^8.0.0","prettier":"^3.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^5.0.0","xo":"^0.55.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . -qfo && prettier . -w --log-level warn && xo --fix","test-api":"node --conditions development test/index.js","test-coverage":"c8 --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"bracketSpacing":false,"semi":false,"singleQuote":true,"tabWidth":2,"trailingComma":"none","useTabs":false},"remarkConfig":{"plugins":["remark-preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"ignoreCatch":true,"strict":true},"xo":{"ignore":["test/fixtures/"],"prettier":true,"rules":{"no-await-in-loop":"off"}},"gitHead":"57b7fb7d3697cec0445d2dbae8f73d98fdbc70f9","types":"./index.d.ts","homepage":"https://github.com/syntax-tree/esast-util-from-js#readme","_id":"esast-util-from-js@2.0.1","_nodeVersion":"20.0.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-8Ja+rNJ0Lt56Pcf3TAmpBZjmx8ZcK5Ts4cAzIOjsjevg9oSXJnl6SUQ2EevU8tv3h6ZLWmoKL5H4fgWvdvfETw==","shasum":"5147bec34cc9da44accf52f87f239a40ac3e8225","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/esast-util-from-js/-/esast-util-from-js-2.0.1.tgz","fileCount":7,"unpackedSize":19018,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGrnisS0gERlNYfd4MQu0fQ6rMunW8oU3m64R3wZkPoQAiA7GyW0I91I7Gux1RaixGPbsmOaxcomqTFRO6T+dHbCWA=="}],"size":6039},"_npmUser":{"name":"anonymous","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"tituswormer@gmail.com"},{"name":"anonymous","email":"keith@mcknig.ht"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esast-util-from-js_2.0.1_1690792906727_0.1244021427814972"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-31T08:41:46.875Z","publish_time":1690792906875,"_source_registry_name":"default"}},"dist-tags":{"latest":"2.0.1"},"name":"esast-util-from-js","time":{"created":"2022-05-30T18:00:38.784Z","modified":"2024-11-01T02:48:12.233Z","1.0.0":"2022-05-30T17:59:55.406Z","1.1.0":"2022-07-24T10:04:41.144Z","1.1.1":"2023-01-04T14:26:34.343Z","1.2.0":"2023-01-21T14:21:10.350Z","2.0.0":"2023-07-19T13:28:13.655Z","2.0.1":"2023-07-31T08:41:46.875Z"},"readme":"# esast-util-from-js\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][sponsors-badge]][collective]\n[![Backers][backers-badge]][collective]\n[![Chat][chat-badge]][chat]\n\n[esast][] (and [estree][]) utility to parse trees from JavaScript.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`fromJs(value[, options])`](#fromjsvalue-options)\n    *   [`Options`](#options)\n    *   [`Plugin`](#plugin)\n    *   [`Value`](#value)\n    *   [`Version`](#version-1)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package is a utility that turns a string of JavaScript into an esast\n(estree with some extra cleanliness) syntax tree.\n\n## When should I use this?\n\nYou can use this utility when you want to deal with ASTs of JavaScript\ncombined with other [unist][] and [`vfile`][vfile] things.\nYou can use [`acorn`][acorn] itself if you don’t care about unified.\n\nThe utility [`estree-util-to-js`][estree-util-to-js] does the inverse of this\nutility.\nIt turns the tree into a string of JavaScript.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install esast-util-from-js\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {fromJs} from 'https://esm.sh/esast-util-from-js@2'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {fromJs} from 'https://esm.sh/esast-util-from-js@2?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport fs from 'node:fs/promises'\nimport {fromJs} from 'esast-util-from-js'\n\nconst tree = fromJs(await fs.readFile('example.js'), {module: true})\n\nconsole.log(tree)\n```\n\nYields:\n\n```js\n{\n  type: 'Program',\n  body: [\n    {\n      type: 'ImportDeclaration',\n      specifiers: [Array],\n      source: [Object],\n      position: [Object]\n    },\n    {\n      type: 'ImportDeclaration',\n      specifiers: [Array],\n      source: [Object],\n      position: [Object]\n    },\n    {\n      type: 'VariableDeclaration',\n      declarations: [Array],\n      kind: 'const',\n      position: [Object]\n    },\n    {\n      type: 'ExpressionStatement',\n      expression: [Object],\n      position: [Object]\n    }\n  ],\n  sourceType: 'module',\n  comments: [],\n  position: {\n    start: {line: 1, column: 1, offset: 0},\n    end: {line: 7, column: 1, offset: 157}\n  }\n}\n```\n\n## API\n\nThis package exports the identifier [`fromJs`][api-from-js].\nThere is no default export.\n\n### `fromJs(value[, options])`\n\nParse JavaScript to an esast.\n\n###### Parameters\n\n*   `value` ([`Value`][api-value])\n    — serialized JavaScript to parse\n*   `options` ([`Options`][api-options], optional)\n    — configuration\n\n###### Returns\n\nTree ([`Node`][node]).\n\n###### Throws\n\nWhen the JavaScript cannot be parsed with `acorn`, a\n[`VFileMessage`][vfile-message] is thrown.\n\nThis can for example happen when passing modern syntax (you could maybe use a\nnewer `version`, or it might be that the syntax is not yet supported), or just\notherwise invalid JavaScript (you might need a plugin).\n\n### `Options`\n\nConfiguration (TypeScript type).\n\n##### Fields\n\n###### `version`\n\nJavaScript version ([`Version`][api-version], default: `'latest'`).\n\nWhen a number, must be a year in the range `2015` and `2023` (both including).\n`'latest'` is the same as passing the latest supported year.\n\n> ☢️ **Danger**: `'latest'` is a sliding thing, you could consider it as\n> breaking semver.\n> Pass an actual year to lock that down.\n\n###### `module`\n\nWhether this is a module (ESM) or a script (`boolean`, default: `false`).\n\n###### `allowReturnOutsideFunction`\n\nWhether a return statement is allowed in the top scope (`boolean`, default:\n`false`).\n\n###### `allowImportExportEverywhere`\n\nWhether import/export statements are allowed in the every scope (`boolean`,\ndefault: `false`).\n\n###### `allowAwaitOutsideFunction`\n\nWhether `await` is allowed in the top scope (`boolean`, default: depends).\nDefaults to `version >= 2022`.\n\n###### `allowSuperOutsideMethod`\n\nWhether `super` is allowed outside methods (`boolean`, default: `false`).\n\n###### `allowHashBang`\n\nWhether a shell hasbang is allowed (`boolean`, default: `false`).\n\n###### `plugins`\n\nList of acorn plugins ([`Array<Plugin>`][api-plugin], default: `[]`).\nExamples are [`acorn-jsx`][acorn-jsx] and [`acorn-stage3`][acorn-stage3].\n\n### `Plugin`\n\nAcorn plugin (TypeScript type).\n\n###### Type\n\n```ts\ntype Plugin = (Parser: ParserClass) => ParserClass\n```\n\n### `Value`\n\nInput value (TypeScript type).\n\nWhen a typed array, must be UTF-8.\n\n###### Type\n\n```ts\ntype Value = Uint8Array | string\n```\n\n### `Version`\n\nJavaScript version (TypeScript type).\n\n`'latest'` is equivalent to the latest supported year.\n\n###### Type\n\n```ts\ntype Version = 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 'latest'\n```\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional types [`Options`][api-options],\n[`Plugin`][api-plugin],\n[`Value`][api-value], and\n[`Version`][api-version].\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line, `esast-util-from-js@^2`,\ncompatible with Node.js 16.\n\n## Contribute\n\nSee [`contributing.md`][contributing] in [`syntax-tree/.github`][health] for\nways to get started.\nSee [`support.md`][support] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/syntax-tree/esast-util-from-js/workflows/main/badge.svg\n\n[build]: https://github.com/syntax-tree/esast-util-from-js/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/esast-util-from-js.svg\n\n[coverage]: https://codecov.io/github/syntax-tree/esast-util-from-js\n\n[downloads-badge]: https://img.shields.io/npm/dm/esast-util-from-js.svg\n\n[downloads]: https://www.npmjs.com/package/esast-util-from-js\n\n[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=esast-util-from-js\n\n[size]: https://bundlejs.com/?q=esast-util-from-js\n\n[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[collective]: https://opencollective.com/unified\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[chat]: https://github.com/syntax-tree/unist/discussions\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esmsh]: https://esm.sh\n\n[typescript]: https://www.typescriptlang.org\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[health]: https://github.com/syntax-tree/.github\n\n[contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md\n\n[support]: https://github.com/syntax-tree/.github/blob/main/support.md\n\n[coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md\n\n[esast]: https://github.com/syntax-tree/esast\n\n[node]: https://github.com/syntax-tree/esast#node\n\n[estree]: https://github.com/estree/estree\n\n[unist]: https://github.com/syntax-tree/unist\n\n[vfile]: https://github.com/vfile/vfile\n\n[acorn]: https://github.com/acornjs/acorn\n\n[acorn-jsx]: https://github.com/acornjs/acorn-jsx\n\n[acorn-stage3]: https://github.com/acornjs/acorn-stage3\n\n[estree-util-to-js]: https://github.com/syntax-tree/estree-util-to-js\n\n[vfile-message]: https://github.com/vfile/vfile-message\n\n[api-from-js]: #fromjsvalue-options\n\n[api-options]: #options\n\n[api-plugin]: #plugin\n\n[api-value]: #value\n\n[api-version]: #version-1","users":{}}