{"_id":"unist-util-position-from-estree","_rev":"6-657dc585facf7d9bfaa0f241e935f2b0","name":"unist-util-position-from-estree","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"unist-util-position-from-estree","version":"1.0.0","description":"unist utility to get a position from an estree node","license":"MIT","keywords":["unist","unist-util","util","utility","recma","esast","estree","javascript","ecmascript","node","position"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-position-from-estree.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-position-from-estree/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"}],"type":"module","module":"./index.js","dependencies":{},"devDependencies":{"acorn":"^8.0.0","c8":"^7.5.0","nyc":"^15.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","tape":"^5.0.0","xo":"^0.37.0"},"scripts":{"format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --experimental-modules test.js","test":"npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"ignores":[],"rules":{"no-var":"off","prefer-arrow-callback":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"98eaf6de05c22d527d9f2fcae2bfc3a4ae8c285c","homepage":"https://github.com/syntax-tree/unist-util-position-from-estree#readme","_id":"unist-util-position-from-estree@1.0.0","_nodeVersion":"15.1.0","_npmVersion":"7.5.2","dist":{"integrity":"sha512-zu2cU0TWTJb7o99i9PVzlWLdyn8ryQ1DstGDQbmzBks54kK2OxNd1WqcE+NAPnQKnQcor1wEOYg+Q4pXO47zgQ==","shasum":"bfb5b674ecabbc8b40bf95be169ada0b62c6160f","tarball":"https://registry.npmjs.org/unist-util-position-from-estree/-/unist-util-position-from-estree-1.0.0.tgz","fileCount":4,"unpackedSize":6838,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLk20CRA9TVsSAnZWagAA6skP/jV9JEcYXjX2Bou+NqPN\nR2Mno0u9KzjvwUpalIm96iUQMk+LPyY9Puz/wxMN5jdQbVTRcc1u31MbPNiC\n9RjrlVLBYJnclwf+BpV7MhObftR80vvCFKd2k8PstnHaxNvjJ1S+wDFUrwWq\nkCd3Z7wMk6TAN6/tFLLGBUiva6avmWVTOAShTDx6HJ5cgZ93F6vmt/t9jJrb\nDYiMVbcVLc+cK8fSkwQB5mU2qVnqns4wZ5pdgYwN6JQKAI3aDSNkltuGFRfh\nDrcJuq/UjFslIKds5q12O00K7dxp6Md3sFiHFAx4I6CbBN5HzcH65gk6v9Pc\nJPovyEfTph+6Lutr8qq/TSj61cdD0gEc6yFzrOHacGu0URSMadF58Qcxupx8\nXZE7QtKTkS2gLttdkaJEhNTseazrChhvvsfAoNfT+/yXdnrMZRgsrsZzwYPk\nlrte7oVScPz5rLlTTKWBZ0gTx2egA4fVzRoQL1/+3HKkp3Hh6RtmGHlzwRtd\nda/qbgqRwh4nctooRaVgYkxe4nQvvUeSb6EI/LZ91CH8jMepEvHNkZp0Q8IH\ncGpNdK2uH/84d7nbpDe5MbQEIlOBJTDUrD22EVPU2P0VnSZrXuzVnBAKu9xy\nnOTRbnMoUMY2w0pxDe0EFrqjKQ0jYEECqiFP1748QZgJiM+15m0dIQ7lOsaR\nSEZb\r\n=9Rlv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDo7qBM0agFDE+dZuvbrQhb+hJMFhvF/S8/M454XcOxgIgXv/L2wMQgnqYLTAnv27acLHDDGIL7nENn11zTNlo1Kk="}]},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-position-from-estree_1.0.0_1613647284129_0.920278824551791"},"_hasShrinkwrap":false},"1.1.0":{"name":"unist-util-position-from-estree","version":"1.1.0","description":"unist utility to get a position from an estree node","license":"MIT","keywords":["unist","unist-util","util","utility","recma","esast","estree","javascript","ecmascript","node","position"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-position-from-estree.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-position-from-estree/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/unist":"^2.0.0"},"devDependencies":{"@types/acorn":"^4.0.0","@types/tape":"^4.0.0","acorn":"^8.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.38.0"},"scripts":{"prepack":"npm run build && npm run format","build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --experimental-modules test.js","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-var":"off","prefer-arrow-callback":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"e0d92dc7b78dd51e46614cddc6cfe1b81a29ac8d","homepage":"https://github.com/syntax-tree/unist-util-position-from-estree#readme","_id":"unist-util-position-from-estree@1.1.0","_nodeVersion":"15.11.0","_npmVersion":"7.6.2","dist":{"integrity":"sha512-FveBeLp2Oc5XTn8DCX++DB4ETP8BaiRl0DuVGdD8s5I+V/boj81rBm0pNdwAixXUtGvVdsinPOT+Thy2yFrMEA==","shasum":"31f5e0f771629ec718443765e10ea590231760c7","tarball":"https://registry.npmjs.org/unist-util-position-from-estree/-/unist-util-position-from-estree-1.1.0.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdt8gCRA9TVsSAnZWagAA6QYP/jMlR79FB6MvhmGJ4do5\ns0DejI7cEXM586zF1qeiib4E6vo09dkyOzzfgjPTfBNXWiXhvQ6fv1JRQJHG\n7oqmtCTyCoqSPW9wGjaNUTK+8D7bjQFqX42uDey0d6p3TTniFmIZbSNcel1F\nIvjZhf9A5CBCrOFVXM09MKLSGUw4k26qCI8fXHhtHXU1hYObW06lPTNELsJC\nmIrZ4odHP/tiVE8eOXf2znba+IVsQQ1dS/o7bf86W3+N3ygG66wLg3MlFfFp\nxCDCndgOEetLkyz5dryojf6Ykl0qqTnRV8I/G3feGnFEeDiLE60pPIzpbwQC\noEgHCyKHRMY9igBRad9H74ZLgpVyDUelOdb+Y/Jw30SqrNl4Omhg+180d/wT\nXaktWKH2lc2Aq4vKsU9eWw9YADikSREfGzu7ik7PFEyJM5i18Sk1an9ciSYP\nQNOAPAqPpKX+rlGjkJuS6VqcwLZw5K4mw5pWVPJLVkR0DhXnCc0Upl58oeLD\ngA1p9e73BARtjgFADjutKOeeMGMXA2X2sSB0NSZKn9Zjen5RaVgosFMt9Lw7\nllorYbhi2hgl3+gPC0O5JegxI6w/9CAntnuYHdtJ2cP3pJYlgns7DytR182V\nFmow5sCSpa4vhT2QTzzpgqcaIBNhjxq70Mywn/PVudmtZVIAJXdFR/8lcdfD\n9HJB\r\n=THTF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDB5eY/A9fXyPKSD8922xde4Qfr+9N9HTk1LhYHg/1LIgIhAPiF6GLtXFDjVmXLmrwOt2z8/SaUvuamUgtaNjdQdAQ6"}]},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"kmck","email":"keith@mcknig.ht"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-position-from-estree_1.1.0_1618403103533_0.3981667235675921"},"_hasShrinkwrap":false},"1.1.1":{"name":"unist-util-position-from-estree","version":"1.1.1","description":"unist utility to get a position from an estree node","license":"MIT","keywords":["unist","unist-util","util","utility","recma","esast","estree","javascript","ecmascript","node","position"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-position-from-estree.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-position-from-estree/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/unist":"^2.0.0"},"devDependencies":{"@types/acorn":"^4.0.0","@types/tape":"^4.0.0","acorn":"^8.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.44.0"},"scripts":{"prepack":"npm run build && npm run format","build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --experimental-modules test.js","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},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"a1952feaa1bc50fe51e5ba87e63f1a1c01a02b61","homepage":"https://github.com/syntax-tree/unist-util-position-from-estree#readme","_id":"unist-util-position-from-estree@1.1.1","_nodeVersion":"16.6.1","_npmVersion":"7.20.3","dist":{"integrity":"sha512-xtoY50b5+7IH8tFbkw64gisG9tMSpxDjhX9TmaJJae/XuxQ9R/Kc8Nv1eOsf43Gt4KV/LkriMy9mptDr7XLcaw==","shasum":"96f4d543dfb0428edc01ebb928570b602d280c4c","tarball":"https://registry.npmjs.org/unist-util-position-from-estree/-/unist-util-position-from-estree-1.1.1.tgz","fileCount":5,"unpackedSize":9928,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFUhjCRA9TVsSAnZWagAAIjYP/0RkvPnke+EwgckzKeJo\nr4mTItkQucbPhozImLjCmOsAodXVoLT39qzSuk6qHlq/6rXMPCxwsyLnReg6\n4l30HRsizfXo5mktldomFAwBlV9a1HLCPid+izI51bctFa9CSidOXbtgWnkd\nNYOvATcuGG62KGvMThO1VHLwXOP+BDRssfyAMKm0dT2mzovwBlSL04IUxRm8\n/Dadcwi4aUVEYxrA7Sbbl1iRBfC5gHBrsyHGjU44yymqB2U2SsHHL0PiUCbZ\nXoK18yJFyghetzmFt80edARITSo+vt4s4yaKCFvGcRKsKLTd12BgAVCQXTYE\nvtQuLZv+PR2ShBju6VNlDGmn3hI2TgMA1Pcd7SXm4UMH/ZI2OmwBJIJjJz19\nu52/tAarCpMqZAXUnQ3YPg4/Az8nRLadZgVH56Q7Xn5AFf+BfT/J2OqJ7PCr\nQgbEcdNkQeDFRRiOjo1krENhgJZpsKMoegKTAsepeUNJJN1sNAyFUTsPqfbZ\nOMO5hYNOF/7LvcWo6cXOK79LRlNElMwPn0JyYGYjLLlC9k8JhLLLqZRgMKeV\nZ34iROBCUPeie0UlfLrSbRsiwmPlD7Rp1e9LfYcpVq5MGISCNTva955AoIbd\nm73TaCgrZWm7q6oDZ0UVb0OdZMBUYUgTm6pRwwJmB+Mn6YomzFXXInjGltMp\nIiXu\r\n=X13G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsr9JZvvHxA3LElpHgpktWd9KQqYEmeP6LwqUMxe/KCQIhAOqsN9ulLuuek8FTElvZmkyPIzwgmwFqWQqNyWJsUvRM"}]},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"kmck","email":"keith@mcknig.ht"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-position-from-estree_1.1.1_1628784739367_0.04721870552598051"},"_hasShrinkwrap":false},"1.1.2":{"name":"unist-util-position-from-estree","version":"1.1.2","description":"unist utility to get a position from an estree node","license":"MIT","keywords":["unist","unist-util","util","utility","recma","esast","estree","javascript","ecmascript","node","position"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-position-from-estree.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-position-from-estree/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/unist":"^2.0.0"},"devDependencies":{"@types/acorn":"^4.0.0","@types/node":"^18.0.0","acorn":"^8.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.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},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"6b0b9e8cb4fbd524198daac1ba4a9df7e54f6367","homepage":"https://github.com/syntax-tree/unist-util-position-from-estree#readme","_id":"unist-util-position-from-estree@1.1.2","_nodeVersion":"19.3.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-poZa0eXpS+/XpoQwGwl79UUdea4ol2ZuCYguVaJS4qzIOMDzbqz8a3erUCOmubSZkaOuGamb3tX790iwOIROww==","shasum":"8ac2480027229de76512079e377afbcabcfcce22","tarball":"https://registry.npmjs.org/unist-util-position-from-estree/-/unist-util-position-from-estree-1.1.2.tgz","fileCount":7,"unpackedSize":11445,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDvA5PtoJUDDf0EBK3ZkZ8lolQTmLZQMNkBbC0lXHlT3AiAbMeGclMg8E1VZlWOxbl4NLdG1BWqvoBLka5xZ9HCBJA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyl60ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoq5A/+OUnUfeg/h721Gj/CgRjhv9i/Xb/9YpEj8JmafzQdXNX5cpjd\r\nN875GCkKidDFQsMIH1X8Yy2OjOV0t56oAlYZgLTTogVOMY+CnLP4tOZlTLPn\r\ni+25EFghj6LLV274i0HndTjpsBr1o73s6hjBW/H3IQXYbUjCnO8DpawER5WM\r\nAkdNSygGQG1tAf7QfkalnW+OUpSIPHJQsjfP/pnWGv+1uvg+R/EjJcyshBTm\r\nVWQJrbtlfZKbxMvWe8PrxnKBi+E5SHG2Br9Kl6Vbj+jLfNZwzShgKwZyntaY\r\n1BvoHXRHk4NDb0GxEz0E8T8JpQ/POWM0zowL+BBZfPjaMRSiu8Y854LS3iR2\r\nuHrCrRMx6NY52byR0uB5kOtnxqOM/zMCHOaJPCJ6dbUAHtp90Avgn8toOJM3\r\nFp/J/0mxR6Ufp95/x+WwH5aKBXQQS7X6uNxWDrQO+0/j3Jz4un698xGPTKVm\r\npb+uf5dAAdjlTf1RNefSNfsRLWGTCxFvaXrITMbYXmZGnHfRvrsOFidkesoc\r\nxnD+gobBY6R9EkU6Cn3QSaTaQRTQMI0cQqwymHtxgmacWC/k83ph7h6GUjRZ\r\nWhUjtzQpFyJLfQFlOaa/E758ndCpq4GivGn+4s03TLtJnT7MUMgDbEdSeo5k\r\nzxeiWJ7FVFFMAOLfdssokKxUNZBYRTPIxUg=\r\n=jZGs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"kmck","email":"keith@mcknig.ht"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-position-from-estree_1.1.2_1674206899936_0.6540283211531028"},"_hasShrinkwrap":false},"2.0.0":{"name":"unist-util-position-from-estree","version":"2.0.0","description":"unist utility to get a position from an estree node","license":"MIT","keywords":["unist","unist-util","util","utility","recma","esast","estree","javascript","ecmascript","node","position"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-position-from-estree.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-position-from-estree/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/unist":"^3.0.0"},"devDependencies":{"@types/acorn":"^4.0.0","@types/node":"^20.0.0","acorn":"^8.0.0","c8":"^8.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^5.0.0","xo":"^0.54.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.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":{"prettier":true},"gitHead":"e489a6ea00bbe773296e68c2e0b4ee14eecee7e0","types":"./index.d.ts","homepage":"https://github.com/syntax-tree/unist-util-position-from-estree#readme","_id":"unist-util-position-from-estree@2.0.0","_nodeVersion":"20.0.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-KaFVRjoqLyF6YXCbVLNad/eS4+OfPQQn2yOd7zF/h5T/CSL2v8NpN6a5TPvtbXthAGw5nG+PuTtq+DdIZr+cRQ==","shasum":"d94da4df596529d1faa3de506202f0c9a23f2200","tarball":"https://registry.npmjs.org/unist-util-position-from-estree/-/unist-util-position-from-estree-2.0.0.tgz","fileCount":7,"unpackedSize":11927,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHb/7ZDhZD6swgSkbGon8FW7Vni9BbwXWv/u6LdpnY5DAiEA1BA9QCc1ZNA5xZhN/V7QGvWHxYtft7FrxnLbmFU0w9g="}]},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"kmck","email":"keith@mcknig.ht"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-position-from-estree_2.0.0_1688724121602_0.3696738335107763"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-18T11:21:24.127Z","1.0.0":"2021-02-18T11:21:24.299Z","modified":"2023-07-07T10:02:02.127Z","1.1.0":"2021-04-14T12:25:03.676Z","1.1.1":"2021-08-12T16:12:19.545Z","1.1.2":"2023-01-20T09:28:20.085Z","2.0.0":"2023-07-07T10:02:01.794Z"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"kmck","email":"keith@mcknig.ht"}],"description":"unist utility to get a position from an estree node","homepage":"https://github.com/syntax-tree/unist-util-position-from-estree#readme","keywords":["unist","unist-util","util","utility","recma","esast","estree","javascript","ecmascript","node","position"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-position-from-estree.git"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-position-from-estree/issues"},"license":"MIT","readme":"# unist-util-position-from-estree\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[unist][] utility to get a position from an [estree][] node.\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    *   [`positionFromEstree(node)`](#positionfromestreenode)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package is a tiny utility that can create a proper unist position from\nan estree node\n\n## When should I use this?\n\nYou can use this package when you want to use other unist utilities with estree\nnodes.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install unist-util-position-from-estree\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {positionFromEstree} from 'https://esm.sh/unist-util-position-from-estree@2'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {positionFromEstree} from 'https://esm.sh/unist-util-position-from-estree@2?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {parse} from 'acorn'\nimport {positionFromEstree} from 'unist-util-position-from-estree'\n\n// Make acorn support line/column.\nconst node = parse('function x() { console.log(1) }', {\n  ecmaVersion: 2020,\n  locations: true\n})\n\nconsole.log(positionFromEstree(node)) // `Program`\nconsole.log(positionFromEstree(node.body[0].id)) // `x`\nconsole.log(positionFromEstree(node.body[0].body.body[0].expression)) // Call\n```\n\nYields:\n\n```js\n{\n  start: {line: 1, column: 1, offset: 0},\n  end: {line: 1, column: 32, offset: 31}\n}\n{\n  start: {line: 1, column: 10, offset: 9},\n  end: {line: 1, column: 11, offset: 10}\n}\n{\n  start: {line: 1, column: 16, offset: 15},\n  end: {line: 1, column: 30, offset: 29}\n}\n```\n\n## API\n\nThis package exports the identifier [`positionFromEstree`][positionfromestree].\nThere is no default export.\n\n### `positionFromEstree(node)`\n\nTurn an estree `node` into a unist `position`.\n\n###### Parameters\n\n*   `node` ([`Node`][node])\n    — estree node\n\n###### Returns\n\nunist position, if valid ([`Position`][position] or `undefined`).\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports no additional types.\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,\n`unist-util-position-from-estree@^2`, compatible 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<!-- Definition -->\n\n[build-badge]: https://github.com/syntax-tree/unist-util-position-from-estree/workflows/main/badge.svg\n\n[build]: https://github.com/syntax-tree/unist-util-position-from-estree/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/unist-util-position-from-estree.svg\n\n[coverage]: https://codecov.io/github/syntax-tree/unist-util-position-from-estree\n\n[downloads-badge]: https://img.shields.io/npm/dm/unist-util-position-from-estree.svg\n\n[downloads]: https://www.npmjs.com/package/unist-util-position-from-estree\n\n[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=unist-util-position-from-estree\n\n[size]: https://bundlejs.com/?q=unist-util-position-from-estree\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[estree]: https://github.com/estree/estree\n\n[node]: https://github.com/estree/estree/blob/master/es5.md#node-objects\n\n[unist]: https://github.com/syntax-tree/unist\n\n[position]: https://github.com/syntax-tree/unist#position\n\n[positionfromestree]: #positionfromestreenode\n","readmeFilename":"readme.md"}