{"_id":"@codemod-esm/utils","_rev":"5-fc331ef540f596b9c2047e5b58507f26","name":"@codemod-esm/utils","dist-tags":{"latest":"1.1.2"},"versions":{"1.1.0":{"name":"@codemod-esm/utils","version":"1.1.0","author":{"name":"Brian Donovan"},"license":"Apache-2.0","_id":"@codemod-esm/utils@1.1.0","maintainers":[{"name":"mochaa","email":"npm@mochaa.ws"}],"homepage":"https://github.com/codemod-js/codemod#readme","bugs":{"url":"https://github.com/codemod-js/codemod/issues"},"dist":{"shasum":"4e6795670a32fc33583c1dfe24f059cd243d8cbb","tarball":"https://registry.npmjs.org/@codemod-esm/utils/-/utils-1.1.0.tgz","fileCount":17,"integrity":"sha512-0ef3bpZTeZX0Oeu4RJusrOugxr0TRY8zAGgue4yD8m39VFq4aGlCgmdjbq/OBlsvq4TARIMx89oDpS31I3Yq6w==","signatures":[{"sig":"MEYCIQCtchpsMOOAWfmUWiN68QA2lkBWwNF8tZVspSrUpEe8cgIhAOyi5xus1C7uXmksmMxMVR0GFbvPhDALJMznf8kXkm3m","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14836},"main":"dist/index.js","type":"module","_from":"file:codemod-esm-utils-1.1.0.tgz","types":"dist/index.d.ts","exports":{"bun":"./src/index.ts","default":"./dist/index.js"},"scripts":{"lint":"eslint .","test":"bun test","build":"tsc --build tsconfig.build.json","clean":"rimraf dist tsconfig.build.tsbuildinfo","lint:fix":"eslint . --fix"},"_npmUser":{"name":"mochaa","email":"npm@mochaa.ws"},"_resolved":"/tmp/a1652f80db568bfdc085be65c7e3e5d9/codemod-esm-utils-1.1.0.tgz","_integrity":"sha512-0ef3bpZTeZX0Oeu4RJusrOugxr0TRY8zAGgue4yD8m39VFq4aGlCgmdjbq/OBlsvq4TARIMx89oDpS31I3Yq6w==","deprecated":"Please use jsr:@codemod/utils","repository":{"url":"git+https://github.com/codemod-js/codemod.git","type":"git"},"_npmVersion":"10.9.0","description":"codemod rewrites JavaScript and TypeScript","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@babel/core":"^7.26.0","@babel/types":"^7.26.3","@babel/traverse":"^7.26.4","@codemod-esm/parser":"^1.4.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.1.14","@types/node":"^20.17.9","@types/babel__core":"^7.20.5","@types/babel__traverse":"^7.20.6","@types/babel__generator":"^7.6.8"},"_npmOperationalInternal":{"tmp":"tmp/utils_1.1.0_1733590693583_0.9169695231178505","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@codemod-esm/utils","version":"1.1.1","author":{"name":"Brian Donovan"},"license":"Apache-2.0","_id":"@codemod-esm/utils@1.1.1","maintainers":[{"name":"mochaa","email":"npm@mochaa.ws"}],"homepage":"https://github.com/codemod-js/codemod#readme","bugs":{"url":"https://github.com/codemod-js/codemod/issues"},"dist":{"shasum":"d5c406b2a03a1aadc4c546ee0ac67d07b7d36d68","tarball":"https://registry.npmjs.org/@codemod-esm/utils/-/utils-1.1.1.tgz","fileCount":17,"integrity":"sha512-9tXVgpfO5X54gwMFBdPTcuM6hgWpIrZVA1gPlGxQb8yTORoegaxoUUd3PNWYmCCNaW5njLuQayMKg6az2AGRPQ==","signatures":[{"sig":"MEQCICECplz1pXESrqppAwm4SW+eUdBNCCep+SnlFv1frctHAiBL5P1REaCP6ePEq1+yhDI4HAGDCAHOm0rfhZ9gYIVf0g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14807},"main":"dist/index.js","type":"module","_from":"file:codemod-esm-utils-1.1.1.tgz","types":"dist/index.d.ts","exports":{"default":"./dist/index.js"},"scripts":{"lint":"eslint .","test":"bun test","build":"tsc --build tsconfig.build.json","clean":"rimraf dist tsconfig.build.tsbuildinfo","lint:fix":"eslint . --fix"},"_npmUser":{"name":"mochaa","email":"npm@mochaa.ws"},"_resolved":"/tmp/2a213df2307f316b79933b9e27dded23/codemod-esm-utils-1.1.1.tgz","_integrity":"sha512-9tXVgpfO5X54gwMFBdPTcuM6hgWpIrZVA1gPlGxQb8yTORoegaxoUUd3PNWYmCCNaW5njLuQayMKg6az2AGRPQ==","deprecated":"Please use jsr:@codemod/utils","repository":{"url":"git+https://github.com/codemod-js/codemod.git","type":"git"},"_npmVersion":"10.9.0","description":"codemod rewrites JavaScript and TypeScript","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@babel/core":"^7.26.0","@babel/types":"^7.26.3","@babel/traverse":"^7.26.4","@codemod-esm/parser":"^1.4.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.1.14","@types/node":"^20.17.9","@types/babel__core":"^7.20.5","@types/babel__traverse":"^7.20.6","@types/babel__generator":"^7.6.8"},"_npmOperationalInternal":{"tmp":"tmp/utils_1.1.1_1733591350370_0.9873967096521603","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"@codemod-esm/utils","version":"1.1.2","author":{"name":"Brian Donovan"},"license":"Apache-2.0","_id":"@codemod-esm/utils@1.1.2","maintainers":[{"name":"mochaa","email":"npm@mochaa.ws"}],"homepage":"https://github.com/codemod-js/codemod#readme","bugs":{"url":"https://github.com/codemod-js/codemod/issues"},"dist":{"shasum":"ff70ded0c0ea4a9ebc836c1a898d1af80a95a49a","tarball":"https://registry.npmjs.org/@codemod-esm/utils/-/utils-1.1.2.tgz","fileCount":17,"integrity":"sha512-V4lBJTqEaljEaKogAd5eWhVIPKLYjWCBIwIw/0Zf0GeSDkf3JKj5L9qbiTRviuKuX60q6r7vE6vmnznrYKcukg==","signatures":[{"sig":"MEYCIQCtbAp3+2EXJ0B9PYbx8cgUL9h95i/ZL9cTkcmslb9vKgIhALKm4MBDp5gWyk945hngEBeE51u/fQFKscW3heQIwEGx","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14834},"main":"dist/index.js","type":"module","_from":"file:codemod-esm-utils-1.1.2.tgz","types":"dist/index.d.ts","exports":{"default":"./dist/index.js"},"scripts":{"lint":"eslint .","test":"bun test","build":"tsc --build tsconfig.build.json","clean":"rimraf dist tsconfig.build.tsbuildinfo","lint:fix":"eslint . --fix"},"_npmUser":{"name":"mochaa","email":"npm@mochaa.ws"},"_resolved":"/tmp/82fc78c6c5cbc8a6ddb73a55b550ab0a/codemod-esm-utils-1.1.2.tgz","_integrity":"sha512-V4lBJTqEaljEaKogAd5eWhVIPKLYjWCBIwIw/0Zf0GeSDkf3JKj5L9qbiTRviuKuX60q6r7vE6vmnznrYKcukg==","deprecated":"Please use jsr:@codemod/utils","repository":{"url":"git+https://github.com/codemod-js/codemod.git","type":"git"},"_npmVersion":"10.9.2","description":"codemod rewrites JavaScript and TypeScript","directories":{},"_nodeVersion":"22.14.0","dependencies":{"@babel/core":"^7.26.9","@babel/types":"^7.26.9","@babel/traverse":"^7.26.9","@codemod-esm/parser":"^1.4.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.2.4","typescript":"^5.8.2","@types/node":"^22.13.9","@types/babel__core":"^7.20.5","@types/babel__traverse":"^7.20.6","@types/babel__generator":"^7.6.8"},"_npmOperationalInternal":{"tmp":"tmp/utils_1.1.2_1741069321755_0.7292500102005355","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2024-12-07T16:58:13.464Z","modified":"2026-05-20T09:58:23.339Z","1.1.0":"2024-12-07T16:58:13.761Z","1.1.1":"2024-12-07T17:09:10.558Z","1.1.2":"2025-03-04T06:22:01.922Z"},"bugs":{"url":"https://github.com/codemod-js/codemod/issues"},"author":{"name":"Brian Donovan"},"license":"Apache-2.0","homepage":"https://github.com/codemod-js/codemod#readme","repository":{"url":"git+https://github.com/codemod-js/codemod.git","type":"git"},"description":"codemod rewrites JavaScript and TypeScript","maintainers":[{"name":"mochaa","email":"npm@mochaa.ws"}],"readme":"# @codemod/utils\n\nThis package contains utilities for writing codemods. Mostly it exists to enable\ncodemods to avoid depending on `@babel/types`, `@babel/core`, and others as well\nas `@codemod/cli`.  It's easy to depend on incompatible versions of these\npackages, so this package wraps them and exports a single version of each.\n\n## Install\n\nInstall from [npm](https://npmjs.com/):\n\n```sh\n$ npm install @codemod/core\n```\n\n## Usage\n\nYou can use this library directly, but typically it's provided by `@codemod/cli`\nwhen defining a codemod with `defineCodemod`. Here's an example of using it\ndirectly:\n\n```ts\n// `m` is `@codemod/matchers`, a library of useful matchers\n// `t` is `@babel/types`, babel AST type predicates and builders\nimport { m, t } from '@codemod-esm/utils'\n```\n\n## Contributing\n\nSee [CONTRIBUTING.md](../../CONTRIBUTING.md) for information on setting up the project for development and on contributing to the project.\n\n## License\n\nCopyright 2023 Brian Donovan\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n","readmeFilename":"README.md"}