{"_id":"make-deno-edition","_rev":"127-7953a01cdc7c18af9711c0900f4c1be3","name":"make-deno-edition","dist-tags":{"next":"2.3.0-next.1703871236.9ecfb4926ad07e9f2a701cb8457ec3b2809d3e7d","latest":"2.3.0"},"versions":{"0.1.0-next.1591763714.5d9046016e6453793c3b55701cbe7e8e09bc935b":{"name":"make-deno-edition","version":"0.1.0-next.1591763714.5d9046016e6453793c3b55701cbe7e8e09bc935b","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.3.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.6.0","eslint":"^7.2.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"contributors":[],"gitHead":"5d9046016e6453793c3b55701cbe7e8e09bc935b","_id":"make-deno-edition@0.1.0-next.1591763714.5d9046016e6453793c3b55701cbe7e8e09bc935b","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-SdCRXcwmE0keEjoWvwcWasKa4quT1W9RAQUT6sqT1L4lLBPP9iki0VhiIJLxNjE0LFGw+sGtr4s5lUadDAekOg==","shasum":"3a094b1899cc14ab889679fe5c47bb2a26c660f6","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.1.0-next.1591763714.5d9046016e6453793c3b55701cbe7e8e09bc935b.tgz","fileCount":19,"unpackedSize":49910,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4GMECRA9TVsSAnZWagAAKOUP/22Nv001UTExme0iW2XB\n8ij4p7BqEZ3vqTpgUm5t7Lppxky9Ilgrw7vHas4K9V3LBv4FvuNbu0rkUuuh\nrkGHklRZkrUlL9Cek2itq/mpKaSgt61dk1zpl1i0jQvQUD+s0Qip/73TdiqZ\ngGu17vVNlA2TwA7VgCJDxsFj1VcFzEk65cVT10Q3HdKODeOW2HmRG0Z6QSEr\nfOJ9QSfTFnzjwOo7SiEOsZzh9cJZoTj2ndbzciXADls06+MpV5Fmb9rg0pTw\nW8MXNjJ1LNFpaVSS1HqTsYu89rf+sDUMtZxji5ZKMuM2Ex40FWtymCG31JTs\n5k9sCAI7iXgBSh6BlO89IYt41LPq8EU5hULpkTcjceTOaDcLdge/4qSVNUOB\njaxKtPPkTlRTMotw87F1YLHOygsJ9eXL0u98v/jVQycjBsaZsCbAtKYEWRM+\n3FfMGdTXFQsx/nVmNHABiWYwlmRovK5Wi1xXMDlQvpDzu8bbgNp313qvS9rQ\nzLzVtVONsZtLsKHQwo8ptAVkh12q9R0pYR9Kgf9IliL0bC2ou2eAh26IdJjG\nXwkrmCBuquH7xIboiQjjOzC0rZ0GS0gRXmPSgVl9otKajMgaukRNr7gY01Fj\nc7320k4Fw5N4P+mvF5EiaPzs9LgyPsM/qLL+tFGDnMGnce7nobVbHjROqN7x\nW897\r\n=z6oV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMXWeKHl1UjvjKCN+BhaAjzChKRdOnToAeYQ9mv+kJjAIgRVFEXnRHCYZLWx7fuib9RLJKLd6FMmJVr2ek+KCipSg="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.1.0-next.1591763714.5d9046016e6453793c3b55701cbe7e8e09bc935b_1591763716333_0.7139763562586587"},"_hasShrinkwrap":false},"0.1.0-next.1591768661.e07f9a2c4e0a7cfe6fc06b0a4975aeb8ed432d7a":{"name":"make-deno-edition","version":"0.1.0-next.1591768661.e07f9a2c4e0a7cfe6fc06b0a4975aeb8ed432d7a","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.3.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.6.0","eslint":"^7.2.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"gitHead":"e07f9a2c4e0a7cfe6fc06b0a4975aeb8ed432d7a","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.1.0-next.1591768661.e07f9a2c4e0a7cfe6fc06b0a4975aeb8ed432d7a","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-e/xm3NEAF1by6QwUausk70xc6t+yIcMZjQwUwaSU7miChucwlLksbb2JYyFggb7eCRVX/dgybrRUqv+WD3QLgA==","shasum":"8fb38255b1679bf0e59db2589537dd7fd5f61f5d","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.1.0-next.1591768661.e07f9a2c4e0a7cfe6fc06b0a4975aeb8ed432d7a.tgz","fileCount":19,"unpackedSize":50319,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4HZXCRA9TVsSAnZWagAAefAP/29VKT0vnJr09rK5j4FF\nH4KQY750Mt/eO2/+xCK86wlrWzZm6XjsGdrtc3jEuw1VEFQ/k4MC2JfolT18\nIYYZ/hhB+8dDzJGGvNs9n913khs03ebzB6Rxx50AQ+1F94iZz+eGAKpq295s\nFDArC2v1Wy48Yb1RxnqfZnVcgai/e93VY7LRfxndpGqOA2xSqnqy3wEC99dw\nYBM8Zj9SuDovj+oRdFIPLk3LmVPLCEll4T3B+IaAX8+s6g7ytvP2kDbxdhhm\nBqyj6V8rvA3wJvpR758wffjOIIIn/onrJqf+UdaxbNm98nanRuTApwXc5C/+\nqzsiOHOfzss967JlGGy58ZUObdZIr9F3AbZqCQ+UGGAgIFyEjm/Nk6Zmt0Mn\nYEC15kh1NVq88i9RxlDgL38uUIcccTsVFbOvtQuIAwpxhB/dHzK2DekNNhjK\np7WhYbt53oAZO1e77l8EtoadQwo7OKnf4bK5Y+JSc/d3ig8gkAQ/BBA+REED\n5Y5fyGn7rxbEqPWg52Z1QURJvcf19h+Ju4IYJZSGvWq6jCrgM1Z44SaeJZyB\nbMLvAw+Jqf/SD0FvWSiYArDSUWIeFoWVptCNmEdPZrfb95iPilVRAS9ENyCN\nN4QkiryR8wMq429su8DP2gWvveITAqe/LAHWqlOt5GgFXsVxMyE5dLFvbCC8\n/jVY\r\n=phGL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQc8mIDT+WT0adwiOc3RNzj0eXcIPNN0uK0A2PGq4nfQIgc1tqcVnpsQdxgjcoO2jYjriQFNCXusfosAGlInom4sE="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.1.0-next.1591768661.e07f9a2c4e0a7cfe6fc06b0a4975aeb8ed432d7a_1591768662934_0.9784020742089319"},"_hasShrinkwrap":false},"0.1.0-next.1591768699.02af05056c1432abd67db513ec36a57325cd24b0":{"name":"make-deno-edition","version":"0.1.0-next.1591768699.02af05056c1432abd67db513ec36a57325cd24b0","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.3.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.6.0","eslint":"^7.2.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"gitHead":"02af05056c1432abd67db513ec36a57325cd24b0","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.1.0-next.1591768699.02af05056c1432abd67db513ec36a57325cd24b0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-gB77P5bFdWuSysXRWkXD5IjmyL3Sl58FpQBGda1AFnpoyXnhG27YrV+3v99nBDJGew1PHsTE4Rdqci3FEksGHQ==","shasum":"bb76442a855a0d2de010a9ca09c45e02353cc19d","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.1.0-next.1591768699.02af05056c1432abd67db513ec36a57325cd24b0.tgz","fileCount":19,"unpackedSize":50327,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4HZ8CRA9TVsSAnZWagAARnIP/2oVJuYoz669AnBzL8kv\nTjPTDukgZNkE0LlkpVulkfumxMyZSjVawkhaaelkovIh3jLbSjfS3lGq19d9\nI3kXRGCOzWYhy89jzZx9PVAZ6wACIjEFud6/S6iPkET00W4hTrnIMEHiZBdh\nj6lwFG3BlGdaFhI2DdlMdHECp74unpCn5B5nKfKjuXA3+zWtzDlQlxEbrDTU\nTdbE0Fterp7vduBFfIFRWaboSPEMeTCxTbmavqd6oOIdGAzxtjms8o4GBc0o\nbXYVi8FMEeRhdmhr4MU40T5/RclN/oEZF37ra26qFyzuhmPqXhf5F4Z3yOet\nERsOn3aj1nkJEg4Sw001CY486KmAJt1cvUsjscdUt+utMGbfmmfZiXrZfF6z\n1n088aeertFItOqHkpONoPzx2cJWo1WsbBzLXNBpecuHqksJRaAMD+ARYiU0\nWl5QbjjJ6vtA+wbjtnL2YfQw8cMFBrlX3ZPt2SpUBmXBqL0ypWquVff045pB\nvdRiek60ZFO7lQNQNCC/1y7T6uIHyvFZGDG/Fwbax73Sl0+8+skLWVoW8uHE\n3xO4SxlKz7Ux7VopzTOiVlKNWUX3JLnzh/T5gYCiZedoT3njqQur+ZynHXG+\n54fhTpaQ7E4WGCaMSqq7y6vPBVtRd+UBblpCyI+Mng2y7+syO5KNU3Pf+Ere\n+Yog\r\n=1pvY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFE02h2jTbEtXJdxWzcoPJmowzoeSwIR1qCWgZ86u/aiAiEAgNxXck75X9u6HMBbbeyYjShrxsHPEnZ6EJFOMpXooK0="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.1.0-next.1591768699.02af05056c1432abd67db513ec36a57325cd24b0_1591768700434_0.048215477534529594"},"_hasShrinkwrap":false},"0.1.0":{"name":"make-deno-edition","version":"0.1.0","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.3.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.6.0","eslint":"^7.2.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"gitHead":"02af05056c1432abd67db513ec36a57325cd24b0","_id":"make-deno-edition@0.1.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-7P8+Fhmt9spCLW3hxUfamcLVNxqMqsCILikhJYzYf8uH5Y1beC8uxaOlK/uu4VycMN/HmF/ogkJ/GZ5TTtzJBg==","shasum":"c51c20888024d076719d93ee1bfd4eb44eaa01cb","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.1.0.tgz","fileCount":19,"unpackedSize":50270,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4HakCRA9TVsSAnZWagAAcRkP/iY5Bx0vBegr59wGJx01\nJJzpgICnbEcjF674Ttzzs7mhHYhl1rc+ncRQI7NfGHp4nFjUk1XOXz1xUjMO\nv7QweysxNHJh8xzloZkM/qoi0i/nriP5pQCr0HM5hMx/eDVYmSftq12xQ8Pv\nZDEK6uPgWsps8hERKuulgZR017D3/pymudX965ZPIsqr20jNxq0xHCB3hcrz\noImcGU+ukc4gLiOmmXvhXgJGLaKXDupkaSXXB9yHuzrS2lBa/S0CR5L7nWXZ\n95SGb7tre3JXrbSKvP81thQ23ejo1eSNwC21tZxUbqjdOqdiCQYEgO/YtFXH\ntTyKcHLDKqmW1Nr/DsRzujHeKyG+c2Ohtr+RjVrDVjwyoIScNQE5VsnqnAqU\nW1fB77lBkFo45km/8/FGtthBpdZq/nmbpq4KVBXftDyxH2nTJheim2ejZMnV\nliRuW7JQVGsdxiG9SC1Y6zqiTo4gFUF8jl4uklMoCQTq+xXfDJItVMyeCxsj\n68YmUVeOlm4/C28koltE424e+qx6mGKeCTR1027lv3YBUkvKL1QhccY6WPfc\nLUWGBQ05pE2i2qkzqwm0O/0J8l+oZCsWEBsug/Hkl0djrznmgSEyi6xUsqWB\nN9oGx/jnDeC71n+AWw+QDaJ1339QCzggrHmnTi2BIDrnAW4bNis1At7KszjQ\nvxG8\r\n=tsIa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0dkmRCv9+V0YtgfIYwJPXrQ84KETA4U04RC519sz83wIgZxQk0FU5CUWe2QjKkNo5WfhtFF2a94HI0X4Po7Ggjig="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.1.0_1591768739930_0.35069689433052975"},"_hasShrinkwrap":false},"0.1.1-next.1591768933.14a9478256117f828c40bab1abb8f1d974c65e22":{"name":"make-deno-edition","version":"0.1.1-next.1591768933.14a9478256117f828c40bab1abb8f1d974c65e22","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.3.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.6.0","eslint":"^7.2.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"gitHead":"14a9478256117f828c40bab1abb8f1d974c65e22","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.1.1-next.1591768933.14a9478256117f828c40bab1abb8f1d974c65e22","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-EDT0IUXFly2ynIWHNZZTq7QsphV5yS/L2BSN/d86P2g0oSw0CNbPPM1g2ELsGp0wuUbupJNDkYUAF03yJlIrMg==","shasum":"1ad0872ee97c39bed4bfec35e7655e0d600d04cb","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.1.1-next.1591768933.14a9478256117f828c40bab1abb8f1d974c65e22.tgz","fileCount":19,"unpackedSize":50629,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4HdmCRA9TVsSAnZWagAAF5oP/2SFlQ3ur4U90OYqpvxZ\niv/s5GfRB2+NE9B5/ZnxIvoulpsgshwT4C/ykne1YSuAFpbFknSVMWfCQFHG\nujv0D/L9ZiQWe86AvxPtAaOFz6ptM6EChMip+j8M3CojRq4asH/QwZ+wbXWR\nQgF0GJxYxGkIWL6gpnv3Phbd9ynaV8WLkd3LHJp5gSbQ28LvhDj3dHkrS1sd\nIs0WfRgP1aeRDZc5JiRYKWM375eGESuwsee5j/LDsOeFPLB0OQHo1FNQMjfK\nPXsw8gGwdk8DdfZah0rK1Lmrvrpqc6Mm81ocau80ScmGaYG5kQpEPTeBeUIE\nFsx+PuKLIIn3lDCHTSv26OPeGkcqm7BJ0ukUk5DKrBy1gG3ztv9xqjPocYFD\nRbztqgBRrk6WAQBK7dAWVmKg0k13gN63Gj+09ByJdGSNhqQ66b/emFh0xvJM\nyjQImMAK3llOn0G4N0onYiP8wB4sQG6QBIe/79h6LDEcjzoI+hGuyCE3h6Bz\nVF8Cm4q0S+jcYsNvGY0COgeYPTykj9Jr1N3X1asx+dxdfqhdElkyGrdwgeeY\nAiSoPs8IYwrM4gLHPbxwSp5gUnIpcHGI+rR/TnRA3OP92oLMv7E1HoGFJs0P\nlABlyuNQsACQzFn2wjWc03Zjc4SHMpWwfHRNtCwCQfv5CcmCpLdUG9k1HWc9\nw2LP\r\n=3XSk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSDgFKGb0Uc4hQ0lrMcaxFXl+7kY3inwd83EQKayfaGQIhAKKJGcfjVWm/LiWOTJDytd1q06o/OsU8CIFbqiOmfOy7"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.1.1-next.1591768933.14a9478256117f828c40bab1abb8f1d974c65e22_1591768934523_0.9480490362211373"},"_hasShrinkwrap":false},"0.1.1":{"name":"make-deno-edition","version":"0.1.1","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.3.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.6.0","eslint":"^7.2.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"gitHead":"14a9478256117f828c40bab1abb8f1d974c65e22","_id":"make-deno-edition@0.1.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-uAJ1f0yJ2qUQ0VYMjiAyezhk9SQaxGgwWghMFot16fa+1RnGwcNJ/1Qh0sZz7Yq7ENPZ6JL6GmhUKuRx+VghVg==","shasum":"a5f2a6f8371775ea1dbbb5dc7e430919cfab5d9b","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.1.1.tgz","fileCount":19,"unpackedSize":50572,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4Hd0CRA9TVsSAnZWagAAiaYQAIskOXcNyE1jofC9Izv+\nnqcmPkfTRfb5+D6C59JzWZTly/Zo1Xz6+DQs6PrTBdtPC+Jaz8HuzdQl/fuD\nRzT4MPqa4E8txVXZsv4aTnz6aG5MeF69RO4hl8wgV7qcSY3A0f01lSorzjji\nnNGfXWsseQNl0YK6zZfUcf/0Hsry6DC43foFylcVOdljdLbrKacfjqUWa5qI\nRHsUyPb1/wT3JtqMuWmIp8vtA+llSJ8y5woMYoXjcbZckOsNDmLg7LKbIjr3\nhy5D+rRt9SECEntMkCUYeyXA4u7awqkoNMNLpN1NJ1HKmk0lfsQFlxBHmaTN\nIgRb78J3cEIPI6N+iV0MDzrQpGiuEXIdgSvJqNBXNhoRweHbuTPgkVDOzAK9\nARfgaAebXFgPV/SS1Hq1N4ywkuV5P3Dy9PKOvcQujEjjAAlfdJtTkHoD013C\n3hygZHhhwZN/taLrURU+G2wBFqmN+QdzfvJmxma4e2xm3jWF8YqYn/AVeccv\neIse1IYVDixyuY4zCTqUmfvxZrigmV8Qqwo1J3CM3dTNDz2QEpM1Ul+aUxnZ\n0ZrTliSSywDpra4piv/a5hXY71LM27i1s+6qvqFrd1Z6MiaLEnWF0N3g5yW6\nr8pZmDzk7jkLqNzL1nJN9pvl1tTnP74BdkSR5mzfxVbSn6yZMuxiRflZLlZD\nCZw8\r\n=UHHG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGbDWyHZZtcVxT6vpLsoSeXLi4h0DR0p2xNb16R+nHn2AiBK5rB95m4Mg6mFuvlNOE8x1rSMxeEGiw7o/8uHtAYrXg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.1.1_1591768948353_0.1539517226792657"},"_hasShrinkwrap":false},"0.1.2-next.1591769738.c3923afe76b72d2deaca01c3ed11942e3be09907":{"name":"make-deno-edition","version":"0.1.2-next.1591769738.c3923afe76b72d2deaca01c3ed11942e3be09907","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.3.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.6.0","eslint":"^7.2.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"gitHead":"c3923afe76b72d2deaca01c3ed11942e3be09907","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.1.2-next.1591769738.c3923afe76b72d2deaca01c3ed11942e3be09907","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-+kND4wm75W+aNbPF42kl5VoCHxfCcjJ4p5rbQ98SIBKgBXyfvnGCQpY1y6rSr4enJAhgZPW+ijAHeFwTyrCHug==","shasum":"0445ef2ccd27386c4667249ebe5c33bb1936b140","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.1.2-next.1591769738.c3923afe76b72d2deaca01c3ed11942e3be09907.tgz","fileCount":19,"unpackedSize":50773,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4HqLCRA9TVsSAnZWagAAA2QQAKN84XNF0kGyrqRuGTvP\n8yUtIoHleYZ6rFBAhuakVscA9s3jiy4lDMa/rJZbqt1Eqh+UD0S8J5JETmqu\ncQAdwQNOj8pMTIS6M1mM/Cvr35/MnGtKpIf5GG0CCbb3vAjv/g2HEwxMqUpN\neMf5GUbamJ6EajJ0QJZoUCHg6MWn3l8EvpOzacMnnmzARFPVqDQCkTfQesvq\n94/OxvLWd3eZveWPn+WbsVGgZRWgTwVqW0iy0cDHxe3ODH0WhhN6lOkdXLSZ\nPDmLZFGkRW72AWHtVNVj5YUi6kQBKnfk/iafCAL6xpII4tftMUeF9p1wHf57\nKZo094+Yjy3tUmR4UJJlsHiuPLlLXXy5G7WeXI1IaNjDyeU8CZot6hZkAnWq\niR4t/KZmxC5te8yEU9+pMkii6AueLDooqe4M+Bvg+MVm8c7CFXkf+NOtKIjD\npXQYFvgj2h7uMm/g/W9ieEYQEVt+czr/0OMC4AoLbBzcR+3V5rL/L9um7cAz\no3nIONPQZLNNsd/y/+bd0hAw9mW7fBUjR0aoYfUS7Okz5RwVqIXGCGCCY4Gi\nP0TCSGWQJZmjC7IeLPzpgaHTwe9N48XjlciC1ImmQbBdFQ5pAN3EIA3g05vq\n1jNv62dBt4o1IAs7+piRxbjGODWuqo+wta6VTtz7qPf3mLpeCyb03bTD+HyF\nOUB7\r\n=YzrS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0ptDnE6l6rYWe/mXAsGLAJwH0sE4l6ZMlPvc+YOZOWAIgbGOh2bUIscHETO0XmTG+GCIrUEgt84Pek/ADLyQGvBI="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.1.2-next.1591769738.c3923afe76b72d2deaca01c3ed11942e3be09907_1591769739166_0.5720759339811987"},"_hasShrinkwrap":false},"0.1.2":{"name":"make-deno-edition","version":"0.1.2","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.3.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.6.0","eslint":"^7.2.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"gitHead":"c3923afe76b72d2deaca01c3ed11942e3be09907","_id":"make-deno-edition@0.1.2","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-BJPAne3V7VJP2xLmdFwMMFmPES7GZ7CZTeQMnYMNcz08w59uaHhJkDGKFmQerS2/Mc/ylcM4NxMMe8xb+WigNg==","shasum":"1cd8758359a1e03e35d9bd214c92d8141f4dad40","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.1.2.tgz","fileCount":19,"unpackedSize":50716,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4HqWCRA9TVsSAnZWagAAq50QAJNTIK2I2RBcZ33kKdKj\nqibIHw5SSVQgKdK3VeWThGfr9DUFkZEN0FRjsukeFdpTaQtPplZko//QsuoJ\nbiQtyPCuqxNX4Mc0DKnSzOBXNziWctg042AYRhWZ3b5i9yqBTkNNmogBg7fQ\nazNCCORq9yxIC/kBzmLu1vsyGoLTxPWIzxEH5LIvtpr16EJqYAGZ4k9q/Fsv\nwXKdqlLqL9uWEVmZWnfrXK/VRBx4ZVhBBuiKEXmDmdsLtd4HV1E2aSRbqLZ+\nYiDFtE4xlZrvwnR0EurUjEfwNlzWjTi5KZuV8qnaT7mFJwbw0BXNLGwGA7zS\nHK0xIYGuQrMNsTdAisubGtSl3NqcYT7nLfa9Zt6fQLMuXn3QbuK38hYuPeJa\nxwHryDn2FDGpI56FEMSVTew41OMflEA+Up9R3zmIrDX4QqdeFP1dQUefJiHw\nrk6KqfwBIoq1DCkVI8QnCYx6Q2njmFyQ0x9siPWdaYvcQtMSlFXg4NCRd5mM\nyPKwhSuVUtbKPb444uxhbekQqVdbgWLLwFCA2P0kPYm5taq5hAOOLAZD9SiL\nE2h0iLw4S0HZvSZ4UH/hdZ9cf1L0l9zryXwtV1Lj7Udna/+ug78oX11bKr0i\nzGvRBbhlo3FPcgo1kzU5ivFVMjZBT23fSN5EJsprby1K1ziK68RGYJetTpbv\n02Jk\r\n=8jBo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkvDWrLTe1fShlOV3TD0N5/TAnvFID+JwUuRSDnCu8+gIhAMiIn5hZ9E4dk9b9T2trir5kxCKT1UwId4j48RCn1hiu"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.1.2_1591769750228_0.6484107022473828"},"_hasShrinkwrap":false},"0.1.2-next.1591771040.2e9e2d069cad4f2b4b4474e844284b0a93aa78f0":{"name":"make-deno-edition","version":"0.1.2-next.1591771040.2e9e2d069cad4f2b4b4474e844284b0a93aa78f0","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.3.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.6.0","eslint":"^7.2.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"gitHead":"2e9e2d069cad4f2b4b4474e844284b0a93aa78f0","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/badges\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.1.2-next.1591771040.2e9e2d069cad4f2b4b4474e844284b0a93aa78f0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-qLOrCluQIUUG+15Kd3tYhO4jQvE2lj2V+MsNCHElU7BYV8lNtlTtduRkMNNRt8QSqYczd+SsVN37VNXe3GaDYA==","shasum":"1aecb969e8a0a209674a2ddee0cfe46b8b43a016","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.1.2-next.1591771040.2e9e2d069cad4f2b4b4474e844284b0a93aa78f0.tgz","fileCount":19,"unpackedSize":50934,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4H+iCRA9TVsSAnZWagAAo80P+QDIY6+z6J7d+6ZdU9E1\nQbJD07kw0WkULqDmdLTQWmgpk17RNbAZop/RaiqsfDGKmhFtjvRhIEjuxFx0\nTajzK/rusqX+vT8NJepAe/nNXloO6TjYG7H5KdYuW2LaVAvmeh+4NdnbxZZY\ntESMvPvDNJmLY1OMQHSCryVOv2RcjrKQmDeRSzdMv6TeR9M6ZXjIgLrZtKlZ\nxre7ICaoDhO474T7gXDqZnuG8QNkJf2MW3R2drP0zlyz8qesVDve8N/tcPrb\n7f4bYAq2VpMAc1d9RWqDBtMw5R2vB4eSvUJHWP2WtnndzsMTXYTs2DzhA7SV\nmiT5WyOFZVsIvXrk4xKSwFr+Bv+lrpFbUGeVKrdbOdEwdvCLUUeSc40KwkjC\nSuDaegGMK33BpCXolva5Um1iPhukix31aNZ5lAX1yTyRpYkBH6Vxh1cKoFUd\nDzySUQR2oVYwrFk4YIQ2R93v9nNwlrbwVl32SbAlVn+qkX6uc3iLf6DHIipK\n+dc0Vb78NJg4/NhnW0VL8U3rgE40XONYosdVNrZMwYxtl9YaxVB3PRdN7QDl\nC6x4p9k6nsr9ewn9pm/PtAj8NIwNuBXSmN4lGW9ZRg1WBWDvrL3zM+Qfo4sx\n5n3QmBsq/SMSEg1cioG0VC7eQ6hNyv6px8+D7VR83u4GH1d3ynni8mJp0y+s\ntBRh\r\n=UEa7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAdGbDNw9RNmjOsnjx0ghXln0mfzUPIutWoZlI+nt1QCAiEAjUaJ7QgNIVyo/r/xxHNWOjJw7inxqSUn2ie94ixjykw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.1.2-next.1591771040.2e9e2d069cad4f2b4b4474e844284b0a93aa78f0_1591771041895_0.35025090036058626"},"_hasShrinkwrap":false},"0.1.2-next.1591772714.3735c8b511eae5482e273e901ed267b45d5910f7":{"name":"make-deno-edition","version":"0.1.2-next.1591772714.3735c8b511eae5482e273e901ed267b45d5910f7","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.3.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.6.0","eslint":"^7.2.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"gitHead":"3735c8b511eae5482e273e901ed267b45d5910f7","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.1.2-next.1591772714.3735c8b511eae5482e273e901ed267b45d5910f7","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-JC8gbJp0qETGLw9kIr4VSGNp6RKPlwCXU1ItmQLlVPC9St66SciD3Ayo82wLzayHpDlHef0whrZNX9hFNLEASA==","shasum":"20153c4d40a26eb092e7bb912fe7570559d95dd8","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.1.2-next.1591772714.3735c8b511eae5482e273e901ed267b45d5910f7.tgz","fileCount":19,"unpackedSize":50975,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4IYrCRA9TVsSAnZWagAANB8P/iBS9oscV729fLBFzCZL\nFQ6mAqLZaQS6aqyrdxHbhcGRKgbd/TAVgLXyTlHRf3DtFoophUXg9/Wc1cvN\nrlNRPXXdIEhlnwls1dy6SD+g42B8lq9LrdWR0Cj1AaqAUNzIkGuQu98TPcjc\nuspuPEBFLTZmROksoAfCcdmTpVRICHw4KhTc8WdjpBvl3ns+CVnXp78g5BNS\nOQ0Wp7CXs1ngiRRzggI/NOy/IVFxsxEMJbir8yu3SNqAOwfJT26+S18Nq3eu\n7RhtD3kMk1VYFsTPvuFMM+oiVgXwnm8QrPgo+8yTxklIpre5alnWKyGfayOz\n3TsD4nCg7Prr3WN6Q7SUmICRGDUF2CDRulBWuJ4HthIxRzg3JbcISZEU4cNr\n/uv6mbI02gA4Z47PQuQ5434LnSlGbxBv66LgQ5+74DimuqYrmA/uZ29V5exs\ns1W76kvYBNfpqhVhjGdEupOWBYQ0xcgLKy6IpUDmxgJ7hYWVaiodRBap46ni\n9ApHqKTVzVEyRbj4FPRqfHEkXBYfXu92G5VgGgZGgXYzPCzra2DM/S6DLY+c\nx44spPL5TJ5Y3cLAH97Dnneoja4MBsggyKr+eMwVt5pgiJIitpJB+zV4Kdil\n79xBqXCvu2UHx4UFXEoEVTLzNlRItNzIuq4aj/S9/To8MdhLmazwqIGyIoyb\nbK3T\r\n=9QKr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEWykeSldVaLPNat+ERbQRZZ5c6Wua3fdZqPzugOWBV3AiEAui5thNsD2G9z7wHIZtFLQWgfusAGFsQT787Aj6RrbCA="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.1.2-next.1591772714.3735c8b511eae5482e273e901ed267b45d5910f7_1591772715490_0.9058919599985766"},"_hasShrinkwrap":false},"0.1.2-next.1591773631.c78a1fb276f5c0a071c76292f8b105fbe29b756e":{"name":"make-deno-edition","version":"0.1.2-next.1591773631.c78a1fb276f5c0a071c76292f8b105fbe29b756e","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.3.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.6.0","eslint":"^7.2.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"gitHead":"c78a1fb276f5c0a071c76292f8b105fbe29b756e","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.1.2-next.1591773631.c78a1fb276f5c0a071c76292f8b105fbe29b756e","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-W3H4FaQ3GmOg6aSx473nNaK9LlKeY7FwOlWQZtcbbDurjv9/L7OPP1LXtzUpKpsJZGfiA69n+Hw4+IDVAgiEDw==","shasum":"2265bc8bc564924f7b92cd47d71e5d5af5d5ccb7","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.1.2-next.1591773631.c78a1fb276f5c0a071c76292f8b105fbe29b756e.tgz","fileCount":19,"unpackedSize":51021,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4InBCRA9TVsSAnZWagAAKhsQAIwbVZQx9Uz5qsuHfeDR\nkvhTU53EWRH0EIbQj4twYpqQwGWLrIk5Jh/K9el/8VUhVGyZBLDZBVApSbqI\nJmq0nmswMP704Tbh7atxswylNCr0vyqb0ZnXfWs4ZAw9oSqTFBB+VuwxC9R2\nkmox3X++9eg0scCh0BMHI3/cSi/tH/zrcVv0DOdfvc43xibLSEfmosf+nsj5\nHfG64Wze3//nMhOWxXnDYg9AF5t1ik+8zQLdFUjADJno9ldLw2DbyvSnX1us\nfbCB/MltulZXYKFrMB23C2JKrgEx7hxsi7hTTTgRGcScopYx8s9cgN3F9F4m\nhmfPEnDIraYdE2SUq2A3CMUClGx60TAMNSzArhAZspMpAZWe26zs8MuZCEaw\nL8Pjak64b2xjdK5FJCH6Uruwe13z1nsKjuIkwiYxIat+oj91o1cp4+igWrOq\ngXDUmIuohscDAABlFEzR4IxnN/3QTcqRNhOms2OlsnuhiaisKFOLM7ixS/Dq\niwXDAp0Hgbw9XhUWQPhQWXQkUDajtx0Yt5sckATTNlZSUCe5CsgDhJSAD4eZ\nqmIQNLXD4UE0wyIPifLURxRH4aW5dG0RpYiMaFzykW6TZiYtXF6a33CqPzht\nr0Twspl2HWkyFkVJfeSGlHaTX66oSKmTbk43cV3Ap2NSBbQC6QrhqFz5O6Px\nidpv\r\n=4K9F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICfVG9na/YPq68/25F8yGz6N9IOokjz9XRNdeDIaGtr+AiEA1bRA0Td2XsQp8tZYy/KYW8PEBGqkIAMJ8LS7WW7vsic="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.1.2-next.1591773631.c78a1fb276f5c0a071c76292f8b105fbe29b756e_1591773633070_0.07041483204060395"},"_hasShrinkwrap":false},"0.1.2-next.1591776134.05c122c6aa3fae72f360cc7ed72b504fa3cc7c4c":{"name":"make-deno-edition","version":"0.1.2-next.1591776134.05c122c6aa3fae72f360cc7ed72b504fa3cc7c4c","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.3.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.6.0","eslint":"^7.2.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"gitHead":"05c122c6aa3fae72f360cc7ed72b504fa3cc7c4c","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/detect-indentation\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.1.2-next.1591776134.05c122c6aa3fae72f360cc7ed72b504fa3cc7c4c","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-2CVC+YFoCYb9gbVVqjmphElqNSP2cYDQ3nbrt50t/z5IyIVd1Wt7xkJWt5AGMHjX4zKTKAfdHVhCZcAAlBoZcw==","shasum":"66e90fc20fa9a0b1b766dcbd1237fa6e497b56c3","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.1.2-next.1591776134.05c122c6aa3fae72f360cc7ed72b504fa3cc7c4c.tgz","fileCount":19,"unpackedSize":51069,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4JOHCRA9TVsSAnZWagAAfRQP/2tNoRxamWRmituRKgT6\n6pddzROIl9S/Zh0v2VXBFHFLRcAcheYEJEOI8EPxoLREKE6lA3h4XkHRNOFR\n+eIoHUL6ruu2n/G0+TRQ48aeZZ7q/5aDDZHVTfEzise7+1bVY3SU33eT67b0\ncXM+IqRJLczbToSU3xVDQqBAaGC/sS5I2VnwhZPY3KfT2ULeileHBKQ03svf\nkDXSj3cLjWlK9JQ1gXSiVRgmF/yOzEcEX5vDi/C6PjDoZitRmLH3bH9xUYhm\n2SKC2Pba6TJmliGff5qUHLgqubUIHSNpHx9PrLwgWVUt4NGyTY8RW6LTB8pi\ntNPJ1MHhYLmO7tjHP/iJv1LYqIUXNSj7aFXgdHLdSqlMmvXWQ8Zv6TD6LO2T\npqY4AcqHWVw4rVR5UBckXCxAFOJ4Zlj/+L97nru0p5saqtxli2GBo8j5fqK/\nPhEQNTipxdzeMMsSTRmpvK2jftHQoJI+mEn3G8NgR/S259l7LWCZI57vU15y\nrr+SWQXI3tF81YBxn/11q+lsFKoJsfcfbNd8Ie0dzPaRU2H70MT3UEYvuCoc\nwSFAnV5KKQswhdQl7mPqsgWonjNnCfJxrlsciHCew+jSK2XhACLVbW8iFq7w\nApSZ4JUm7gvYiZrlBNDXaTRJ9sQZ+Gbj5d86ms5Y9jrSn90uY1qxLEswrKv5\nEFlD\r\n=82fD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVjJbtVMpsPaibNC58bIexqHja3pEOLWmp4xQM0LbLQwIhAM+btvpe28IowdJSq+dLIot4ITttrRqQWusEw7cpVZ19"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.1.2-next.1591776134.05c122c6aa3fae72f360cc7ed72b504fa3cc7c4c_1591776135490_0.16542755255758146"},"_hasShrinkwrap":false},"0.1.2-next.1591776398.bb87d13056e7f7a5ed8250400a48e07e9c726034":{"name":"make-deno-edition","version":"0.1.2-next.1591776398.bb87d13056e7f7a5ed8250400a48e07e9c726034","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.3.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.6.0","eslint":"^7.2.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"gitHead":"bb87d13056e7f7a5ed8250400a48e07e9c726034","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/detect-indentation\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.1.2-next.1591776398.bb87d13056e7f7a5ed8250400a48e07e9c726034","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-wIbfh1MFP6fDBz6XzURertnPEpqhBX9XpLNCpFeiPGOtkVRN3MRxmLluNICzX4+F/g4DirX9rnZBCEPPDSB7JQ==","shasum":"f0d498e1be77982592d3fd14bbfab9cdb0fe287b","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.1.2-next.1591776398.bb87d13056e7f7a5ed8250400a48e07e9c726034.tgz","fileCount":19,"unpackedSize":51069,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4JSQCRA9TVsSAnZWagAA/z0P/RvhrcvtV0KljCFg+pBl\n1Czk58VlF/u0uOm5B+lCXWkecCYEVSPMNvSfsZcCfan8WRV0CkI7s2JXj1kJ\nkJfGq5ZKtS0PkOBhC7SuEGSZKw3hpt0oasmGxcENCy7FTRkGQygjLJzZVcfD\n+OpjhcFYjlga4ptkxdgohL2FoumtS7MgB1tgd2sU5eG4QzuL/9AGiFAj7OxW\n5VdHW2KwyTq+1zhuSpur5vAvqfZNMvzxoagR0qfgJX/DAIF2rvIg0Sfy65rm\nbYx+tVNvNLY8qtceuSB3LTu5qdMFKTj9bKSsoJZaxNtyxm+QuClRrfoiItMu\nKh1TTyX+AIs8c6XW8QF0fOLT4jNPKdFe3oAAt5wqiEvfzPnmW2hwSQWb3ND+\n76PLekD0hslBudx8am6e5vsNtefk+c2pdW6shZ+pwShddjRkeuODkEUrJyYH\nT7jECbyDtXy/qHpUPsD9Yw64QlwlBpHPzIS/LciTVGwmu9oXJJz8BmMknm+R\nyFgiz6t1sWioD5XE0DPgkBLmr0fAuh9vKqex9tTBJP10Yx+yLmSJi/xuUAF6\nK2xJygnl26goa4CLLsacyH7Jvr+CXNWh131FbN4Bn7WnoJWH0VJDhxEkbKAe\nKytESA4l0FEdirU70vQ90pgOoZZbwQQNscPbvN1Glncemt0noPp0B8bRvTgd\nkLLB\r\n=XLH1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAwBsd60Dpkskir7aRFji34E/Xr3nHVPHXzOd9GD7B87AiEAhee97Gee20GsN0CXrVTkYHFu/XEqJBT4AUZ9w9GV0Gk="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.1.2-next.1591776398.bb87d13056e7f7a5ed8250400a48e07e9c726034_1591776400072_0.2343102190196662"},"_hasShrinkwrap":false},"0.1.2-next.1591777457.28a5d9be482513aecc6ff5112b81b68a4de387b0":{"name":"make-deno-edition","version":"0.1.2-next.1591777457.28a5d9be482513aecc6ff5112b81b68a4de387b0","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.3.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.6.0","eslint":"^7.2.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"gitHead":"28a5d9be482513aecc6ff5112b81b68a4de387b0","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.1.2-next.1591777457.28a5d9be482513aecc6ff5112b81b68a4de387b0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-TrYEMnO4RYtRDQJIExiRmtnel+DwYL+38wo3EPUmOF0vOFOugw9it1K2fxEBic/weAdxwwmXOncaiTxAHoAMow==","shasum":"b48f5555dbf6c916d418b4b3f3251e90cc6e5e05","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.1.2-next.1591777457.28a5d9be482513aecc6ff5112b81b68a4de387b0.tgz","fileCount":19,"unpackedSize":51142,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4Ji4CRA9TVsSAnZWagAAgkcP/iefILmgJSvZRsdQ97ZQ\nvs6CjrmSG86ZPZGX3gio501bjPUcSt29boOFyxrdwL0CfvD4UIyb6DKFMQoZ\naAzVDuoLZMA/K3R9vzmA9mSQTdrtlCgVmSpJfZvZQiCSSS+C44fZOFpDZulu\ndbzqENq6FbcWlV9taC0AuBrThhT8IaT/0hUW4DEZYXxyxvKlBgIqVmhGY7vd\nO4HUGfkaSvVMYCm7db2ZFcDdaCFEXVX/nrkfJQm7IQ7qGqsczq7BDS66fMJU\nfxg4JOHmWfOb/WlkiCbptcH9OnGu7oghovGiehYL4WVHvOy4VZZna/5fO4rZ\nT0fMj4HTEwf+eNoqf56Gc8+TK7xckKgAX19bceD9cWSXO2h5uaG1Rtgsm8W2\nD9s9u2Cb1LenvRLlVslBsahx5gCfh9uMS/t19JFxdc63XI//FJwyCf2x+qQA\nDbkkQ+e+nO7DvNuBlqnCldPSx3Nb7wj+lvLlcUl4PCdMt/bJGdMRZi9Q7mux\n+NKsNcJ22CDfXb6j031CUzKvVGLIfgb0XdnadEuJuFkPh/PZSgOiz09Q1zl4\nsgzqFhdpxl04MNSFktWCFUaAZDk4Qb66ZvYx9IjeuEoreQbDJuoHnUAwXEIi\niOcHZK1kVlHnJl16wogvPGyZzzaGg1oeqcv6YGES+2l1kp9nz4c6J2VqyHRI\nV91r\r\n=e+/1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHDR22y9sz1MmS73AjU5ghuuI+H/b4insMen4XDJmr9yAiEAm+70GwKFXQKOuKWAu7twoG2m9ZFDh4w4dnfFV69tu1Y="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.1.2-next.1591777457.28a5d9be482513aecc6ff5112b81b68a4de387b0_1591777460854_0.2058828417412495"},"_hasShrinkwrap":false},"0.1.2-next.1591777792.88b7d06436eef3283e2292b4b8cff34ef38b7096":{"name":"make-deno-edition","version":"0.1.2-next.1591777792.88b7d06436eef3283e2292b4b8cff34ef38b7096","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.3.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.6.0","eslint":"^7.2.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"gitHead":"88b7d06436eef3283e2292b4b8cff34ef38b7096","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.1.2-next.1591777792.88b7d06436eef3283e2292b4b8cff34ef38b7096","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-ghotOP6kTJzZpj3ThvjpuYMnV7+mTCYoNGjRQuWIMO+7rwdH709lO/rU31F1KBguwN1l8qIula4aoQ9vAzidYQ==","shasum":"75509383c7c1dd5aed03092713e21f0836f607cb","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.1.2-next.1591777792.88b7d06436eef3283e2292b4b8cff34ef38b7096.tgz","fileCount":19,"unpackedSize":51178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4JoCCRA9TVsSAnZWagAAYyUP/A0sL3DYvpeh3Hc5qjPk\nt+0jTgbyI+xghPmMNJnqMBzu9v7NPmJ58mzPi6S3vWnohTZnUnD7yVuYX8XU\nJaOxV/4I8o95zKJAs7YmERg43H6EQ0ygJ1oKwLflHeCVs2K2X/8RqQO7DlhO\nfyKyI4F2ukmGPV2NApFCw1Ca5oHsOfW07R3YxsHbHLvFkeWKYDNtv48JDIuU\ncYEwYC5oBQJXKn1fPzpciXwZlz6gqdgR92N+LXmQCPltMg0QS2IrVoJAPh08\njQZzPvWGpW97Bh50r5f2brbEHN6XbB7Hf+QxG595JXFl00R+cWbZhyBsLpCI\ns6DYeXKgNHlmWrtpJ7WQEwNtK1lDCYP6NdMo92T59aekoOi7Vd3wdZNQOPYQ\n3WzB0zsT2dxcbYDofN7TUaOj2lrIwmDE9GVtTHvtKgDri6GhZfmUmbpw3I7R\nswVSc4J8ogHiW8EOYIY98o4cdjkbfpNP1fnWGyx954c6oGPgLc8guQUMXJcP\nLCE/NFkCl+AKT8Y2uBD9sJYcA7GeTSpTs7cZiH6u1XaPI5Hk7J7DU5sdRBPx\nfU+DQdE639DDiJZMsrPmtz9fy52rNwaTUs9++B2XZgYLcfBIqYP+gUC/mZW3\nvhMFjLxa6iBCE8A8uxVPwe5fE4tHLCeMkUyVLcYskm3S2B7xF2TO5/H1fM2m\nCK82\r\n=6Yf0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGBun2ESwi6P78mh9IIdXEk9H78b0vpKQCQ6pdIUNeXMAiEA6JnfvYcFlM79Ut0md+j1SIr2u9AouttsGH5NbHYklBA="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.1.2-next.1591777792.88b7d06436eef3283e2292b4b8cff34ef38b7096_1591777793818_0.02726207296153893"},"_hasShrinkwrap":false},"0.1.2-next.1591780704.782f43b3bfe367099fe6e5aba2f7834ed7093bd7":{"name":"make-deno-edition","version":"0.1.2-next.1591780704.782f43b3bfe367099fe6e5aba2f7834ed7093bd7","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.3.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.6.0","eslint":"^7.2.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"gitHead":"782f43b3bfe367099fe6e5aba2f7834ed7093bd7","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/ignorepatterns\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.1.2-next.1591780704.782f43b3bfe367099fe6e5aba2f7834ed7093bd7","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-X3vjQPx4AlmqnWTD5IWRYSeAm5JO5kambxUaK5EG/43GqDhLKrBQaAxPjn+QyskoOudqCq6AUgBDSncBSW5gkg==","shasum":"a50e469b616eeeb381492ee94e8481d8f95429e6","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.1.2-next.1591780704.782f43b3bfe367099fe6e5aba2f7834ed7093bd7.tgz","fileCount":19,"unpackedSize":51222,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4KViCRA9TVsSAnZWagAAencQAJTZyFyvGBZTp6BougI3\nlCx5DRSIv/+b8vFtmmrQuY236+RshbL6Y0KlaHdi7WmCF7DfODHzUL+r/NPJ\nomtv5X5W2IOloSdSERh/JWFvqi+0pMecXmcH29j5/S8tNQPeUs7WueSNm0Mx\nyK7KAHe/X1CQ/4zmanQaY1wUNAz52JOQ/XrEUakJeQa6q/8crkubVf5K2vxQ\noSgHeSMp1VWYnPf0bPkeuoPRHkprQO7BDW14+vyrtYVzDa29kymaWjK2fHuf\n8LHnlLAPwBynHS21y1f//VjbKqCSMs+xt72WOA2pdVqOmLyUPLDe02a1lT/g\n/57UbGXiqiwyI/BpFFbMlHyl5OKs7TpJTr/CfZIt/X8ktnx2aCe54/eoFlzr\n+hGUHdSQ1lbe0ngWKnkrKprSOdQ3HV2+bKeNKDAxGzthNCZgl18AyFI12o4c\n76vLwZNVZycNJ7FMS1hqI8BvYAe0pxRTmICIoqBsKJl9w/hETy9kg1hbJgvQ\ntTiuUECQqYVe7bfzZPQKt391u5pD1pExpFnScEtuP2gugzx/0mzAVkgpXpKE\n20JAAZFbbQ602yhiUXCFv3Lj7XESpyU26cgpyrd0Inx1KmzblfGTkd7yJaBi\nb9Jrd3qBE+lgAk7MTIARtg17bht6+G9kgRWeMLNPAw3f/GKQQF3sXBlfo4lg\neiOh\r\n=z7SS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFyDTGG9yidGHUR0Y7cNfOD1Pl+Lqq88Q7aSSyqOa16sAiABwEnmHWxsjs8Jv+V0Ek9hk1G3crUvKDQaV1i3wGh8fg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.1.2-next.1591780704.782f43b3bfe367099fe6e5aba2f7834ed7093bd7_1591780705874_0.6960435862418568"},"_hasShrinkwrap":false},"0.2.0-next.1591781692.613886e803034dc88b844b6275d755581e2dd0f4":{"name":"make-deno-edition","version":"0.2.0-next.1591781692.613886e803034dc88b844b6275d755581e2dd0f4","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.5.0","fdir":"^3.4.3","get-cli-arg":"^5.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"613886e803034dc88b844b6275d755581e2dd0f4","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/ignorepatterns\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.2.0-next.1591781692.613886e803034dc88b844b6275d755581e2dd0f4","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Qn9dLiAS0f2rSBUdeI8yzImJthzqsZe6LMH78o/+oz1+zi1EFH6/nfuIjBzdgi1vp5VS8vrtN40ryeZE94G80w==","shasum":"4a0dfaf3d6764cb883a6237b7309d982ac7edfd2","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.2.0-next.1591781692.613886e803034dc88b844b6275d755581e2dd0f4.tgz","fileCount":19,"unpackedSize":51416,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4Kk+CRA9TVsSAnZWagAAF9UP/is0MdxaVgKObGut0U7C\nXWDbj9HW0PERvjfjHqzU5xGl1VInOCMG18A/rPh8459DzQqbRoL02t7MeMqG\n+EdEkkE/+xd1hDUgoK1mU63FQqQfv5+HFBE25PZq+xsytT56Q9JG42utY0Mg\nCIUDOSpmBiSdrszsm5KvrsZaQIySFXtuBQJSgqmO9eWXw4yRqNP0dn5eplhN\nxNxWdg+nIU6HUs++UlyPvO0TSBcShRuuAUz61IsJHsJJX0S3hhm5YN5rPPZq\ndzQyCreJCAEjLq7g5EqnbxBCWcXvk0XdAxmgC4OtZPy9K8WFm2KgV/D8qrUz\nuYahqXG0qCOOYa2uGRlSsaWUkOQMKLKPJXzbhuVuftIUUWp7i0jfApZtVOhH\na/LV+Ujuw2rzJJRv6rJE1KL98eaGwsgwvR3iNX55eQQzTgDjBwEuf03seRT0\n9EEKl2r1qgvH1ynQzNls9YCe76++VCy956d9KGCQf/gftq4W5azB4nRVWjQK\n8RnSH5mdbyyDDTX41SMNhq15DyHGeD9l4p2hEGzzOHI3Iec4nE9gEQ1qZSZP\nFUOxtoWWr7O2q5AqgwDVDMPEqc4ljl0RMXa1ALvnG88jiblu84RC/0yEa03u\nRIw5ZIRJfJkh9+FWlgcvBQ2Rf2g0zCN1VJVAVhLdQyc2nDBqi42uT1LRYGlc\nH55f\r\n=JyNw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE6WuXUtshR4uTjYHZ7hEtbTKvUrnOH4sIQ4ZewMsM7+AiEAsJPGLZ3ADt6jmziigpUzk/YaNWvceU+4vOS+xw/2Xdw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.2.0-next.1591781692.613886e803034dc88b844b6275d755581e2dd0f4_1591781694174_0.7570917610216856"},"_hasShrinkwrap":false},"0.2.0":{"name":"make-deno-edition","version":"0.2.0","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.5.0","fdir":"^3.4.3","get-cli-arg":"^5.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"613886e803034dc88b844b6275d755581e2dd0f4","_id":"make-deno-edition@0.2.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-l0R0c7DfIiA5FEc3xH5h9g8L/SGCZouAsPtymAEpI8t9jV0wrV/7fYQTTlhBBlIryItQd3dcik8fQihKY7rwbg==","shasum":"7bf41968867b394f7f1b4209b571f47d9d9cc094","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.2.0.tgz","fileCount":19,"unpackedSize":51359,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4KlECRA9TVsSAnZWagAAnZIP/1z4u8i9BXdfgyJywfiT\nVvn0Pj8ljre6yUJg+ffbeY3gJVFyFq8qIV/bg3pTXYwXnAt8bffGrBDdTWk4\nlMe5QRqDaQ4hiYVPoWWFeFRPdc6zM3gILx2YtAWtO4fzJfRHa464plvopUOy\nvaAHamw4tG3+6RwRTbZ/cnPSchhmAP7J/RLm1q5DhS5vcRyISIaDY96ZIBTX\nzyPftqaG6/vnI82Xm8IICg5CmWaYbGGPW8RNRODorT1bkXpFLDnyKpHzFROh\nCPvFBht/K/dQPBBYxJMKD72BuxgMRxXVturF5QmqUPHRrSedaXzD7IgXbxba\niNjKj/zgL+RkrMTjZD3zpJJFculcNzLf64ftBxiC2khQCd20m/3cDTttCyOF\nnpwfQPf6+krcRKM2qFbAHFFCCmMNRLRii4xKqAXHzXR14dL2FT56lybHG4UO\n6/8CL8jXV1QZL/QR0VuTIl5BmyHmSwav8JPtbuZjN2nCuelbj0SRQO3TWzp0\njn8wy32sOIoUqa1krcb23rPkZBKXukgt8HZj1WhYt1tiqdMUznCkCqZsIgT0\ntON9V6LIesCsEHPp9aqyUih4TS/3urcumOU1CtS2+IvuwgSR5K2Eivk2n0D9\n0N/RxV2OO4phhhjrO4BiusPeI0tqWIC+jSX5X88hyy5TUaJzHer37L20FsQM\nhpVi\r\n=or85\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFWjXcMD072cICS6Md5G9r5mPpIha1YLtVHgwVIwD9uTAiEAg1MZ5csB+tgRZSeZCMzarmfJy6GVREhlRXBZE2QJLq0="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.2.0_1591781700189_0.19708681843918852"},"_hasShrinkwrap":false},"0.2.1-next.1591782452.8ea203f189c45c15811e840338cce0b92da541df":{"name":"make-deno-edition","version":"0.2.1-next.1591782452.8ea203f189c45c15811e840338cce0b92da541df","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.5.0","fdir":"^3.4.3","get-cli-arg":"^5.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"8ea203f189c45c15811e840338cce0b92da541df","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/ignorepatterns\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.2.1-next.1591782452.8ea203f189c45c15811e840338cce0b92da541df","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-DjN42wj5HDOKBIy2hK8tLayAiiThgz8LQsUkfz9JsZvQF/KrGs57XKUwq9mKa/LrRtej8GJ2g9VcFG9EIuGO9w==","shasum":"b61c7bc16b36c01ba8686ffeab18f92451106709","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.2.1-next.1591782452.8ea203f189c45c15811e840338cce0b92da541df.tgz","fileCount":19,"unpackedSize":52761,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4Kw2CRA9TVsSAnZWagAAZEAQAIKdCAL1lTPtNKYN6PWq\nx/EGhur+tLvBSDzgsYEzX+fOrvvNksLcyM/ofACgjOijfk8ZaxQKh98Doa31\nuUr4jIBbMNcuvFepHLms6BYfDbArgYyWdV07bFU8VxQXHYQqbVxtOmiACWfG\noZp133rQx0PKka5DdY4X8hnllkaKiQyQJrorK/t3zmD2TLdzbKMF0EtrNUk0\niDubw/9hk18DQrQHlwstYm49YSsbcsc+/DOeyWOURj7xhkyXeDxMm0aSc3ol\nA2XZaNm2nxD+XsKPucI9KI8QLoRW091UIiF0sGPL4lFPPlo3YZXmp0VR1psS\nbI8d4x+dVHquEBOMUZxll4H45DJi5C0pBMdqxs/T9EMMwxLCdwtgjfpHYMt5\n6jW/fHTTIY+55jCsj4tRhJpnCo7HQ0oaGHwzDYoC/PdURvT7TuKxZK7BQWJL\ns+TsnMe+ZXxHCqC6HKNFWCebVBjWYYW3BO5NvuZPBYA+3xkoYSvmJF+sggzO\nkaDAUN9msiEUx9qmi6aR6dqhN1zIAR38hBafWDoxJMBgDik2xHNMpxi1NuCM\n4Bi2U8foZT9qpz/dUzMu7FW1aQ8ArBjmknHtZouPINMcpb0NbV48ps393OkT\nSi7tZmAfsMYi4iSqHqkJY3wzQi5/c6RVy3oEHGrDxLzKB6ESAGNq/UsxOpBF\nKEvu\r\n=Ppm/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDxsngWQwNNjgEnJyrbbUYu3qqCg1DNkQeQlkGej893XAiBQSqTI45mnXT2c2UZ2Tm9ELb/LcspDcteeRnJJ/KkvtQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.2.1-next.1591782452.8ea203f189c45c15811e840338cce0b92da541df_1591782454050_0.4213203353501416"},"_hasShrinkwrap":false},"0.2.1":{"name":"make-deno-edition","version":"0.2.1","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.5.0","fdir":"^3.4.3","get-cli-arg":"^5.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"8ea203f189c45c15811e840338cce0b92da541df","_id":"make-deno-edition@0.2.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-CvWbHokyi0Mh1Skpc740SGNZJr91vOUnKbMNtqqylGDPx8tUN37OsCZOcI74jTkGPcDGofqg35Tmu8Y/mVuoaw==","shasum":"f337e9e14b227232dbdf2d615c01f1fdeb84943b","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.2.1.tgz","fileCount":19,"unpackedSize":52704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4KxCCRA9TVsSAnZWagAAIFsP/25hsWoOsXY+MujJipH/\nWpzIwPJTCfp56OqI51so/3y6O+Maez+fZMVDX3hwZ0ZX/SCbVXZosgefeDZZ\nJFR8fzLDWFHMdVRDa0VsezCBzPhcDFD1+pnSfiVVbCFEXpkHL5bBMTC/BwjH\n8116CVMoVf5Ud+KRW8Embmg9UcpB7LVjbfopgpd6FBz90tB3J4z4oR/VYDkC\n7cZdbtYKz2HDYHQKR2pDYBZ4xKHEvvzswoFeWsuhwFalb7IoXIGu4hMwAPjO\nPMXShK39k12CJNmXTAKZWBxASEaaNdznj5coJ3FbL2BQm1h/Ruz63zMGn6yy\nATlaHFOjAZTPXxjd1hw901+Q6k3oSfZBVQsJk+LgBOezpWyYIDaHSJT3PKh8\nJDBAE8H/5XBXr9ZWEOPU2MiydtUQqM3/JO5I1kZwJDDmFPFdfCSi8mRpA5IA\nbgsV9t8IindtilJ3QVmeWXgvzhHJA7aXxUEaQUXMju0cEjvltf49WAA8xiO+\nhUdJlO+c9Yv+t/z3a6xMP3OlGHmQq3yeJaa4tEU6uKtNKPMBiq9S/GXSNWNT\nP3htAdjn/5Ihy+XuRkLEeH66WXdShHJ2Xv9qX3+JSzK5V8gyddnG9rkL69Yx\ng3OQkJDXRAFXhMslGJ+kSjYJCaM0cw+yIVktVYrnM3xcUNw9QjmtAvr2tiEB\npxV3\r\n=I6wk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCs3k706oTlIuQif9gCK/UI9hrk1N3eV4GHQzDLxUk7BwIgEJ8gW34fNmgd2g4LkrRrQzQRcopcMlaf0Cos9uystqc="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.2.1_1591782465763_0.45921751528849963"},"_hasShrinkwrap":false},"0.2.1-next.1591783149.fb9e5a7f3598bb7221b981932cf5046769572646":{"name":"make-deno-edition","version":"0.2.1-next.1591783149.fb9e5a7f3598bb7221b981932cf5046769572646","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.5.0","fdir":"^3.4.3","get-cli-arg":"^5.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"fb9e5a7f3598bb7221b981932cf5046769572646","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/links\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.2.1-next.1591783149.fb9e5a7f3598bb7221b981932cf5046769572646","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-xBZ0dS+Xs1ChzmN17xhVFlI+yl/qwmn+nNqbO1PKOAtmjVg24X22XJRJYNf0DmXLhjLh/0g0GwGCZjBToy7+Tw==","shasum":"259af46ab3542433ad909f2f751b8a2638a99570","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.2.1-next.1591783149.fb9e5a7f3598bb7221b981932cf5046769572646.tgz","fileCount":19,"unpackedSize":52796,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4K7uCRA9TVsSAnZWagAAelwP/R8G5EdzsX9zKG9vFVg7\nrFVmyMTXVxaoY7hk0qI402MHhos6N5RNNC4+w6kaOsnRcsWUUttnrv6d36/P\nda/vYhL35P2thKhbD6BgJisX1z1GRoz5J0Per1Ikvx0Xjo5Wl7em8NTwUnMM\nP4nbbmt6bteSfZCRSxRV90vLxiZbB3APbouLARVinpVCTI/rOAedZIRJIPK0\nAKejs3gdG/QnwpjQzdDhEnLBl/CO84ExjL7ZZipXx1WaycdZkrmj1CX3Cvmn\nRHfSIJNL3qww8kZ0RrS5Fm7SHGlVUGI2Mjx+g4SSD3refdCBo12NRVBc4hfs\nOPk/zyEYGV3ZK5m3qVbvyk3dbOHk5+7FvMPb8VLp4tAJdbW+b6oGybDjt5sy\n9VD1wrTna+p/fAQY8OvzdR4jxCB5tT+5bsDmsoyLAzsOGU8rfzVVkMeaNg0F\neujj/LAStpq0KzNloHnWObx4Q21KUJL/v8jp0zRrc/SBVgXKAJtxT0Fd9tMQ\n73i2UolIb4tgJyo2ZD0PbmFZ0W93s/cMFyDRo69oU6w10SCzNXu4j/UH5Ux/\n33WnCug5k2VpsYlZ4EG52RL5fH2RhVSGHM4+DWxg8StvNf0cdOv30n+qOdkW\nIIPQBFe45pdGU4kJ1pQYXTwpYtDXL/My2V5m6Szwi4fOWZYFAIVMIkwnoTRW\nMLsd\r\n=Xtsf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5+Az61qgb7dahD8/0iNGk4gww3qGAo+sZsu0PwOO+vAIhAKQ/LT2bjEKoHL625P4YWBUhx0n7mV0+kMCWekUuUbLZ"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.2.1-next.1591783149.fb9e5a7f3598bb7221b981932cf5046769572646_1591783150591_0.5203332206500273"},"_hasShrinkwrap":false},"0.2.2-next.1591784029.bca9a2437b04681001d8eac28f38e9c836c0dfae":{"name":"make-deno-edition","version":"0.2.2-next.1591784029.bca9a2437b04681001d8eac28f38e9c836c0dfae","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.5.0","fdir":"^3.4.3","get-cli-arg":"^5.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"bca9a2437b04681001d8eac28f38e9c836c0dfae","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/links\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.2.2-next.1591784029.bca9a2437b04681001d8eac28f38e9c836c0dfae","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-0uzYctTR0zxBIKM4zpor0GqJV8gxOR21tyB25ZxGOL1mbArl0myoY/2rkbPRKj2yj1E1qINQZH7g+mXw65t3Lw==","shasum":"0771d3a9304182bcd9273fdd1c39da2fdcccfddf","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.2.2-next.1591784029.bca9a2437b04681001d8eac28f38e9c836c0dfae.tgz","fileCount":19,"unpackedSize":52858,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4LJfCRA9TVsSAnZWagAA/WwP/jRYh/N7O12mNDbe5oql\nB+pA7mqMTUdy3mBsZfx8WrE4iAsgQG1USm2ctHE/Z3ADBNxlPEddaICGxPyF\nlEwyccSwtuKNgw4wLFvD/FUfghq7b+ulnPlHaOX3tJtVbP7UVcsa2ecc3T+o\nMFzVSLh1OKanODGzz++hMCamyYzxpNTqH6+7h/ipCPVdGYp9lLB6dW6xHRSx\nyFovsJGra0MjLToAA4pjYEV3QEzmElwEpk+t80punL7fp8oRP9Q9kitpGopD\nXYX8gJALCcGUhNfKEH5aSEJK5pDej21gEuvE2UtQ9wwUUOD8kk6IGO3sFgEt\n0rafXskDatfAi+PtSk6B482zL7xxBpKY1PFijmiZ0atXIi8+CRyb/w/Hgudw\ncWug14g8zcIQF415FRk7EYO1TxzEqEsTpA9706dh6DvuTmpNGkA9fiXqzWLy\nosEoFKYbIQOIKixF7MpMEBAZqx3BmZwwwpbPjesYGY3VIeJ11WVydmrFOXew\nKHmJAUaW1KAQ4h/01OSm/RM+ARZUWBkS7WxsJ/boV8t19E3He+pLnX23k1BU\n8ucVbdMAGaWiEBbXE27FOlepC3qvN/d9IReWPUdVD1lip7Xo9GHT6y0xgJkg\nI6D7rB3MfgELGjuHLmu1HuwsVoSNcRyNuoVd+ablvfWP/XnExajPdWfkFHRv\nUvku\r\n=DsbQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFPdNctQ9bMNwxP9rgJQAF7XCRCbGJa1x/N8EO+IYrVCAiEA7tQRMKglC/Ii0zde4B+b+skQXLyh7jKi0mTN4Eg3C7g="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.2.2-next.1591784029.bca9a2437b04681001d8eac28f38e9c836c0dfae_1591784030655_0.1111193816682452"},"_hasShrinkwrap":false},"0.2.2":{"name":"make-deno-edition","version":"0.2.2","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.5.0","fdir":"^3.4.3","get-cli-arg":"^5.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"bca9a2437b04681001d8eac28f38e9c836c0dfae","_id":"make-deno-edition@0.2.2","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-M0r2V57WXyC5RmLY5nTeg0/F+akvm+E5Lpgs/Y0l10xDIRWBnMr2PkEIubCckWMKsA0w33yxWVFRiHn3LcyyoQ==","shasum":"436fb669e073b48087051d106eec658b66c5a4d8","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.2.2.tgz","fileCount":19,"unpackedSize":52801,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4LJmCRA9TVsSAnZWagAAg5kQAJ6QpD2KUBfSYzXeC2Zg\n9MfnrcBzURyZUiZ9igVQDczTLpIGQxkVMxAaR4I2sd0zcKEalzpc1Aw0t359\nOn1Y+6KVCh05XtqJ7fhjYIgGkU01IGZ/nnnaWaeNY2XopHI4+mJBRSkb9o75\nR52ZFaVqAxl0H37bO/zaE2O2Z6rMkhuVEztFsyN+n4tXLy8zXtLrx6hjvNqN\nM7Z9bmg1nL54uznzngUl5k7MDpL1DymMbAFjiMz8GOwjt5KCdiceJDJsI5Vm\nyKRUsFVbnrBZxUY5q3N0uYL0UEPAxRq4JHY7LCFGwRbfzTOMaOXiehNLZbmB\ngLJATprBAblIgBQOzBw+jaRCunVQGaXbxBBH2Ztd8Zhzk02QvlYb1PbzE7Oa\nUg4I7lauGc9T9aNxU4IIB39Zmng+NJg1P+MY7WoGRM09v/JQ6lA8ms2tGa/b\n1r/ylQ6o9JYKzbuY5BrcymKT1re27AGycBPq/ziffR1WAQcjHAhqSPDXNnAb\n08XDhbcWa5KTSBHfI8YmARRgTwt1PxIveboUVSMzXSFS9sTU5jCCoSAfI/VE\nIYkEniQ+xE6DKhXlQ24pi5FlL1Js+wfilCQExDM68bnJLbPlAo7yrrqP9fKx\nxWYyZsc4TF3Y2dshqU/z2ijzK6MUtUnkDpcuvg0z8u8eTKhDVoPZdeJ3Jrlp\nL6Hf\r\n=vTak\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDP5wlpGaUnyW7uPFuum6j5GTMHOAaCWk+IUmPFemMIYQIgeUjWFJWaM+GFero+JAvcfiQ9yi3Yr8giSFZ85IZ9NTs="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.2.2_1591784037829_0.9255948465161432"},"_hasShrinkwrap":false},"0.2.2-next.1591784799.e99ce476dab8e42ec3ccc82a9f3bb6b3777af53c":{"name":"make-deno-edition","version":"0.2.2-next.1591784799.e99ce476dab8e42ec3ccc82a9f3bb6b3777af53c","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.5.0","fdir":"^3.4.3","get-cli-arg":"^5.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"e99ce476dab8e42ec3ccc82a9f3bb6b3777af53c","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/links\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.2.2-next.1591784799.e99ce476dab8e42ec3ccc82a9f3bb6b3777af53c","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-jEQM1hrWummWAP8/FJ4kENFKe0KTajkX2hURw3rHkwIP1EtT6mYZ/kgbMlt96kgSXyLC7HISzJp/m6st8kjSrw==","shasum":"665bf12a9bed0d72c55c6621367754a27b04e2ac","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.2.2-next.1591784799.e99ce476dab8e42ec3ccc82a9f3bb6b3777af53c.tgz","fileCount":19,"unpackedSize":52982,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4LVhCRA9TVsSAnZWagAAYUAP/2kmDxsQgNGQ5A2+4mg8\n0fqKiIxycJMsTsMFDjLeUYiqmzEzkvADZBkqR742Pet1vDvEpJQlqtRbHqay\n2qU9D55VF69IFkW/MXaFeS+rY22lZyekkrj9fFVsFWAqQDA3v7jhK30zatpQ\n2Benj/a/Ahm/Dhu/h8QME76O1jC1tEWNoXGk/Ojb5Qwhb3UQutQ5dwHo/jN5\nr7KxljfhVmLETf7kwuaSsG3SlDyNFn2aiycGJz9LNfU7dycQEx5keJ8jCcJO\nkEzjS7SRcKeDf1+NTf1yUmrRB/FJEF1unClhEnLqXzrVEEgmbXJa8LwIESJc\nUgcvOsyaQ7v8wiV9q3XEbOd2WXlu9IPAmhcdv0JffpHN9j8aqq3QZKejprJa\n7oZ/HHSPQh99gvk6zZ/L0XJh7pzgpnDcRyfJW7Kd4GKRQZUk4XNVCfk9tNqR\nsZFySaAXBByM5YWH+0MRKOapTR3XJcd+UHHkGeb+164dBvBaZ5MjlN99NYTl\nSzvXtiPwN47/IjDAD2cREnLCcKpEJjh4jCwkQkV2yFajqbYRIBY7uqE1vHLJ\noz/nIqOOWGDkWSHzzVlboRQkaV0cePQvrX+4laYFLfCO1LvZAGD72+3F+tso\nSIRwSQGIuTr8IpWJUBxVb2ixNgUUr5oqYmPW2ZX0xOg1piDkBWEJNX+my81i\nmBzi\r\n=Xaog\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE5hvwKlD6pHtEr0ak3DTGiVmbMFP1COpl/J/5awpsptAiBNbTOVgu1nJqx0gBy0dvOAdoFOVcEhOzTDH/L/PnpbUg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.2.2-next.1591784799.e99ce476dab8e42ec3ccc82a9f3bb6b3777af53c_1591784801230_0.34677943876316175"},"_hasShrinkwrap":false},"0.2.2-next.1591785235.ca7faa3afb8ad02065a73d34506575e43b65ef24":{"name":"make-deno-edition","version":"0.2.2-next.1591785235.ca7faa3afb8ad02065a73d34506575e43b65ef24","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.5.0","fdir":"^3.4.3","get-cli-arg":"^5.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"ca7faa3afb8ad02065a73d34506575e43b65ef24","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/links\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.2.2-next.1591785235.ca7faa3afb8ad02065a73d34506575e43b65ef24","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-n3kPsroywLBh6Ovf4h/+kce6+Vpalc+ZqJ94lQPCC8163yQENcno4RzGHt1MP+9pxBaesgmAxqQf3l8bkXpTBg==","shasum":"988c272c0d025a2a990e7d19929e64fbeded7be9","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.2.2-next.1591785235.ca7faa3afb8ad02065a73d34506575e43b65ef24.tgz","fileCount":19,"unpackedSize":53030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4LcVCRA9TVsSAnZWagAAfEwQAJyZRhMQPij7c2K8sjJU\n5+ApvfZEJ2FMz+bLZLAzo16qvCQRVBSy1Gz+Y5/Cc7vHko0Hi4CxMAXR418g\nbhfm2n6JLDBtHfb0CLGtCueFHHLRf40i94s9ZutAPLZe1CGigU2J7+4rrGk1\nPJp9KnYqLSSNzGQwVJzHaQ31a1AA361AowY9NQIXOKC+00WutAsApRcJzdBg\ni3zD2wierpoVgNaANGYLNl7oiGGLueaQZ7Vf8U6VDxUiImyEeJas/0GngfGj\nARSspLs0vfPvTcywsMQzzI3lWs0pXi/qU/y/vPS0oqRA2K4YZ8lRca52UBHo\n83jNM9PR3YfGYsNphH1y+kVHoBnRx69wH+/K95EC2tHWmgr/S7w+LhiZ8dcw\nHoyKfQZzyjM2glRxh5GpQ9wZtHfpCgYjwPynPGZfzfhcEC7KPdIjPQVrRSW8\neyZqqNf8hfDUXVe9HhVi9x90ant5k+x4Y1PZ4Zk9PE4yR3jsxKkB13U1pOYG\n2E6SfZ6gzjFxHfP0ampWov42SzhIHDWWG9U0TfS4YRqu/5eDSuMmRp0B4Fy2\n5MGZzUS0QFjntinMG8t0Oyk7K0Z8fJfS3CAT63Tb7lnNgkwphOXaQuIAn7We\ng3lBTojnPV6N/870TJOdIlMOBYI3kdQswrMAqi3sTp0ocj7zM9lVK5zfNg/e\nXoRA\r\n=cQO/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFS9T5PbjPxhKyVM7LWRJ7jxrB5t/S8Yabn31lILNxU7AiBf9Cw2sGJ1kOE9pIgQdpAAiXNaGT6MYe2ySAVdg4JwTQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.2.2-next.1591785235.ca7faa3afb8ad02065a73d34506575e43b65ef24_1591785236534_0.6800447267927172"},"_hasShrinkwrap":false},"0.2.2-next.1591786549.ca5b3eb8afc1f6b9aec0cab886faaba35728792c":{"name":"make-deno-edition","version":"0.2.2-next.1591786549.ca5b3eb8afc1f6b9aec0cab886faaba35728792c","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.5.0","fdir":"^3.4.3","get-cli-arg":"^5.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"ca5b3eb8afc1f6b9aec0cab886faaba35728792c","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/links\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a ts file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically by your own deno compatible editions.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.2.2-next.1591786549.ca5b3eb8afc1f6b9aec0cab886faaba35728792c","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-moz/FxpaHEm3Hpza4AGRkqT/KGDGFYudmEJ+8HcMe787+S7TpIFyknLNrM3NKPCosNYrfZSrzckNBUnbEOxsMA==","shasum":"1c4c158d4d01fa48c45f9f0be5fdc0358f1a832a","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.2.2-next.1591786549.ca5b3eb8afc1f6b9aec0cab886faaba35728792c.tgz","fileCount":19,"unpackedSize":53885,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4Lw3CRA9TVsSAnZWagAAAnQP/2Zeu2pGDhygZTmub5UL\nygCDDqQzBYlEQ4ZsBueZMYRQMWDd8f091YHDHls6stinEPVjtixjt6xZIxvr\nwTbzlcN+X1BZlbIYdR2mY+/tT8UVip2NU1VSEQMBy2xoczGDG2x+e3nX606t\n7LoGAnc70Z+9Km6XZgkI1If3mFRuSkacfP76G3pPkch5xWb7KcHC+TupT9M4\nYv+x8HJGvYXL8zSvPos/1TYIWku9BtwzF+USeYSFhY2x9Isc7AOYQk5FbUHJ\naZkXiqUnxfbWh/O9h9a4e+qYHKqs9ZQc2nfUicOPAHnQB8W+6k5CMU1hWxqp\nUexvZHucMAvKMB8ZvfivuveEWz+FLWFJMa7gd5lK6MOl8bbEo970e9firdzk\n6gSFDpuyWelLEAMmC+beOauC5WPi+zPgy6+WPILZCQjm6fkQFIW3EYCCervu\n5X1BfLPyjKgybCex+PZ35OCCwfEBdrq9SSPqDbv0A/psaBEso1z0AzlQuotE\ng6a95qsY2aCSF9wkDvGAiMzT70mXIGUMfx/AYjZzWMEQC7rQVowZ6TBUHIzC\nRm86tMbElXhzBYPxbi4HI9sXxVWGuliobxFuSgKczAnY6aa55m21HDJdMjxA\nY95F2t2/8ma9zFOeQH/GGWIVddGmB/NugAxY0eS02B999oP/Y4Z33STu/Z10\nYsD+\r\n=vj+T\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoQQ/M8s23QnK6cBkSOlTc+1snJ9bmfpF7deLCzyVfvQIhAI334ny7x2vHz+97zApQs7AXzQxOYuWeNmT1feDhleuW"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.2.2-next.1591786549.ca5b3eb8afc1f6b9aec0cab886faaba35728792c_1591786551025_0.35297517892231856"},"_hasShrinkwrap":false},"0.2.2-next.1591786573.de317065e0f114c79af385efb955f2c68b45af88":{"name":"make-deno-edition","version":"0.2.2-next.1591786573.de317065e0f114c79af385efb955f2c68b45af88","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.5.0","fdir":"^3.4.3","get-cli-arg":"^5.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"de317065e0f114c79af385efb955f2c68b45af88","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/links\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically by your own deno compatible editions.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.2.2-next.1591786573.de317065e0f114c79af385efb955f2c68b45af88","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-oyhIVIUxH3EdaYzTmeEENRluDzccW7wMb5oXUieusZFtSJ5wPqVXgp+sWZZ/k8w5J5z2+/nlxmmSmn4a3Ujn4Q==","shasum":"8c0b8cbc021d9abc077e1bad48dc69d9c95632d1","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.2.2-next.1591786573.de317065e0f114c79af385efb955f2c68b45af88.tgz","fileCount":19,"unpackedSize":53888,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4LxPCRA9TVsSAnZWagAAKocP/1IaMJpFWQnsCrli3iZ1\n78v8K+OjPSzQY+gEuDKDxBAQMmxd8Y1C6ih6ELWtmLSfrcv2o6yaFTVG16vn\nHd3GAAuEDhla1CYc+fS2olljhrLhqd88fB4cbVBlsSE4vG8puLx8qZQf3mIA\njzIJnBjg+hTpxUSbtFBMtyXXhDHKxTXWFuRqqIHbLDByT0V1n1ubFiUTdcYz\na2/q1mU4aWTWkl8rTg/mEnJFnqrvcPI1Wkkgv9LRQ0XmZZloSKn5TuJPtHUz\n+DJQXYFDierMmqqMBPF5U+xEmKXFwKpw39eEf+0Nza8nZ7d992yzExG9jmso\nUr9xzBLPlBMEybt0srV1Pk2a1WbgRlr0ij9EbPfSVuY6dXVSyBE2UZW18yk5\nkYoiSKFLqjYXTdg0+BdFhN7t1QJrigfgEbbNqLRDR/TZ/QNUA0ofK/At1DM1\nhhMwB+roa5T4t/6m547g1ld19iqxMieFduYDLYFdn8SPlNmz0l2+99D08Qnc\nUaht/6Vpq/kjY87aOwMOvl8KIBuONzqa2I1ZMpkkTFLlUKur02Jv7I8CXtFz\n/RFmSsC8AkWel+UzYyDp2BnTqAqarUBT6ND3x5FfKclDo5Hkg4+AMMY1/0Rk\nNn3tBQzLpu4Qk2gZ7Nj8GFXtiUYlX3Oi/7jclXfu2m0+QlDBhJnEkWbXFLYK\nlLoJ\r\n=tt1p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGglG5sLK9fqxzpbg7e59qGQrdU7LGOcG1R/6czU+EZ7AiAnotBPTXszXT4p2k5BERsgY3l0+6S9KCVikeJhkUymIg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.2.2-next.1591786573.de317065e0f114c79af385efb955f2c68b45af88_1591786574883_0.08565318829312218"},"_hasShrinkwrap":false},"0.2.2-next.1591786626.f3b129534d468ee3ec705407c1ed814d784769ac":{"name":"make-deno-edition","version":"0.2.2-next.1591786626.f3b129534d468ee3ec705407c1ed814d784769ac","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.5.0","fdir":"^3.4.3","get-cli-arg":"^5.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"f3b129534d468ee3ec705407c1ed814d784769ac","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/links\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.2.2-next.1591786626.f3b129534d468ee3ec705407c1ed814d784769ac","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-rk1WDtBNRiBKxPmZo6lR+1p0MJkeKXRGULOM++ZpZt6UzpZpHJIeNnZ5996CgxfQBgw/2ChMNcmxHz2HucuylA==","shasum":"0378924f404fcaf3cbedad6ad37159f1dda40e16","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.2.2-next.1591786626.f3b129534d468ee3ec705407c1ed814d784769ac.tgz","fileCount":19,"unpackedSize":53865,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4LyECRA9TVsSAnZWagAA1e4QAJGBfTdDMJHPstmkbOd7\nCbon/YF8bQ/1Q6G2RRH+X8wG30nyPbM1dUelDrVTamB4bHBiJ4kF5QD704OO\ncLVMGhqg2AeV1qFAMQWsi53fwSScJB3XD85X8PIRllQKh2gNHagllyJRkVJ/\nQLMUdW8T6zsZQEPvYb+QFxIK1xJGUtJwRoplR4tdZGh9x6oHt+Ij5Xt7DhaU\n8IIIpqekvNshsFA3P2QpBcwT5uuj8u8McUqoWFtlE9aUI+RkjB36KU7CJJUW\nzEvlPUnVKgD3yixhnFTFmp0JLbdj1IfXhi+GRye5P2JF5YO/s4qd4c6u0Kq7\neQwY+bjI0Du8xIk/x4iExT8Pi3TnhwZ06p+P8qMaqaJJTrO4bZxcUQXKGNXd\nI1JXFj2e8zuPPq/iHDR08Egm/GqgZSUVpW6SJjOUoXy6wpa9U0HjHC9vvtxw\n0vyItM2ft5msFNm2earaDea8rojNpkT19DgKJGbyNMyk9Clm/MX1OnAcJgdV\nPF/p4iA2XZOduae1fLMZRmpr+lSvY4/+Pa1ka96G4jXvBb+9s8pr7aR7UVpw\nOFTTBA5MWnm3nMd61+ZqDrvSaOIFlkoJYKnYCIgfB/83gLOdGC4hW3qtrt2r\nLAt6FhAveu/r8pTUQ2TJljkwq1j2AeJrNvN+Uu7/BS2IxEMLisOFeswhO7vE\ngEWr\r\n=dBxY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFN7gfTXG8mY1kq7lsLAINcnV4/p85a3AaCSTun7AN86AiEAhhMN5RPcXOzKQHzukQ3CG5fAJwRIEsrixScsxD6tiQU="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.2.2-next.1591786626.f3b129534d468ee3ec705407c1ed814d784769ac_1591786627769_0.7676117743531055"},"_hasShrinkwrap":false},"0.2.2-next.1591786678.9303696dc77ce47fbbcc4340f302ef2434c6fd13":{"name":"make-deno-edition","version":"0.2.2-next.1591786678.9303696dc77ce47fbbcc4340f302ef2434c6fd13","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.5.0","fdir":"^3.4.3","get-cli-arg":"^5.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"9303696dc77ce47fbbcc4340f302ef2434c6fd13","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/links\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n-   https://github.com/bevry/sortobject\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.2.2-next.1591786678.9303696dc77ce47fbbcc4340f302ef2434c6fd13","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-K7hBmXWHgoutbVU60uNS0SLW8gWmA4+bEp7G/RuVhn+SHn0SYDc63M/xleyhG7McjWj6RSz05wUaL2Jit7z/hg==","shasum":"eb0d538590c861522c63a67ca68081734e0b22f5","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.2.2-next.1591786678.9303696dc77ce47fbbcc4340f302ef2434c6fd13.tgz","fileCount":19,"unpackedSize":53905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4Ly4CRA9TVsSAnZWagAA5nYP/2JTUqQAVhDMrR7rHXhc\nM1C9KFytwczaVVOkSPrBqdHy7qfTBaAeZqNKbl7lgADQn933M14sIgaXtMbC\nbTDwG/+ZccBROIFqvsrk7IY8fy3gy/qzoAL0pckxPYOWY+Zy+QEyAkMfgmEq\n9aMjihqLvebwhYX2/2xOOirduhrdeqFlneAqope8nos1OYoyZMmnVQZGXW9y\nGz4/zVkP+iLcrmeEJe1CeAdIePDT8z8goDOXN3QPIB4QO8UwCGjmim9aonXP\nt/+KI965iEqu6TbTVDtxWe+QPFS28aAFEYd55dHX2lluf01yOuXN7p9OW9x4\nl5jIsNo8nWa2hKnb8znfvaLw9hnTjRTWukX2zEXmI1RnIW+khR7iut3CGSKy\n/CEuo+/ayJAe7EG8t9aP4oJdtcch/2BhtjTiBtdTmplFuOKp/E8k0yf73WMP\noB6Lu5/dIW1vmLYabzyZoKXTGJcBWwzZ2kjAZI9IbaF5tT+Q/0uN5hgpnJ7z\n5FvqZYykkB048m2HmDQca2wFPGad2yyF0WzpI+ATEsoQ2jC3cYeRYHB7H8mP\n9Vcgp/hZyX+cr0+rTt4qmcV8Nhx/I2Vfu2ugME2nifwXvNLPod/J+BPsTrKk\nX0mRCCPEwRvNseq08jtawSZEUrGL2D0QTsn1zVRRReNuzRGzbNH+B48Ihsl1\nvBz8\r\n=LDRi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFjtTV9/Evm6rRe/37HZmEmcmBBaOfvaXILjHU8PqZdXAiAiC79T66k+oQTxGPQgh19FGbVUiOEGBSveS1+5sIUg7A=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.2.2-next.1591786678.9303696dc77ce47fbbcc4340f302ef2434c6fd13_1591786679651_0.7201839108781725"},"_hasShrinkwrap":false},"0.2.2-next.1591787154.73f6e782f6e2da542b06fc859945865041254489":{"name":"make-deno-edition","version":"0.2.2-next.1591787154.73f6e782f6e2da542b06fc859945865041254489","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.5.0","fdir":"^3.4.3","get-cli-arg":"^5.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"73f6e782f6e2da542b06fc859945865041254489","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/links\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n-   https://github.com/bevry/sortobject\n-   https://github.com/bevry/textextensions\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.2.2-next.1591787154.73f6e782f6e2da542b06fc859945865041254489","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-A89cg0B5+Ge6mF2vjSsZdmyFEG98D3AcA9Z+Pxuk8O33lGHLhubNaRf37ZBHEr5FoQd4ko1Me5uEl2UIXSGX0A==","shasum":"578c93776a2b329a313d803536bb37ab354b8106","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.2.2-next.1591787154.73f6e782f6e2da542b06fc859945865041254489.tgz","fileCount":19,"unpackedSize":53949,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4L6UCRA9TVsSAnZWagAA/5oP/jzBPnBCaCAL7LcJriZo\njDP7LJkYPLF35FVZPb5/E2USETW7xc6QfNM/mFr56XF29zqmHOtdhPuNhkNY\nCMTdIHDu+8aJBL/POBgoyasXnNArSpGMeVIqrXVVA2JWki4QHK3XWKd04Thq\nXTOhZKOCMQFE2/ZM4vmxtcs2d3fgIEuzRpd+oLrUvDVKTXu5F9fMYXxSS7gz\ndJviVZWLtXH53ihcfFdfLWeZlejY6Zg+YkAyeI6KYogqzWisS9EKjWWgDqX9\n71hWKQZVbkmLM5RINTcIySgRL7QcOXQ0ABaJ5JyUtQ0BpstHcNdkZcgHFRCC\nS/QRULluJtgBgJbT/LwiIBGk3spKPWgQXigxRnjWThGAhqnMvp4sHh7E1iEN\nVURG5dI9UhECw+uWmQfm/aAH03Wbhs1RF8xDhj8dBuSB4peJ4FlMhIvPo5R0\nDRt78RYoya4ncBWHbxwF41uJWyOnsLCSZpE9shKIGRPeMg3LhTXe2BQhKXsL\n/1BBXm+qEku7P46jiE+jjbboSvijx8PnYvs88R4rXjJVNKr99aW6mAqruUOh\nz0scGh9oWUd/A/F3+ZGzxpCG5/cp3nUtBAI2qHCybI0U9s9dU6Jps8NsdQOC\nbiHXcCaYA8GbYiD/aRe9Tvr3d667OT8CK2Dd7MwckDqTb+meNJ+ifOe5N+2h\n55MP\r\n=YTBJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC0ZAnhl0C/4Yw6ALaeTPa3opbi9LuP2kj3KySn6QSMtAiBPWNwlLc4mXrVHMSHefanoSOzq8ZwB97Ds6akYxp0OFw=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.2.2-next.1591787154.73f6e782f6e2da542b06fc859945865041254489_1591787156238_0.11954647992545353"},"_hasShrinkwrap":false},"0.2.2-next.1591788574.26fd89fa778cf9f61222f7b1f9eb8daa00328956":{"name":"make-deno-edition","version":"0.2.2-next.1591788574.26fd89fa778cf9f61222f7b1f9eb8daa00328956","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.5.0","fdir":"^3.4.3","get-cli-arg":"^5.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"26fd89fa778cf9f61222f7b1f9eb8daa00328956","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/links\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n-   https://github.com/bevry/sortobject\n-   https://github.com/bevry/textextensions\n-   https://github.com/bevry/typechecker\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.2.2-next.1591788574.26fd89fa778cf9f61222f7b1f9eb8daa00328956","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-QFfmrYpB2iuqK7DnR/oQipGDVlYAvzs4UBtOHGQgmifeMYH2aKl68pf4IMDjp4oRP2dv3fx5B3rqtz0GvOFviw==","shasum":"4c6fd54af0a55f516ca55b81af5d34403d12e358","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.2.2-next.1591788574.26fd89fa778cf9f61222f7b1f9eb8daa00328956.tgz","fileCount":19,"unpackedSize":53990,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4MQgCRA9TVsSAnZWagAAx3AP/1hkg1YIPPrMbLM3wNTt\nT3oL+YFF7tKfY/eDbRieJfndrtF5LqNnqSV7lPTJm9n/eGkvHwoPgHobcLQE\nsr4zCKrP3JsWljteRPD2/0ckyDxNAR6VpJBPbvQTGHBsqVPHUFZpksn+R1Fs\n+9RbTVdrq59k2BadmAaxwOqZp7m2Ea/K2aDsMnKZFRn/l0rnk1wI4thHtMKK\nI7YLL7G3M20humwq+sFfhrV8gjRgZ3lZQKmrxhF338DkuAG18I1kTLF6hBby\nJlfmgT/KUnJuc+eFp9N4A3m7QwvV9HBJVmO96x8R4/f69qPsfpkGQSm1knNe\ngiYn2Vql6XJqYEMtqINcIvcAstr9hBc6s0UcOMoBYtPxRUpVfObqxR5L0C1r\nCbp7o3g/dgB6iP7poecgWmia6LL6x0npnM/qOlHCJHn0JQABK5Ftz4cvc+sy\nZgFHQjHxgow9EwR1bCKBsuw6pyCT9xzViguC5dmpmA/vRDlohGtFVuln5rvt\nqX5Df6XQY6G0pZktwP4E1iuLzEIfun1U7HpPyws3ca23sGkmZoVE1GqP8BZF\nEhDnMIlWoO3j05zEHppz6wt9E1My11wVdv2Z0tWiW4485ZetuFshGRRJW8f9\necdfTrn/gqmQ+uoeV/hLwQFJn7cBifM9+yffSb8EFj9LOKRRD3r+2o4tCnKI\ngGx7\r\n=GIp0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBIo1U+aBi4JjWkRmude7i0ivPAXnf41i7HXYuoSD4zwIge/SSb/cZsCj1zxwji6w/QR6F/XleOkPjPi7DA1st4O8="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.2.2-next.1591788574.26fd89fa778cf9f61222f7b1f9eb8daa00328956_1591788575803_0.9971744384190677"},"_hasShrinkwrap":false},"0.2.2-next.1591797913.843774d7ffce557e942485d68f2cfd53f8a078b8":{"name":"make-deno-edition","version":"0.2.2-next.1591797913.843774d7ffce557e942485d68f2cfd53f8a078b8","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.5.0","fdir":"^3.4.3","get-cli-arg":"^5.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"843774d7ffce557e942485d68f2cfd53f8a078b8","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/ambi\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/cachely\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/get-cli-arg\n-   https://github.com/bevry/ignorefs\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/istextorbinary\n-   https://github.com/bevry/links\n-   https://github.com/bevry/memo\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n-   https://github.com/bevry/sortobject\n-   https://github.com/bevry/textextensions\n-   https://github.com/bevry/trim-indentation\n-   https://github.com/bevry/typechecker\n-   https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.2.2-next.1591797913.843774d7ffce557e942485d68f2cfd53f8a078b8","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-k3hT243hOjyRLKwUcsbcGAQR9Gury4o9BLbnlgjtrcnZmu9nNdOcKKRmYjd0VG2Pr83VypoXOmXv1qYmpRBpOw==","shasum":"93a8654692e4326a303b9b19ff07b74a4e895f22","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.2.2-next.1591797913.843774d7ffce557e942485d68f2cfd53f8a078b8.tgz","fileCount":19,"unpackedSize":54306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4OibCRA9TVsSAnZWagAAP0IP/3I1JVYpLwRDAF+Wpo+T\nON+dqM8vVR87IRwOuUMx5wPTBCU/H5uorOHIe9+eM3Mlt1xKf43HzWSHndsi\nhn+pywqP31OyHRzzw/ylvZqwol/3KuJ6oAmkk+xIBXDi7rjKiFAhF+k3bWV9\n86NVuka5GaUXPmb2w+uKBxwNjJq4exugtFAbQUuDL7TQ9zPvDi3l6rYgcdmE\nI6Nmbp4ye61K5U8vCNCqfFBqczR31zp0bjGx69mfsDxbfKUrGqd/Pxuk5jHC\nZcuQ2EzM6envHqTsyhLp5tx5gVNoPGgje9brf7qXux7O7Ht9ZQZwt0qxqyw7\npxTFK237Pm733BHUv3AqY9NUmQVkgW11VSJbK9t5hI5bUTi35b+JaJA7oVcd\nz3JWBuT+hHGwiHafk6N1KdPNkRDt5yXh73K5Q2i0pHTH+t3PSSYjlgATYOam\nQfp7CFMlM3qj91TkvAONyo/kXQiiLZRzTb1hNmhVvb6vKZuVOA4JyOCKkHk/\nlzkLlAY6+Bju8W1iRuolgT+RxFovm2Sj7Q3HlyrsiT1yPjlsTei8Yl5aop/m\nmXHh6vMIPwC7lML8ikBtX9MzG/4Jr4JrbLMUDcSwM1OMefGCmGts9TB7YR7i\nzACNGTpVqojOh8TZxK+WqaI+V3xZRq59/osUnA7Lw3l6VL/CbDk4WDM+e8EY\nlujQ\r\n=V5eG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNPLQgsuIjra9Jp7+KaD2qPmeNHhelHw51M555xT8tCgIgJ8EWkFLSnYwf9981q5bLBG9VSOFW/vC5aJ6I/bGH914="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.2.2-next.1591797913.843774d7ffce557e942485d68f2cfd53f8a078b8_1591797914616_0.6677255181921735"},"_hasShrinkwrap":false},"0.3.0-next.1591798837.36e2648b411bf79f5e312fed5b9c9892c884b7e3":{"name":"make-deno-edition","version":"0.3.0-next.1591798837.36e2648b411bf79f5e312fed5b9c9892c884b7e3","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"36e2648b411bf79f5e312fed5b9c9892c884b7e3","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/ambi\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/cachely\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/get-cli-arg\n-   https://github.com/bevry/ignorefs\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/istextorbinary\n-   https://github.com/bevry/links\n-   https://github.com/bevry/memo\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n-   https://github.com/bevry/sortobject\n-   https://github.com/bevry/textextensions\n-   https://github.com/bevry/trim-indentation\n-   https://github.com/bevry/typechecker\n-   https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.3.0-next.1591798837.36e2648b411bf79f5e312fed5b9c9892c884b7e3","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-ygyLVX+cwl+OuOhQM3a8/LU/jOauW8u5BXPd6z2o69hIvxbc/jqBu7EsT8dx3hLDb5cSX9f7ClB1T/tSc2Esxw==","shasum":"bc0561d6097791653a154630c3081683e12b869f","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.3.0-next.1591798837.36e2648b411bf79f5e312fed5b9c9892c884b7e3.tgz","fileCount":19,"unpackedSize":54500,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4Ow3CRA9TVsSAnZWagAA2wkP/A25kcL+2i+fI1zmzbEi\nPj6Q4eHULZHB4y1h3rlldlWcVnbZLZAbpLDnWEKaCi+qZimu9dmW5zAgWg12\nReNy1tY7s0nDTyCu8ETXAaRkbhEwdqfS9OGeAZWW6J9VeM0iurZ3u2oUUb71\nawHXmjGjlkZKZlrxPlQri2Ot16jAdYY2ma4E1lKIH6B1z5eRQj1b9SnY9FMJ\n6tRifRQMqDtCx0t2OKDtqReib89/HK0uw8KeLWQwDHpsNcFm/8Zl4nH5DNbF\nAf1bNdwXnzlLnVXxgOlhkeiVvRDLMH7wbjVVnAmeBbJdYqwUG8OT4nUsztz0\nO0QKRzPfZBbzjPvfGd87tYsZUGk219PJ1u1B0SrOAVum1zEPWzGLrmnUA1tk\nUro9a9/avHFt4WyobSiBSj8eH7tNxBA/sDdWc9q7Ks+jZIgJXOZ+SVZWfNYz\nhqW91DQridRSDRhP7+Ay0ReDw/Mv+Xh5jZGjoLmiTHCP17CVuxbjdgdpE/Hs\n/RoP0lpii/Cum07JSUDv65Hds6EWkMT9WV40VyFpm1HuXMPJH54aTKahzPqT\nCUl5zbASLdp9PT7SM4RalMe85igIHzk45vw3F2Qb9GhVerOYrpojxfy2MVWO\ngb/sTC/j88o1UuYWCa/QjrWA7IGWdNZNoQARQR/erHg9P/YARpeW7WzEWDen\nbM/w\r\n=AUpj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCx1eNIjIzJSkIxEICFdtT62PvKRv/ZNzsFz7e1XUNTyQIhALYcUIbiNc+zld41NTQ17jpRjtjXMrRuJ+lA3NnMkLNG"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.3.0-next.1591798837.36e2648b411bf79f5e312fed5b9c9892c884b7e3_1591798839172_0.8239652779139619"},"_hasShrinkwrap":false},"0.3.0":{"name":"make-deno-edition","version":"0.3.0","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"36e2648b411bf79f5e312fed5b9c9892c884b7e3","_id":"make-deno-edition@0.3.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-u7oj5OknRAy4XaHixcDwZ7+JUXEpMeDB0oQCaxy0ac/m1D8DXbXG23FIaSzbyOX7AMOii0sI44jifHebSq7gYA==","shasum":"d399877463e07b432063489e230c790b43be5627","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.3.0.tgz","fileCount":19,"unpackedSize":54443,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4Ow/CRA9TVsSAnZWagAAA7IP/28i58d1mBdq0+snlRGp\nHY3zV2HQfcpotnAJ1muc9yos5Y2X/h+QN4RwQpr/AfV1Z6KuoTcAK6KDqcus\n9v5pe3nw0kZMk2juOus3DSvig8AKBaXxf4Ciw+N0+4tmwTkvuWorbQNXfzpB\nrlyIGBzIhcmmkhxkNEUUVQfWOD3VgnAT2aYOUBPuvRlt5V6oWsc1fkj2yQIr\n0KDuBYN3AZXogcpeywCskQ9SQTiIOVuWIxkpkjefXjXPMNaL+jogSVpiBSy2\n/mP5NhBN6PmM1n+gmIhpI5VL63ay9TZkomvs/VMVXWjGCtkc72Ff8D+0uqao\nkWlP03SyJbz2bgEEhCmwZfiC1gIPC8VxbAkSLkmjavvdZg+c6VdJJ52hEJMI\nC9tCcwvUevs3loZ/NVp80JgIFc+DXnUpspQREU1ZoipOz7WLLNQv/5P7QBKk\n5DJSNej8kVFxd7in1ryMThcxr8mrnT1hkRNjwOpnffCEHaJIuDqlkKgGTgSI\nGMASn8GLsx+zxURgxMDc8X4Aha8Zna2T8q6yj74UhB+qCTtbouAhR/W+A6wr\nIY8nSB+0Dw9CDZELFTN8Hl4ei/DwovsUZe1zXNCZcz0Kbq3OnO7MGM82HbMB\nT4d00FJUoXAJQMe64w/3aa2mVXkp3CzF2pRF4Mu+ErwdfevVr6yaZmzDx1zO\nRuQz\r\n=cbQ0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDLrDjlO6Ul6nyM9uqqkjUL/YwbYbOM6Lhnqj/TGBthIAiA5gRJVJEzZRVkW+itdA6I2kLW28tTO+NrXb5uJPZdpGg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.3.0_1591798847493_0.755373935288304"},"_hasShrinkwrap":false},"0.4.0-next.1592596058.e581edc8f07a0c65d497bbd0a962f302946cd26c":{"name":"make-deno-edition","version":"0.4.0-next.1592596058.e581edc8f07a0c65d497bbd0a962f302946cd26c","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"e581edc8f07a0c65d497bbd0a962f302946cd26c","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/ambi\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/cachely\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/get-cli-arg\n-   https://github.com/bevry/ignorefs\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/istextorbinary\n-   https://github.com/bevry/links\n-   https://github.com/bevry/memo\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n-   https://github.com/bevry/sortobject\n-   https://github.com/bevry/textextensions\n-   https://github.com/bevry/trim-indentation\n-   https://github.com/bevry/typechecker\n-   https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.4.0-next.1592596058.e581edc8f07a0c65d497bbd0a962f302946cd26c","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-c/RGorHZKn1pqe9P0T9AFkT9XXqYU7mSJxBO0v2dmyMdW9QeJZUgokOJMTMJV2anBFdXuasPdAWYmeqIClRuwg==","shasum":"b2c974dbc97d22afedb447b8f183051c4c7070b1","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.4.0-next.1592596058.e581edc8f07a0c65d497bbd0a962f302946cd26c.tgz","fileCount":19,"unpackedSize":60713,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7RZcCRA9TVsSAnZWagAAQ/cP+wXSLf/XqyNHOwXe9D4E\nt2VhboVb8K7mk30M/PXCebM/OnQ/EWUWsL6+TofDwbxTzffAnQ/tsQgGz7I2\n+IubB7d1i5w2rjtzLTMaYlDfuBTqfTZWLikOOUuBPASFqiEdvFcpBjYeCwWL\nGZwmdFiFM68ftkQgxWbO27eUT+mQLMoR3R1dw8GuIxoNZH3tWzHJlZGZW+6E\nWv0LD8a3tii5u/4i7y2Ucsw/s/P0DiRqgV3D1kbI5+JKTOhxdnYjtBqI6Clg\n2bWxCxwewk2/cdBZ5pu7Z22y/x+LxNnZEhsqwZbyflbWaUCUAXGaUtuUs2V0\nD7hTPV7B+UMvo0BFqrHWnPQZYMgQpu7VV4dLsrhZ5mXXjUQDOqEvDIXvoXB1\nXjrwq9EbCFlRfDduHig2uXOXtBcFKXbmjKfatyMM1y00B+YBg9M4efZ6LdsC\n8xGPrXszNcqxx2QJa8WtkCSmhlRL0OAadYEI2NYA4QAUx9z/JrKtoVIZmFvu\nAlrRsE81WSoumlHaJ+10PfQHCBZCJWnhVEhjvCTq6irF/iyuqsl+nwmRblav\nmk5ndZ2ZLlkYf/s4VSckprbNmCMAhaDit4Gay3Qb1OIF/EqVZjzE9kk9zFIU\nM1Irg+hneOL/BPCi5YVPIeb/6Ph18a2uPw3nw415Zj/dyE+D/DmF6Ip+Mftw\nNG6G\r\n=Nqvd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDP66v0OrSGsFj+5HXLSRxkNGAP+s8hjlJfc/btAkb+ggIhAIL4Lq6yjvtBrBBfJxLbkB3SjgPw5aqqqQsNNz4odE3t"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.4.0-next.1592596058.e581edc8f07a0c65d497bbd0a962f302946cd26c_1592596059859_0.8825852180055787"},"_hasShrinkwrap":false},"0.4.0":{"name":"make-deno-edition","version":"0.4.0","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"e581edc8f07a0c65d497bbd0a962f302946cd26c","_id":"make-deno-edition@0.4.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-uUFCLadhZNUvi7VuswOjJ/zRhdsiVM/R6mn5dHbMUfXTB8WbNmrhwwUHEKqYFV8aT/POM4pI89ZckLYm793JIQ==","shasum":"b82c9d7c5fda30f1f24e4acee4407bace14e0e79","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.4.0.tgz","fileCount":19,"unpackedSize":60656,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7RZfCRA9TVsSAnZWagAAN4UP/3ECMtkOyILhULeQwBrq\nXjJpNrpPwG7DAqSIJNBclmVsIlzAKtkBzVguqDAx8cz+/DEnogD6E0XCJMMN\nL0yXkfYbpl7fx4Wmlk7bbCQex59T7tQDXB8KvCCJVdJNtmc/7zkH9NyRuSuu\nrq01T2ovGQKtOk/pisrRhO1CxleGexOtFLbVleRC/j724wesLcfR+oeMPKvH\nmQar6SVpQTEp92e+GKrSQD91arcW3MlZSUgw4sOuoj2AJutsYas/uGaCPuCD\njXYXa09xY+xM/fobLQc+/scL/uvb1+5dQFnZnaTI+C6B4Et/LZGnEax1vpnL\nPzdh/kQdW9CcZ6faYISEneWyicyctZJSNiYOihFhcQzEQglrUnN3nZjFmoe5\ntGMCZ4PN1cUlyybeuunxe8FSVwUwqC/CBKsh5Zkf8Wyx2pufFphV4zmUJwzE\nI6eUVQUimokraOE8gpoFKHwR4O/vaZfZQW6ukZv8VLj/9MVaEQTXoY6KLZ0z\n08knTlCL4fAWmmAuUT+8OZX7bC+6qzMfOFtM2/Ae2MR3D/eoXngyIveDglna\nu5GPo3cQIXGPvtAEiaHTdPezqRPRTdYZRplHNkoqa9ez6NdFCr/1AkWW8oGa\nw7+uGQdKEdrBJxf/6Ujce7STYfvr1Hbj3jfJ5pesgoh9ffWYSURMUyuCtT4P\n8BCQ\r\n=usC4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAWdSxbAKdqK1cqFpXgaCixW/BraD92Rg/CJJdw6k4VYAiAH6wOmSnHKdpJEHunyaNVmmo+F9okGcYl/oTGOpsrRJA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.4.0_1592596062903_0.018518859224498474"},"_hasShrinkwrap":false},"0.4.1-next.1592596307.1b18f3334de9d7d4526b27ef6ecfc1bfa7c06820":{"name":"make-deno-edition","version":"0.4.1-next.1592596307.1b18f3334de9d7d4526b27ef6ecfc1bfa7c06820","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"1b18f3334de9d7d4526b27ef6ecfc1bfa7c06820","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/ambi\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/cachely\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/get-cli-arg\n-   https://github.com/bevry/ignorefs\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/istextorbinary\n-   https://github.com/bevry/links\n-   https://github.com/bevry/memo\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n-   https://github.com/bevry/sortobject\n-   https://github.com/bevry/textextensions\n-   https://github.com/bevry/trim-indentation\n-   https://github.com/bevry/typechecker\n-   https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.4.1-next.1592596307.1b18f3334de9d7d4526b27ef6ecfc1bfa7c06820","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-oQ/4t73rZ4CyYPZvDDuWxu/lxb6/FaCe0VxoeyzANm63aC9sN/4mKq07TvVDlkqVEhZ5QAXoD/lj2vfHDxpINQ==","shasum":"b8643d5b1f71866875e3c1d0d8b7c0481caa030c","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.4.1-next.1592596307.1b18f3334de9d7d4526b27ef6ecfc1bfa7c06820.tgz","fileCount":19,"unpackedSize":60855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7RdVCRA9TVsSAnZWagAAgcIP+gIrnnP+uqRA4V50tOtb\nUh/jubyOcrCKJWGO6DMJp/1cMJfJbc/XjiTUtTK8i5PiKIkFK5XEWZ6Li3dY\nNiIAR9PJJd9x5sh3i8lHt36kav2MysxTr+FDhtiQntuQ9kdZWmK3GWJIJX4K\nMIfzDwBj/g2uMWhaPJ6nl+AZpGqPkrUwlOdnrefOgwkFByaV7KFpM9Q183R6\nh0h1Sxn/VHAxPiERCclCMuTNvCrLy5iu47RWqf2DFFuf6G+W6p9dslHE1TZW\nQrRQcl2pCsBTHdIg2xRj82U5AvGyZTaxwdzDA2E1NH+GgcAsG8EZFs3Z0KK3\ngzI9GWjrswH7MmZak1X5cm4767Rph10vR0bMWVT9/NB44hHM17sCvwOxpat4\n4onpbuiFoCtRGzsp1R/IvD6q1ywnEMf8ZZtJ6/riFZpmuhzpNE8i7OpLoAIJ\nP6+A2V8L+9fku0lB9RpRXZICn2xiv4D+voO/P9Km6d4wbVoIxEqL6e2AI506\nLmysPygiakyfI/tdNMN61IcLLd5+J9wsdVShLLzAYs1iBtqfuucCUbhE3WkZ\n+3qp3pGaLXrXzBi0i6k0Pcrhu6smLrKqdWMavmW768Mb75/8X0Pfo9/fqXDm\naq8bKmtBCgtWikR5sR9RRzCaCGj5rjBX3DKCCQ6rIhZZE82TJcgSruEMcc5Q\nqwHM\r\n=3BNv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1xSDJ9ErbUottqASbRewNyQbKYFY7CjowgxhFML75uQIhAP/VW5a2Aju9RmUK23QRDWnMPgZw/t+tyY+IUuy7lu8J"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.4.1-next.1592596307.1b18f3334de9d7d4526b27ef6ecfc1bfa7c06820_1592596309034_0.49849255964953243"},"_hasShrinkwrap":false},"0.4.1":{"name":"make-deno-edition","version":"0.4.1","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"1b18f3334de9d7d4526b27ef6ecfc1bfa7c06820","_id":"make-deno-edition@0.4.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-ezK6T04iHwGrmY/yhj/eD5WoqtPhkD9Q8MifFJ6nI3bARsKnP1M9ugC6dJcqwlCCN3mE7v13+SaxXGtNYhmj9g==","shasum":"12d8fb85a0d4bfcc0fe4f7a7383a5bb76742d0b5","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.4.1.tgz","fileCount":19,"unpackedSize":60798,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7RdkCRA9TVsSAnZWagAA5S4QAKNei7psVBMUCg5URMfS\nF1WmJMTGhbWVlaiCztPM+pPY8VnyfG6WHCee7BRptoYTiYa6M1713y49kxJV\ncOvGFw+2n3a//+eds/qocwraxZhmp8wHL1fQ89nd58o1Pf7bfoXGwshh8SlW\nXlAikAhg7aMO97A9qoyqZuRXGMi9bhIX2rnlafqBUnWXpWf0DtrRk5c7PzJd\nMW5+WtJSdoL0HnL+IXEAeTX7EzzPOhsoSztLdWbFsr1s0RPHE1ndab/Z3z9/\n+NYaItpEDo5tjyPeHg9epYYmLqDnXVY2fFSaa8bh8EC4eTTH4tDcIB9FCc7J\nJs5lQFxfZlsLn1jADHAjnso9YUuCrB59VX6h8NEL8O5nDMVhkpImXn7aEmsG\nSVgaCNN+NJC5O7sFYc324+dFz1Ljort30sicaVUFlv+MisY3J6itCSFAq6Jv\nkKB9aT83u4TzzUfLieqXW/Vp4VdW49LdipBQlT1cIn7yeC5Xg/93Xc9UpKjo\neFuRirhIQrdLGMc0JPbHgx2qhRSPCENAmy3cbMmmCXBih6HMXGP1HbsHu/v4\nmoLKUktbzPNia91tVEDcASbkTaSBU3vwoTNdpMVWZv/nG7d/EbNH4SR25vCM\nRaJwFW/28p/hYtgd2H97xmP7vR6MvrcdZ/7JdVw4W20pMFQpvOvJKwfg7urp\nc3zD\r\n=P7KW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBYk3Y8NBLzdIDQyVrXfcko9AvyYowi1mJO4lCquDCImAiEA7UTACQAj0/kzPooQP69tTAsMGQ8+lTqu6NKoKPpLvIQ="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.4.1_1592596324169_0.8086408049795415"},"_hasShrinkwrap":false},"0.4.2-next.1592596401.86aaf7ad277889ea39d2bc2c91547dd069d7736e":{"name":"make-deno-edition","version":"0.4.2-next.1592596401.86aaf7ad277889ea39d2bc2c91547dd069d7736e","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"86aaf7ad277889ea39d2bc2c91547dd069d7736e","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/ambi\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/cachely\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/get-cli-arg\n-   https://github.com/bevry/ignorefs\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/istextorbinary\n-   https://github.com/bevry/links\n-   https://github.com/bevry/memo\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n-   https://github.com/bevry/sortobject\n-   https://github.com/bevry/textextensions\n-   https://github.com/bevry/trim-indentation\n-   https://github.com/bevry/typechecker\n-   https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.4.2-next.1592596401.86aaf7ad277889ea39d2bc2c91547dd069d7736e","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-3EuD51ElsV+A7bTIjniGlS2DSovgPxi2W8XXy7h0aDQhKUBFZCX/HZdVYSur1nqdVKvyai1RPe6/G75fai5s7Q==","shasum":"fc7e51d281ee2254ce766ac56eb80444bc2e0fe2","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.4.2-next.1592596401.86aaf7ad277889ea39d2bc2c91547dd069d7736e.tgz","fileCount":19,"unpackedSize":60908,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7RezCRA9TVsSAnZWagAA610P/jik65R2v+Rpyt7PSctm\nMl4UwKeTOmnBxkLSwLO0hoMvs4zf6+7ZNfuABfId9JklS94o84Kgbnq0JJB1\nv6H+la88ap6oFtOOmv0TjvwD7uci14pULxoO1mJGXtvAd3dfcuTRhQp2kF+t\nm1O+7Rwu6HkYY92Skh0vkyophyazbCi93kZTRq5vrubL/zHR8jW//aENIcKA\nQ84LFN9ZK/H6uQoS1GlWYeonbklUnt66WXM5zjnLVHemdNJDpfMsGJerWoV1\nPvQvAPWZSlBPDQEJOg0OaJ5Xr+s+pQXMSrGtGW0jUwmpGLaq2XfDmaevqVm/\nNTmrfP7LKipiaQCb+lnRTw9vpKZ4hhxdKWzLeqRQoHp1wUr9WhBCYPLCsWen\npiWqRHwjk2iK3HSLbCwGRmd6PiLrYpiLVNHl3BwJtBA8mq017xMCtbfAwP2L\niZMe+ARyL1mmLCjjcYFPbi/ZR8O9F93AWVLFx8HDU76MKJBiVhopWATPjl3Q\nhsxDbhdP1ineDMkOP9XYsj0IpTHDdbeDmyVDYh4dO2uAzeFHO/p7Nykq9xvN\nB8sTc4u/EKviKDrWDoatIJpRsKphW8fVf0sZAiJJyavXUXiz4E08NG+9B/TG\ntdLYxX2gsN0MOaDOC0blEtF048ih5lg+4PHmLmKIjQw5uCFsLPMMxATkOHF6\no2hM\r\n=iK/0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxXFv5r0CZ5Ahc1yWR9WILvpB7P2pRJS4DL496d2wn7gIhAOFdypDqocyj7pwpS6VmohaD9dF2+JK//vF+uPnwUOdj"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.4.2-next.1592596401.86aaf7ad277889ea39d2bc2c91547dd069d7736e_1592596403406_0.7102749977554093"},"_hasShrinkwrap":false},"0.4.2":{"name":"make-deno-edition","version":"0.4.2","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"86aaf7ad277889ea39d2bc2c91547dd069d7736e","_id":"make-deno-edition@0.4.2","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-GonIn0qTW9m388G2lX2mfGpAzRyVVJ2F5CEzfLLObiAi+V1d0Etq9EiAJ9DzvAPi1BZxPKlo3iGuAgOYz0HrjA==","shasum":"804e19c2519c358814275ae54499c87722a94aba","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.4.2.tgz","fileCount":19,"unpackedSize":60851,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7RfDCRA9TVsSAnZWagAAKrcP/R7C6JsvGJVmvCSw39eJ\nybgp/3uD93pIiGgvgg9mEKx0wFWjVfEc+dEkQ1caFWOPJkHsKEyxmotLg/Z0\nqJ1ND0wjIrfs6EuNE13grdO8ARtxAdpqtpN2E3FU1z7V5LTClyr3ZscojGeZ\n780mCvYU38XE1alzj4KoEx0dits2+FA924kpN2rrM2eQAw+i1BeFoxMUnpBC\nQ1wkP6mhEjPb9L06H06g5H4dRDlrVGi9v+vlZDQN/pwT8IrMGUMugY3teIVa\n8OblYDRXfU7zjLf8Dpq3reSuGhZ6yUu//FE/tKU6kObmm3AiI+6NJpx1Sf58\nKXDYlUFLC61VJEkFAaZC4Nozskjz/iiKaHaxBy4iUZgfz2+csQ7Gfx3tc0tO\nG3d21Y2GrIy93uCGwXbnn8CvvXe0UeiayVx71LU5DpHVjm2fbnZwORWe4a/t\n4v2/6U97n54Dc7LkBEfkSrp7IjgMR37urxw7UuiYiFAMN1C2iNGUZ7tIpn/U\n/qRsHGLrCd4c6nEeheFyOO878Y0+seHwA6D1UM4mJI36mXfr9SW59zdnsNV3\nzU/SaL1QAwRLSzAXkCfFnP8EUwROKVQTxc7HRA3+xvPUUD5MHTzF0pHnZMcB\n9EYjh767eniXcc9cspucZDv6iFH8nqZsuECvMBy1CEJiUeJWp15Kl6XavTaB\nvm+U\r\n=ipd6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEEBE7PlL0U4z9rCAdtmu8FOEMlTsSj7nV96qYEDqqUfAiEAuKi7fjD8hfGsYyaC/E99/2C9yTWqAiDsbH4W0eRCFp4="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.4.2_1592596418744_0.6809396801300114"},"_hasShrinkwrap":false},"0.5.1":{"name":"make-deno-edition","version":"0.5.1","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"19f0dcf11f4ec98334cc05a629bdc1642f0b285c","_id":"make-deno-edition@0.5.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-wA1qj4t5XXdWLu1SJBHiOJ8i4rqpL75yWQoNGaABpqlBfSf3E8CKXd6O4TZe1TqSXJGjPS1llFyuKG8a1IhTzA==","shasum":"460f118dd860eb6359fdfb86375637843e32f27a","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.5.1.tgz","fileCount":19,"unpackedSize":61374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7RvLCRA9TVsSAnZWagAAAbcP/2JiMrMU2X2nqP4a3wOf\nphr8P1kAzFc6l7Eowt/eocrqxQ7gwxGibHQ0O37UjYi9Xzl2MDr0Qp8pdCJh\nvopR5PtRTsAU9FLYMkpGA9jez8jwDq/hO/12qlLyH+tymljy0kWZxcqp4hT4\nQeRFrzP9R3B5KdKTqTkxkwjWhgOiV+d0UyV5b+yUu7PRk5V0l/DtHv3Eo2L6\nump233/XoDYkDxphS5UIcv+ONinV/gPvhWMA6m4WgLbI8dr+VPTVlb2asntj\ngwvngkuB8fVVghYmSbPraPi/5IgEkGf+YGvDzmttsBMNspqmH66UYz1m5q8X\nSJBbbfsmR+Ky743tXDCul+bvc90Rc7CeGoPvQlKmfBSetWZc+dPugcC4ihbW\nBV+5okbY42dvNWJrILsqnFJh17UIet+SUQ6eI/D5sJ8i5w6z337Bu1ArjO1D\nv0UddMXX/n91CJvdoMQkJAt0l3SQeL/mHSL1PTYV+bXIbsslll7UQXdALKxk\nIdHZgAOxZyBEeWmDwrkfKIP1FbeHH8JQbEqA8yJrK652lxnmXn7+KhtM0RMf\nPIn7DOGhhwrP+0u12JJTX+kLeHHq5v4sSTyXSRNJUbE5BDK6PpZelk9HODCg\nF8N5+eV7zbm4yZRhLOpZa/tB4e97QEy5vl6o+9VY4XS4qdXbN/DuSpBTGr0p\nYhAJ\r\n=czYm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGn2UEX6luJ7+ozFxg24e0O+X53MAyK/KukkEAlc1zRuAiAmp1EzxqkinswGOtmTwp4al+K5YAN38cPzgmZB3GVHMA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.5.1_1592597450591_0.4413564369371368"},"_hasShrinkwrap":false},"0.5.1-next.1592597450.19f0dcf11f4ec98334cc05a629bdc1642f0b285c":{"name":"make-deno-edition","version":"0.5.1-next.1592597450.19f0dcf11f4ec98334cc05a629bdc1642f0b285c","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"19f0dcf11f4ec98334cc05a629bdc1642f0b285c","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/ambi\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/cachely\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/get-cli-arg\n-   https://github.com/bevry/ignorefs\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/istextorbinary\n-   https://github.com/bevry/links\n-   https://github.com/bevry/memo\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n-   https://github.com/bevry/sortobject\n-   https://github.com/bevry/textextensions\n-   https://github.com/bevry/trim-indentation\n-   https://github.com/bevry/typechecker\n-   https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.5.1-next.1592597450.19f0dcf11f4ec98334cc05a629bdc1642f0b285c","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-boRfzNKAc/DSAvSKGBghr230AvoDrwQZgdwnhkpBWainzgwAtAIjnHiKsSZqxbVUSOZNYRqRuMLCQuoZ7gpZIQ==","shasum":"5d1e746bb494d019d181dec65bb152da7558101a","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.5.1-next.1592597450.19f0dcf11f4ec98334cc05a629bdc1642f0b285c.tgz","fileCount":19,"unpackedSize":61431,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7RvfCRA9TVsSAnZWagAAFsEP/AjCJdI8s7O6Ad3Qrky1\n4Eu7uSGoJ4OR1ftrc0bnGNfxYh9aEGjiQr8OYXD9X01BnAI2lS2ZTJtekzrK\nJO1hfKzJ8pEVx8ZPIlnd/rhEQAaWdboIe4AJzJ1Ms3H/Hr+2xQFP6aKyZHJj\no7scpcHY/sdcPiAolmbcb8W5Dgq490DlBW9zOb4jBj96j1urdXP3SCIolxvC\nxwQDyxzeR7r/ax58mxMu+x7Cyx3XVPM36RjedNdgPAbaF8MuHkryIn4ZtX8B\nHBQLe7fZ+FH7Uy/etaT3RhQ+ck+Gppwp8MsLZlvSfNInfA5EsEgNtqkf+pvy\nkPMx09q3KBv/mJq3PlK16QcI4j9NK0KpkA3EwTlH7v+FfeqnMihKq5HX9E2E\npPeew5MDyBhtorRwG/qGjKmbmzBHK8A59viG6qRIJIKqE+V5jIxrdELv9RMf\nnvv8/9fx9iPgn9ay/SC1AqqdescIrBEhuZ0VwtbGlrpy2Pg/za+Qb92I/OvT\nFV/yJ5qgGK37PghHatc+UpQi8tNbCCEh88ISYYFFu468JkfMfLdFtKpbrKfO\nlfpY/xy/7MS9nKPHEtaFycNP+S1Mk8JORZkITlKO1A01RH49kNZXbASvY3Kc\nWcgiRZcSlvbu49NguvfmXQZN+pSWXiw5h2M+sTGgTPcmMHnIW9JFB2rpGr96\ncuFI\r\n=b4ZL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAxJzIkq7BPGm/ThAVgTcS7HHyk81Mllk/aWDAnq9doIAiBNMmFJ2ZK05V4Ud12eV1ZSALXsPplEMs5cVMO4Wwg4aA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.5.1-next.1592597450.19f0dcf11f4ec98334cc05a629bdc1642f0b285c_1592597471309_0.1758126324897511"},"_hasShrinkwrap":false},"0.6.0-next.1592598062.cb17d2b97c2c47a7fb25524e112f6354bcd42d33":{"name":"make-deno-edition","version":"0.6.0-next.1592598062.cb17d2b97c2c47a7fb25524e112f6354bcd42d33","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"cb17d2b97c2c47a7fb25524e112f6354bcd42d33","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/ambi\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/cachely\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/get-cli-arg\n-   https://github.com/bevry/ignorefs\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/istextorbinary\n-   https://github.com/bevry/links\n-   https://github.com/bevry/memo\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n-   https://github.com/bevry/sortobject\n-   https://github.com/bevry/textextensions\n-   https://github.com/bevry/trim-indentation\n-   https://github.com/bevry/typechecker\n-   https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.6.0-next.1592598062.cb17d2b97c2c47a7fb25524e112f6354bcd42d33","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-ME+gRPbrDVLFV2ttkuX1hgxZoCxxbkJKODUUylAbJhLEQRnnY8+d1YNj8bAPE7by+BusSx2TmcrzVAFZ7hQB2w==","shasum":"7246b5dd408058e44d58e6759420a0663bcd5dcc","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.6.0-next.1592598062.cb17d2b97c2c47a7fb25524e112f6354bcd42d33.tgz","fileCount":19,"unpackedSize":62345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7R4wCRA9TVsSAnZWagAANOUP/3Zz8QRzSeHw/SOgASsu\nsq+SkoBzofQ7ZcboGac1kYSELsjnSPDAFExUVi8P9buXnLoWsiwyHR97b0wj\nfG7Y5NDVZ4zrwx0wT707mf2ddT6Qnbh/FV6tgvmsvQdsqIUFNBHd+bLWn8zO\ny4R/Q7az01yvab8wrmHoGUnyQjorEy2NaIywsc3LcXtX0Ins0v+wqndd8Zw2\nUUUIao2su//bBlH4rLQnp9DNwRMPl1PTyecE4rhHYlbRYcTdayjBTb429B0P\n2h0WAEBqYt0fXbYFyfULnV8U+EYUX+4LOoD+ooQQH3JAvtceNbdfvKfHn0hb\nY0kU6qWET3xgTk0wvHxulnZ69VoQ686/w+m2L4cg9WWzpPYFpIGF/fgI631f\n6lGGyYJWOROIeoigUvt5cjmxA/3P7qMUH/hcvrIZsmkCuUPjUp+MZfE9oJqo\n7aXEbnc+s9Qwr/lhFG2LB9H+ZnWJrlYyw2L0j1dQRfN5NauEG9tvQd7klufF\nyVdkM7mkyBPTP0hvQxyGPH3FocKiFlhV0SrNPh4nuAIVfYF2LZ3nt6ytjjGO\n+eN08b6mrwF/f4hcj9toDTBLTYvgNP/aIPRCroZ3cyYtmEKN7MyHkEamHS00\nWuKWOJcKLtEf6hWvS3xjt8iZl/suGXlVOU9SHh59ap5/J9uQr3HC3SpYC0Uu\nb4VA\r\n=lruf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfB9KkGtRW7ETKIN4OluGMBYygG1RcTtQESzFiij6Z2gIhAO1G2nAsYn0V7aGF1tM96BwsdFyffJGucgmy3VFM/Pf1"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.6.0-next.1592598062.cb17d2b97c2c47a7fb25524e112f6354bcd42d33_1592598064119_0.3406355056060799"},"_hasShrinkwrap":false},"0.6.0":{"name":"make-deno-edition","version":"0.6.0","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"cb17d2b97c2c47a7fb25524e112f6354bcd42d33","_id":"make-deno-edition@0.6.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-pT5eFPv4Uk2xR5hCszfk1zUbpvpod+KtghzkHM4IrwFNQWzBhmtqhOC7XuVksDa7LG/JzDtGbNW1Su+2BXmTMg==","shasum":"ce25681a54e8b85da2fae5d086a86c494d868a7d","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.6.0.tgz","fileCount":19,"unpackedSize":62288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7R40CRA9TVsSAnZWagAA+cgP/R8Yhq2dT2+0bTbJq6d6\no3/J07WYraBngS3YR1zc0vf3sm7VmgTmTn/DpgGIGTYECGBpoUdMxErSsVqn\nmKue7p7g3C36urtvXDvVMo8GZ50+fqGfGh50fc7ZOyDCfXZPpU1woVaaPFaE\nH3jYe7yaOh37Rc6UB303sYeo6Th3dE0cw4SFK+Dom09qCtEHfO1yYaygPRVo\n/ZuIMmWHeS2//BS7luJoY08EQn935ZWeIdVUwhghIHwGZM4e4bd7AQdQ5TZs\n7XY87GDvv4pC+h9umtw6sFDlNZ7vjaUI+gXwU101goVZVnlZVFe/h/YKqBpJ\nae6NzTdqVcnuBgLZRgujcW+h71apm1BWl9II7HFYQ0wiwtdeEbv66wJtpyTT\nBQ6No+u36Ogn7qiRnFF9RpvLxFGzixMksMuHtmmFI3ZEE7unb7fdJZStblIW\nOJOotdZPwNqcAMZxTLaHHACq0d66GOzRjBAeUa7oQgQmXJHQvA8fqY6bwM07\nXF4ZsiQ9Sr3HSfH7A3b/M7X+EM74ntlMYTVZJbK22AiDPXHgsc1c3dJc+85p\nr1KarMW1PfHfqd87A5yqfKtaaQEShgzQErrGphByI4PQ3KJrZ/2OGCM2Dshe\nkrltTePlfHgfal9BwvLKS8jNrtnW4FaFWu1TeuQ6TX0kAvoHXoaXgAmon0DV\nxCet\r\n=OsF1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDynBqAm15XJ1Yhm7NWDPFtbxLH5NoYIxFPdLIXXk2b8AiBKgL5iG9fR9WbixC80KUQEBrRjOUekth+MCCgssxjExQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.6.0_1592598068244_0.0404752472105081"},"_hasShrinkwrap":false},"0.6.1-next.1592599251.f23b666a8e9cdf07f8e139525931f121d2ebe969":{"name":"make-deno-edition","version":"0.6.1-next.1592599251.f23b666a8e9cdf07f8e139525931f121d2ebe969","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"f23b666a8e9cdf07f8e139525931f121d2ebe969","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/ambi\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/cachely\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/get-cli-arg\n-   https://github.com/bevry/ignorefs\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/istextorbinary\n-   https://github.com/bevry/links\n-   https://github.com/bevry/memo\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n-   https://github.com/bevry/sortobject\n-   https://github.com/bevry/textextensions\n-   https://github.com/bevry/trim-indentation\n-   https://github.com/bevry/typechecker\n-   https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.6.1-next.1592599251.f23b666a8e9cdf07f8e139525931f121d2ebe969","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-oy+W0SHJ63BBE7cWcFK/5ygO5yuiDEXhZeebU+cfubjRmJekL1xGKdkPbWA7pMmmr9D02Xf9BePfAw+CQaA3Tw==","shasum":"44b0d55ea2f3457682b3fa140b798c4a0891da02","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.6.1-next.1592599251.f23b666a8e9cdf07f8e139525931f121d2ebe969.tgz","fileCount":19,"unpackedSize":62400,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7SLVCRA9TVsSAnZWagAAoPcP/0Qqog+bo+GW1Z8PJPcN\nwi4fAjnVHcj4OLqyX4CP+VCn8Qf6r2ZkRen7MwE5hcUEom13dCkjyc6WgVJ8\nNSxR7z/U6z0wZi5yLYTigrpwqiDHFWuLZrPPNv+JhspDQUyAWUjJ+WXUWWn0\nV85LXX9Zris+d17FuhQo5BoySCVsX3xfhnf0PtpPkKBJgBv+PHk5W2AfVUOC\nxIRyJ3xQqpuZvDjQxhlFxlaZJcyJO+XLKkRIMh3vFsDX3f+EIBsgUfKuMGNv\nqh0exhF5Q6SamsYt2CUsB33mqtF9jKi1+NJc7AVQIwBV4h6XlTe7sjLTODwU\ncljwtm7Gs9Bg36X4QjqVgOcpWlxallYBh6TOw7Q0XHTr7Y8yyl8gNVGy/fFW\n5YJgZQxqXjxa15kvXbFZ68rPlmmzWEOjoMMWI/QzGNucpmlQcUtT8lhhFMCV\nYKK/97zKtsBXNJADA6sdwlpmifaqCFYLV7VfyBlFsYIZrErC52KZQGRyd3CH\nQl8UKQ8tdA65M8p7IS0d2q9h/ydwSqR1aJ2Y2kUuqwfKHDgzt8nO39jWIdq+\nBbyNdT0yyVc+fU9Vak7pIPyd/McxzcwEGcrnVszGtuKrfjrJd1ll3S9oROXS\nkb1H7df3Ae/jKwsub6fajVTi4lXNXkiWLEuls5EaFCy9YfruluSGuG9/ITCg\nJY6w\r\n=AYRC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF1WjuoCcw6lNY2zeLIKbjzsg73I4X3HVtcqkTRdY5GzAiEAtKnxV4iyDLHsfIo2DCijqTTWdRxX78w1o1CEAZW7Ggo="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.6.1-next.1592599251.f23b666a8e9cdf07f8e139525931f121d2ebe969_1592599252610_0.1825475993807275"},"_hasShrinkwrap":false},"0.6.1":{"name":"make-deno-edition","version":"0.6.1","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"f23b666a8e9cdf07f8e139525931f121d2ebe969","_id":"make-deno-edition@0.6.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Scif3noTeP5ta4p46x+d8CGwkXi3UZTWslADQizMCoJxYwHPSGG7IzA4mIGS3JUJP01ne1IumFOBg9dkP/lYFQ==","shasum":"93c48158e377fbcd7883c0e282a2ff103078bdf2","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.6.1.tgz","fileCount":19,"unpackedSize":62343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7SLfCRA9TVsSAnZWagAANosQAIWUzE89Clsz6QZFot35\nq2w8vgvE/DqwIcDkkIJPnODo78XWCdndge/rY6PqaeHLKP/vidaQeJ+c7rM0\nOeZsxDsFmJRO4aeaIPMG13Ii+RKP28kqVdOn5m7GiC3lfodRjDWPJg0KvPPz\nEtnQ+e5dK6CTZzQUB4g2pa4AMhDTMUeR+MpGXzopYxyfYaAqXIk45sID1hWP\nFukey6ZFfve5JitE41RvZ4Rx+WztEGbYwBHWckCMlII5zXAPEVaEu36lsiTp\nZwF69/NA55sV+9r3St0V4t2aT2PB1y8/kvyZ1Cc/ig6zaYgGWonfngOMvJ0y\nPLh5OqMcxpmMEapNp503ZpflzEgV64Hw4McnFk7I6E43TLG9cJIokRe1Ud9M\n7w6DogvgeJQmQhKJ384ARupu8eJ8Iv1JGo3cRVds0b7qf8HZGaKE2NRQqZCF\n0uydxlznmH8YIZ5zMKber2K59YtLbVX/+0jQrIYnl7ifoomYNW8nw+6ckDZ/\nbBV0riue0umSpEuX4CR+nzos1bVdZwaFS+lGkAlHkp15IjPJptDqjrpPOl/x\nd2D2cB/aZhPuAg2QAauYW8zPnASfdX5vpVaoBcWAjA30XdkXmlXK8ODntm8z\nL6GyxqSymw4M2+7naHy720IdQHPDOhoSgfu0WkH/y98IvY30WMEcykf/ItH5\ndFXE\r\n=ghFj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcBnnZQrc3YUTAPqVEd/U8a4iVYVE++i5P6Z4v1rU52gIhAIjddofX999XPdaurh0LvnepGlyvc6HPQC+8RHUStzdU"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.6.1_1592599262627_0.309021665259968"},"_hasShrinkwrap":false},"0.7.0-next.1592606758.8b74ba681234d57cba6c77c663f720e41face75f":{"name":"make-deno-edition","version":"0.7.0-next.1592606758.8b74ba681234d57cba6c77c663f720e41face75f","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"8b74ba681234d57cba6c77c663f720e41face75f","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/ambi\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/cachely\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/get-cli-arg\n-   https://github.com/bevry/ignorefs\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/istextorbinary\n-   https://github.com/bevry/links\n-   https://github.com/bevry/memo\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n-   https://github.com/bevry/sortobject\n-   https://github.com/bevry/textextensions\n-   https://github.com/bevry/trim-indentation\n-   https://github.com/bevry/typechecker\n-   https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.7.0-next.1592606758.8b74ba681234d57cba6c77c663f720e41face75f","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-6hOISFOcFu541AOH/i8VM+I3SKqY7fm5OlmdW//U7Wtb7zIfqQz6rvjLYjB237oCm4+l59NQyV+YAGyF8BvA8g==","shasum":"cc6a393486f952712f8ce9add2e4ccaa3de08e9c","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.7.0-next.1592606758.8b74ba681234d57cba6c77c663f720e41face75f.tgz","fileCount":19,"unpackedSize":63712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7UAnCRA9TVsSAnZWagAAzUgQAIHIC2y/vrj6V7ckPofE\n0JlxkjjwjzeDUkVDM1LCjPPpbvXmClQ0iPzebo1e17pLbRLuLLJS3ZANC2bX\n0Bbb43BUHHo8s/XlcXAuJNTubAXFfDc3DtNbsPLXrKA5W7u0KFX+K8tQRSax\ngr4F7LEH0tkhTMSmM+m2X2fqCgxLAMDraxS/fuHKhwQxLGvqWGqbznuKblK7\nPNmUUWvlAvdmpTrQFutclJyYAg1NGMezIk5YoLKccYCkfbH81+8ZuoZi5vLE\nxfc7Zb7luR87dtleJ37Rrky/4M4Qo9QSb2UKIHlNYJ+14KU2tWsE9sZReVPp\np5PbUqHz841jNJGXPNYGn6PnGqJ508cvFO7QkGAgy8uTsUdO+bnnOU3Inr2k\n1Baubud6yd0Ck3tOJY9MLdPI7jMhl9L6BCj4Ne/Tu5pjiR7sgX3/06AwfG2C\nxgfslwo7DkOORUCRm3+fNM79F9ZKpGiigZEmZ1arQfVLTvqimiSjw/dpA/iY\nk2k2XPAfBBffqcDmHZI4Eh412tijcdOS1WGf57sBysviJ13O3vTlrmoy4A9o\nWkfIddw8ah2s1HyW2glkZauux1wQn+b0BUHYZ0EIlEc1WDz4x9hLFAYeT7lL\nLL95mECB2ozvZNNYnUGIf540+aPd5TvXPmh4K+TR74ndCq4jBtI0EHLGvBHO\nlAQN\r\n=btiy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkpVwQI7VR0DjBZHTW7lub/OKA9RjH6qEfGvdVeG3RvgIhAKcrfQH4/Imf4dZjrTpmHKyJ6GMl+ByN0YLKsL7QLK19"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.7.0-next.1592606758.8b74ba681234d57cba6c77c663f720e41face75f_1592606759408_0.3700517834354702"},"_hasShrinkwrap":false},"0.7.0":{"name":"make-deno-edition","version":"0.7.0","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"8b74ba681234d57cba6c77c663f720e41face75f","_id":"make-deno-edition@0.7.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Bdn2adRvV9pglOjLb8390Ydg+ijZpBlQ2u82f7abpq0qPkRtGUn+4biEyvcCcWTECbFYL6ZR85t8h4Dh9EneDQ==","shasum":"9d0ce5279cc75e723760c9d3fdf9ba87f95c5fc9","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.7.0.tgz","fileCount":19,"unpackedSize":63655,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7UBACRA9TVsSAnZWagAA5L0P/2BwnZkfqphT/3p+GZfx\niXIKPLPayfikcTJRIqPoDNmGZ01TFpHh/KOdl1Abt5Kzhqm1kwyMI0XHKM7s\nv0hJfDfgJk7NezbAZp0TjXs/AcYkGZ/kHCcLFxTJ625c+K1s3j2VfK2PbdFq\ni9XoLYr5kdf12dngDhz3g/+8fPwUvXzkmAroXzout+wSR1ahB6Xsc+iAiytg\nimq+7AlAR47c/dvxbM/9C95TNAIq05EaLiWBFDswrRCejfRpP0IjguI+jKMQ\nf7GOjQ+8gWy3IeEbZiMMz99JxvSB4wt2jd84nF5mAfxuAEdMeUwTafGNq0XY\nRiogJ0MaxcDPdeKIFyPJfZbqqybH14HIk5a804BZ/kWP99/MiH/QOilNYZ9n\nGt7iONC/JrmUtWJmO8dQZV5CNeAgXsO6lhnLBzM/VgmhNmHtc7oSzTOrMm/v\nbmqPDvgenLguWG4s55uuCCwhjW103EZXksfyDyR0xjbJDh3ql4cXd3+4z08J\n+8c0pesepmeDjIjRb/402/A5JjIJktI7FYzjelWfZ+slHdFKzWfpQ7FJUmDF\noFeoDIE2Ug4w9HomompthoZmbsf7sG3KRcI6t7aFI4uT/ds9riKtDjQlC9a3\n4FFAuVvCZJMK4mCv4xuPhSUWjlBOEKMULZ1VXq/9+Ua5ESCcQwS+GUBkcJJR\neQoD\r\n=SrH9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIClTgppZdDFyziQwEwd9mLNC+ASvUg64GmkC6SR/iRgfAiBfAasWgPZJE5FGRWJFN8bsc4prva21IVla1tzYvL9p+w=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.7.0_1592606783694_0.6583751066642927"},"_hasShrinkwrap":false},"0.7.0-next.1592611911.e6ddd382e68d0ac3faebf1a19f892b80e5d3008f":{"name":"make-deno-edition","version":"0.7.0-next.1592611911.e6ddd382e68d0ac3faebf1a19f892b80e5d3008f","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"e6ddd382e68d0ac3faebf1a19f892b80e5d3008f","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/ambi\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/cachely\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/get-cli-arg\n-   https://github.com/bevry/ignorefs\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/istextorbinary\n-   https://github.com/bevry/links\n-   https://github.com/bevry/memo\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n-   https://github.com/bevry/sortobject\n-   https://github.com/bevry/start-of-week\n-   https://github.com/bevry/textextensions\n-   https://github.com/bevry/trim-indentation\n-   https://github.com/bevry/typechecker\n-   https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.7.0-next.1592611911.e6ddd382e68d0ac3faebf1a19f892b80e5d3008f","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-0w9ga1udfjxVhZ4ao1gOY3ULYQj0OU68m3L2mrrf3l0G0/+2X3gQwiKOIWoPzVSV5DYPG/XqurASrMV2IhXHCw==","shasum":"a5df0f3ba2908e6ad1c456d54be4773829253ff7","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.7.0-next.1592611911.e6ddd382e68d0ac3faebf1a19f892b80e5d3008f.tgz","fileCount":19,"unpackedSize":63755,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7VRJCRA9TVsSAnZWagAAQeMP/2qFiN+VjPc9l0rjzT1j\nfhVLEK18jk+ErRAPqdyNiGW0ZZHpkrmghEYNsGX7/+Asb/iYoCveQkd43/r+\nbCkTre1lx8AK3T/rdBxsCACcbT5o8g8Pl2BG1J9Z3YlIpTLSSwiuNFFfrRz9\n7/fvWDLpRsTD/6SKCX44Z5zfUCiyNoHKRLuaN15Fs5UA2iBNqbc9xiEUA4v5\n/8SaGBXdosbfY2Cjpb7EOf7OnxQ+vpMOUa/DOqBks4Nn+NBY690gwhCTt2zv\nOPsiXRBOMM0PhGwfxoW8EDbsPJPf6Uz8aFhrdsPsGQ6Y8pONR/abQ5o6Zg7P\nwMOgOL+lYmmx/14/5gPco4hWiWJLoo3+YQbKZs3sap6GbXzloq3UuiVIunnD\nuWg1okVbu6uCI6LkiyVMFhxFUSiz4BOy2lnaKM0ls9wH/UYLdnPCoobRtEuj\nZyDBsFSO6bm41z5rKiJpT0FGoi5c95E0eXR24ohqVAgzs8ia+ZIxeQF14CG+\nyJklR4aXZuff6djd0N0WDOuH5gKlOPsrU6bZ9kwiOFlR6ASG6/EMiiUCqyYA\nIE4768YMkpGwwehTwAilb0DEdW41xvMQT2WgRQbqIFChRER00ijaICPY8C1K\nS0l2GhPuA+jeOpodU12/Qcc4S5lzVpRY+LdD4xzKovBKxotF3PhIWpdErDP3\n4tHk\r\n=qbNc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG9yC9JGSdhxQK33SUCMv0KhfM4DvzAeInMtWLH6ZHjvAiEApX3SOucWxIYioipKEzcWDBGzc1zhkY6c01f6kqXM93U="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.7.0-next.1592611911.e6ddd382e68d0ac3faebf1a19f892b80e5d3008f_1592611913068_0.10169092315047168"},"_hasShrinkwrap":false},"0.8.0-next.1592613105.54e21793f099409e69e0923b45a9e7af0d54389e":{"name":"make-deno-edition","version":"0.8.0-next.1592613105.54e21793f099409e69e0923b45a9e7af0d54389e","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"54e21793f099409e69e0923b45a9e7af0d54389e","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/ambi\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/cachely\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/get-cli-arg\n-   https://github.com/bevry/ignorefs\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/istextorbinary\n-   https://github.com/bevry/links\n-   https://github.com/bevry/memo\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n-   https://github.com/bevry/sortobject\n-   https://github.com/bevry/start-of-week\n-   https://github.com/bevry/textextensions\n-   https://github.com/bevry/trim-indentation\n-   https://github.com/bevry/typechecker\n-   https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.8.0-next.1592613105.54e21793f099409e69e0923b45a9e7af0d54389e","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Kp/O8NB7falIuyG8enEHRWhUyN7gu4vJAewOiP1iP+rDoWZb9EONtIWiDfc9E9cC3ro+JbQ5lecxN3aJL8BHdQ==","shasum":"6da643c13c622e0a8bfe4054f9a43311144faef6","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.8.0-next.1592613105.54e21793f099409e69e0923b45a9e7af0d54389e.tgz","fileCount":19,"unpackedSize":64858,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7VjyCRA9TVsSAnZWagAA66AP/05neguAntAHDnr7EBcp\ndlhZQbXlm98l5KzmFVTZDOH/deP2n9k899OiXyzV9ce+dQA9jM+FOSK63IdF\ntPcVteNd8vi4M9IxX8PjWtS9ulS4X4y/VQQxIHftTT8ow3OE3gN2RHuOetLo\nDe2s0rkwcVrKZx6cBdlSleV0w5oj6o06qKJZuukmV+Iiqx+ilWKYuur3bosf\nUeAS0XqD0PQfIKg7G+J5qdVJE2VnC6yU2NTVMvM6tVlesvqglwZW5CfH62uX\nMmG0OqU7Sp8TUJkXE3PlpxlLS8at9VToT3o2gWmra0CaUZidg0oc5Z0xAvml\nr72Ve3zZ8YKoE1PizA4zM6OY4Bf/MDmpBmu6mnJTEYvb7QI+vuue2Tt/qq6I\nwckAo5z3UwHq1SMjG6RYx4k4L+7LSGEELs5sTCnb5zjeOb6uzDwav9OXYlec\nR7baOPJxmWax/WsBdJcloBtfdlgo53COvTONlk2MgM9Qk/0ljP9mDreteLuZ\n/ihz5DlXWEqeKCloJBtY07NkJNPe20WaMvMvhWlRSeAnOSCdthgog83OYFWs\nwXypvKT/jiUqZvLIOBIEbSCfo+VkgLLTne3uCgzHiZcyFdn1oD7rnPOOqAed\nz7PnZsutCNomnyyyTJCwLsZa9JdlpMc+sEMeE9LoNPJ0aCOe1Q53sMsUKnxC\nUGmr\r\n=99M3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAbgX6rWNXPaCG0gE7+GMox6qQnv/D4Wsu104rB69FRZAiEAxyEyupd+qmypqPMATPRwifSYcL5bHNJ3MjgvrlENtr8="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.8.0-next.1592613105.54e21793f099409e69e0923b45a9e7af0d54389e_1592613106362_0.6668876427444241"},"_hasShrinkwrap":false},"0.8.0":{"name":"make-deno-edition","version":"0.8.0","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"54e21793f099409e69e0923b45a9e7af0d54389e","_id":"make-deno-edition@0.8.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-16rLA/FZuMv03r6CJif7T3uWjNNFMH9r97QCcgkQUT/KHNs3MgMgfwYQ/vztgSnmJmUEah3KAGJ3I5bJkzYWrg==","shasum":"f042dc90c976e0b6e62d54184b7396a49074a0ef","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.8.0.tgz","fileCount":19,"unpackedSize":64801,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7Vj7CRA9TVsSAnZWagAArC8P/RXVRxycaZwosdk+Ulfy\nO4w8b8imwp6NdVA2vt3PoN5ilrETW2vvhHRpBxhcEiDys8H+PzXzOFEz0RWR\nB1znSOmVnqu6bnhF4rSzqyK+k6vpPdqltnmVJi7jefLnCgADtWH6PXzq9Pbs\nepU4SOvNf492bqI67zXq/10UTZI58nVEs/CK9qxPs0NaUQXRZcygJqwDT45Z\nCktacgQP6RYKLeTMoptc0w/toVTs9aDXNhzw4iaDCYUnk/J9TqT2T1Jp5NSb\nMKvnkjhYe5OJ7FSZGyMsPYQcqjKidxkeMYc00uTZm7ziryWcG45C8PCfwyqK\nwd5JOrasrxkAtHQ6TNHgbSFBjwBKSFuIDXhoS0fQTNJuGk8W/Fkpb2WdKgnN\nBgHhwL4SZWiHyOVwDYKrarHrY1yIFirdpWoaHCZf5rBWmXrvUlLnixqPdks/\nnvbLkHGssoGjCDHcbX1Sn/SxnJrLvx8bZ9iDTuB9b6zmTMVvyRoCxg0P33uo\nZRKYMA9YcwDoEj1XXrZagyeiDXk5D7AN2vx0tll36d2rXqtHZYVxGe5YjvPw\nEaQzJjzQIP63LqdW13UJ+atZEzVP0dBI5yP63Bh0ytqd0mCl9X/xvhINZ8N/\ng4c1JuE+Yhj1xyi492LUsteV8Q5D56l+2X2tM3ianb3ZWCCoMAcWzrzl/jk8\nlvdZ\r\n=Dza2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUgXkvJ9silz+flEq8l8McKXFyE9yxtL5uvjD6bhFGnwIgdkk9KTCz0QUXg1vIPTC/UZwxNzAQe7SJUOkppS5MMXA="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.8.0_1592613115382_0.2847766825751288"},"_hasShrinkwrap":false},"0.8.1-next.1592615612.63555d353898c7931c148d0d4091fd4ad88872c4":{"name":"make-deno-edition","version":"0.8.1-next.1592615612.63555d353898c7931c148d0d4091fd4ad88872c4","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"63555d353898c7931c148d0d4091fd4ad88872c4","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n-   https://github.com/bevry/ambi\n-   https://github.com/bevry/arrangekeys\n-   https://github.com/bevry/badges\n-   https://github.com/bevry/binaryextensions\n-   https://github.com/bevry/cachely\n-   https://github.com/bevry/detect-indentation\n-   https://github.com/bevry/envfile\n-   https://github.com/bevry/errlop\n-   https://github.com/bevry/fellow\n-   https://github.com/bevry/get-cli-arg\n-   https://github.com/bevry/ignorefs\n-   https://github.com/bevry/ignorepatterns\n-   https://github.com/bevry/istextorbinary\n-   https://github.com/bevry/links\n-   https://github.com/bevry/memo\n-   https://github.com/bevry/native-promise-pool\n-   https://github.com/bevry/normalify\n-   https://github.com/bevry/oneday\n-   https://github.com/bevry/remove-indentation\n-   https://github.com/bevry/sortobject\n-   https://github.com/bevry/start-of-week\n-   https://github.com/bevry/textextensions\n-   https://github.com/bevry/trim-indentation\n-   https://github.com/bevry/typechecker\n-   https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.8.1-next.1592615612.63555d353898c7931c148d0d4091fd4ad88872c4","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-ZstfyqceO5r7crcYN4dDjx6+kTm3Xc+OwCfglfRNaUTqvTR83bNt0B3Ph5KkGn/Hj+zYabgLqWu9RHD97JaEzg==","shasum":"724ba49137ddf8a941f632c76ea23ca44f86dcf2","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.8.1-next.1592615612.63555d353898c7931c148d0d4091fd4ad88872c4.tgz","fileCount":19,"unpackedSize":64963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7WK+CRA9TVsSAnZWagAAiSwQAIJOYpYg7Dg0HUumFwCt\n/fjPg3ZY/j+7HEGEiQJPUuWwO/jn3hvc8eo8vfv/QdKk6whIoow7VF7xNlDP\nWo1vnpdz+8v/XwsRE4ToRflvTWiCDLHtbApH1cC2044cl4SCHeZl5g/sOBiv\n/8iBzCFAzqPn1pXqNiXdMwpZrgnEWGTpgAkrUbKgjdJc+RNjhZ8hP+pYYObT\niCGnLfnigoiLrmAnwYj3fr2NPGRSMXpNpLrF4lOCR7gsxwpSgXfC3cgpK/7+\ntyZvU/IVcS7ulyQqUUCIEpoSGxA4F8mePVCCO5J53dS43ybsyw5kSNPARxA/\nEyTZhjXXs4DBI91o6ig7jwdfiZt8U7KrCBKc00ZMQAKEglJ31t5c09i05j1v\nMEkLBAlrOtfI7+gHpd8UOv9FH2raFaXePUDOYjveGTJo31AAlZzCJcLBRJM8\nFugihWF148wfJjZqpWOi9PRMNXGYVJU8iIev2FNCjv8T9+TM99NC50aZ+VDT\ncVNxM7/3E9k50DbbZUAEXChJDUO0tLvz05PsuJYOgORugWZB7GAsQbddHmFT\nYfmCOblpXJqGEUkt+X2uoLwJ7x+6ILVjoOZO/b2UBycd317nSmIQHeiXr3hW\nZOhKQ3oXshAVUo3MiJU39lkbJ/AS3Wt/ZMO3kE2Q1gnG301f/cHBDLQBH1Yk\nbvYY\r\n=ji8I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0BP/aqzMEzZ8QBqjdCmqvV0whcY8o5fw+GIYBERAmTwIhANfk7JZW5+W9e3tR36b2xRbs+bGeNBy0D9ktt3DEWwQO"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.8.1-next.1592615612.63555d353898c7931c148d0d4091fd4ad88872c4_1592615613650_0.2753867050232859"},"_hasShrinkwrap":false},"0.8.1":{"name":"make-deno-edition","version":"0.8.1","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"63555d353898c7931c148d0d4091fd4ad88872c4","_id":"make-deno-edition@0.8.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-neKxQ6rkV5bs8SJSniKFcxJLZO2swbCGS2Q1ZJqkEg04FAseiAx+MrGVcbmCd/bnuFrFtaJ/9E8BligeMEBiEA==","shasum":"175c1435db17d27c4242d83d5d29be85d2d12bda","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.8.1.tgz","fileCount":19,"unpackedSize":64906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7WLHCRA9TVsSAnZWagAA3L0P/i/x58rXZL1sXmDSMwBy\nx+oxRTPjb6DwsWd4jpYWNolXwZslt93/8OP1PzYdv2pMQ4fPkUjt0RGb/yl6\n4VC/GPYFm1vL8CuAdM1Yw7DblJHmV63W02Ip934QWZbumknYJqRmP7I3JEZP\nhtOEFn3RdZXVsy9/Xm1UUe4V7SR+7jOBQEuUZ3hF6fYW6ZjLMRUTPx/FKzBM\nGzEZhuqignAvH8ubNTpEWxjRIGUgSctGF8u5AXUjHFCUPI9bkPBIX0OMv8L1\nVwLv7h/03YVgDniJlVCzJ2MpAQpjLECcMr3prb9q7JoD3LlzHHs7b7JOQFQO\nMbWWWJw5RPnxbpVFdNUQUUyWqvBi1v/q7LmG72PzDreiat5Fc5q8Ak6ueKRd\nhuGDnJujmJWqXMdja+8iInu1myDh9+hnklbyrQyZ1jQJSfocCwIEqtxiq0ba\nOk5u5UuiTsv412BmDQPxiXouJeL84qi8vstuajjAeoXj1xB6h9sSf7YIv8+c\n3GjUdzQKfQOHjLsdCZH7MwG1AD1puRvWEwF+so00OY8y2Q8sl5QBxFNAphkU\nO+th7JOM8p0OGKmGqf545FXtto2LkHFqX+rQlPS3mdixQsxvdzFeW938XLwp\nBh/38mEZf30u0Bkh9gEx/ygF/TVaTLh5hafeDz2xznpwMzPOyRGPCVt151m6\nh6NR\r\n=qJaP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3p4W0ciY5mlUxeLGdzjgedvogpRTR4SxwgoN+L1ZiTQIgakqZEtsueoeNS/+yqO8K72UUrl0G4iTXP+FLVwQLnh8="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.8.1_1592615622701_0.3496140732404853"},"_hasShrinkwrap":false},"0.8.1-next.1592617734.cd428e2af86e1d5e57bef8bd4a3d15cd3604d478":{"name":"make-deno-edition","version":"0.8.1-next.1592617734.cd428e2af86e1d5e57bef8bd4a3d15cd3604d478","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"cd428e2af86e1d5e57bef8bd4a3d15cd3604d478","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n1.  https://github.com/bevry/ambi\n1.  https://github.com/bevry/arrangekeys\n1.  https://github.com/bevry/badges\n1.  https://github.com/bevry/binaryextensions\n1.  https://github.com/bevry/cachely\n1.  https://github.com/bevry/detect-indentation\n1.  https://github.com/bevry/envfile\n1.  https://github.com/bevry/errlop\n1.  https://github.com/bevry/fellow\n1.  https://github.com/bevry/get-cli-arg\n1.  https://github.com/bevry/getsetdeep\n1.  https://github.com/bevry/ignorefs\n1.  https://github.com/bevry/ignorepatterns\n1.  https://github.com/bevry/istextorbinary\n1.  https://github.com/bevry/links\n1.  https://github.com/bevry/memo\n1.  https://github.com/bevry/native-promise-pool\n1.  https://github.com/bevry/normalify\n1.  https://github.com/bevry/oneday\n1.  https://github.com/bevry/remove-indentation\n1.  https://github.com/bevry/ropo\n1.  https://github.com/bevry/sortobject\n1.  https://github.com/bevry/start-of-week\n1.  https://github.com/bevry/textextensions\n1.  https://github.com/bevry/trim-indentation\n1.  https://github.com/bevry/typechecker\n1.  https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.8.1-next.1592617734.cd428e2af86e1d5e57bef8bd4a3d15cd3604d478","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-dtXmsn3zxmLDOu/hW/zLmcD7TyVVCrZiyk5V6sJiD+9v0o9ahjSWa3e+IOHRB4LC9jShDL6swQtyVvxcQUxy2Q==","shasum":"b241324b21441d9b4bfff3690c74cd37f4e99d19","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.8.1-next.1592617734.cd428e2af86e1d5e57bef8bd4a3d15cd3604d478.tgz","fileCount":19,"unpackedSize":65037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7WsHCRA9TVsSAnZWagAAIDwP+waY7lEY7/MwqR1QC+PI\na6OSGkWSijeGzwB1LAEs22Kiuw+BwveivuXKdG87xoTmVPOyuSJfqQoB57uL\nJwEaDGFltxr9wsKf7TL/MuyZGoNYqizstK3Nno9iAsJCJbP884om2yScHCen\nNY6F+WAtOtxOKhApGjSAiNTMsV+7ElU0IZYW01fKwzUQHXyHURmmN26fGdOR\n7HCDswnB31V9opiz1smUuZF66kOZM3fFIcrXc2ENURHnBCqvcJ6Oaf+f1sSw\ndRp9wwFeQ/F/TGHMzD4aQdJvfO/+MEg/nJfsHXGXzU1/MG6/VBZSYZaNa3Fp\ns2sXqmNHpJ6y/OuEhXWllXFQSuM41zoeaw+WTppl6Fpo4Uuas037ookoBwrV\nU6qID0cWXRllZAKX6CAmcl45q3CJZ8THmYiCxijIOPKXIrp8RS8yDjqizuqb\nS5W5OQ8jtpFdo3jXxgr4kMK8o8vQV7f/vo139aWybxSZ34r+jY8zKqCBbMB6\nJjbOSQMSDTDNaNJAhuAfnkMCIGiHtIedIpZ5nYnLZCZ1WoqajtzVrXOz7vSl\nPBHmDsfo+pYpDp4elvOx6Eo6fbRVugzsqSbMffh6iaj38tK6HhxqQW0c5+Y0\new0XNOc+VxxCu5nyIgq5U89rnLY6vKy7RiohlEJUxg/fnt9ZcE4e6aHEM+2h\nuyfr\r\n=/Ji1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMgz9ufTu5Ifz/zteIJ14X7nuVjiFbp9jCoH8MyePDvAIhAKZM3F+Z4NqyemfRleCxRzKelL6g4PBjofySmCYXk5Le"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.8.1-next.1592617734.cd428e2af86e1d5e57bef8bd4a3d15cd3604d478_1592617735295_0.1744576517202019"},"_hasShrinkwrap":false},"0.8.1-next.1592626969.9841650c59607880cd9cd2770da594568815d6cb":{"name":"make-deno-edition","version":"0.8.1-next.1592626969.9841650c59607880cd9cd2770da594568815d6cb","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.6.0","fdir":"^3.4.3","get-cli-arg":"^5.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"9841650c59607880cd9cd2770da594568815d6cb","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n1.  https://github.com/bevry/ambi\n1.  https://github.com/bevry/arrangekeys\n1.  https://github.com/bevry/badges\n1.  https://github.com/bevry/binaryextensions\n1.  https://github.com/bevry/cachely\n1.  https://github.com/bevry/detect-indentation\n1.  https://github.com/bevry/envfile\n1.  https://github.com/bevry/errlop\n1.  https://github.com/bevry/fellow\n1.  https://github.com/bevry/get-cli-arg\n1.  https://github.com/bevry/getsetdeep\n1.  https://github.com/bevry/ignorefs\n1.  https://github.com/bevry/ignorepatterns\n1.  https://github.com/bevry/istextorbinary\n1.  https://github.com/bevry/links\n1.  https://github.com/bevry/memo\n1.  https://github.com/bevry/native-promise-pool\n1.  https://github.com/bevry/normalify\n1.  https://github.com/bevry/oneday\n1.  https://github.com/bevry/remove-indentation\n1.  https://github.com/bevry/ropo\n1.  https://github.com/bevry/sortobject\n1.  https://github.com/bevry/start-of-week\n1.  https://github.com/bevry/textextensions\n1.  https://github.com/bevry/trim-indentation\n1.  https://github.com/bevry/typechecker\n1.  https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.8.1-next.1592626969.9841650c59607880cd9cd2770da594568815d6cb","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-jJBkyX5Wd+ZY4GCtSbkCjzuSmn/uLEIJDU4RHdYIsbleaoqrAlIN+iYfYKd3OUv/K+B1sJO/gwcfM4Va+BJdqg==","shasum":"fa29d25f055e7cbdd37f799775f434b4d6713e51","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.8.1-next.1592626969.9841650c59607880cd9cd2770da594568815d6cb.tgz","fileCount":19,"unpackedSize":65079,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7Y8bCRA9TVsSAnZWagAAWdMP/iR8ruQ+vzZzmRdoJ6+U\nxmhahHDqkqL06GDb/VL7o3rxlEcls5l9TEjtXA53gJTgRDVo0BVjvoUCkv5B\n4tfT6x49ELXSVLIGwzHgO68GcHsBsl2PVmgDGiRRWAvXlabN2H5z0Sws3/wR\nMYUdcbiIASbCcLCDEuOTLkj+DVHUAvsxjqNXlTLKwNLXD7sW2fTfENq/JOIC\n/NEzDSo/VKhk1m0fRdTeJ7idNv2+3ZZUexKsnLt1aTnSwkBpZ9ppJ4/+1N31\nD/DVyXjvchZKoVdeYlzeSc0JEhdh4g/XK5h+al4dKxPpcdEI7NrNamVBm/Hm\nm6Na/uYpn/SAqXx0w5kv7oVbWsmf6U3d9S3f+lwQa/jDP/pl+Lp+HCWdi07t\nCF8f/gAUzP+IIMyLXCIccuzvpm03FwiaMZv86HyOW21UkmtgYLBnm1xF4vL7\n6VFwYRAr14WtG0ewyW7DwX+pIllDjzbSISN2uyrCWHlRR+tBRkP9kc0zP6+v\nz/kB/L2UfRsG2liMl9qIdB/rko1zTvulsxsHghk2eBKHf3C9JUeJemF6fFv8\nWlOI47YV0hTpNDkzmktC8CHla7Q2NexwRMfmryZPrlHQr18rDYgw4i2euTRZ\nVEXNXx6RLj39fGly1oF6tLaObOSdHyOyQHl2lm3E8wEjya+KUAl1ZuFd/QG0\n84os\r\n=FhgP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbMGfjQ4QSxW9z1XA7uGe3RE/KIzO2S82GB31RVAcQdgIgSPPn/KlvwScikWjxZFXe4B1Kt3GMOKCUmt97+KWQMCo="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.8.1-next.1592626969.9841650c59607880cd9cd2770da594568815d6cb_1592626970625_0.7790116007521368"},"_hasShrinkwrap":false},"0.9.0-next.1592628745.b5a825f71cd4f09125bb04f55d0d46d256fc3591":{"name":"make-deno-edition","version":"0.9.0-next.1592628745.b5a825f71cd4f09125bb04f55d0d46d256fc3591","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.7.0","fdir":"^3.4.3","get-cli-arg":"^5.6.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.10.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.10.0","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.6.0","prettier":"^2.0.5","projectz":"^2.7.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"b5a825f71cd4f09125bb04f55d0d46d256fc3591","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n1.  https://github.com/bevry/ambi\n1.  https://github.com/bevry/arrangekeys\n1.  https://github.com/bevry/badges\n1.  https://github.com/bevry/binaryextensions\n1.  https://github.com/bevry/cachely\n1.  https://github.com/bevry/detect-indentation\n1.  https://github.com/bevry/envfile\n1.  https://github.com/bevry/errlop\n1.  https://github.com/bevry/fellow\n1.  https://github.com/bevry/get-cli-arg\n1.  https://github.com/bevry/getsetdeep\n1.  https://github.com/bevry/ignorefs\n1.  https://github.com/bevry/ignorepatterns\n1.  https://github.com/bevry/istextorbinary\n1.  https://github.com/bevry/links\n1.  https://github.com/bevry/memo\n1.  https://github.com/bevry/native-promise-pool\n1.  https://github.com/bevry/normalify\n1.  https://github.com/bevry/oneday\n1.  https://github.com/bevry/remove-indentation\n1.  https://github.com/bevry/ropo\n1.  https://github.com/bevry/sortobject\n1.  https://github.com/bevry/start-of-week\n1.  https://github.com/bevry/textextensions\n1.  https://github.com/bevry/trim-indentation\n1.  https://github.com/bevry/typechecker\n1.  https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.9.0-next.1592628745.b5a825f71cd4f09125bb04f55d0d46d256fc3591","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-zV6euVM72s2a+4oPXGD1MyOXmpblad2YpSJ7qcEdGrcGvYzydxSf6WsLukSKyc+AWGBfiWf1WtV3v+1aMZ3drQ==","shasum":"cee54009d4e4bfb7e268b4b6b0d4ccc3a91dda53","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.9.0-next.1592628745.b5a825f71cd4f09125bb04f55d0d46d256fc3591.tgz","fileCount":18,"unpackedSize":65007,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7ZYLCRA9TVsSAnZWagAAj5EQAI89DICCaE/D8iMUuESM\nlkAxPTq+yXiXuTqvG1jVy3hnD9VSqJivPnTP8czzaOibeJOHjDNdL/iMunXX\nbdWqymTpJPL5orRr/fiwmMpH8dKtlIH6qWDRoTdZSMQRdlfehwE1Ct2QT3uY\n9ZU7TOHAemNpm0ZibLHfD7smfo2uReM5ZJBXzAHAsHbItORAFwIlOxFuer+Q\nw+GfYg0QtiNXfek+IROweEOXwEtomIt1RZ3GoUInaCF6w7JpTSv0j32EnXTk\nCZ8y9nx1lt+dMxvXNm+nl369orkvpi7Wu3x1QQj3SE7hpSgEwG2B8v54dXOZ\ndjQTmohIFZCtxh3dtbDvaU3e9lkDbj1efpMn/bdI7xIHRsyXn3ENqcYqjYJp\nisf6SWtOsmglOLKNmXr6jMuFX4DGxde/mnv+XD3zaOKkJlmC5Fo26ccj2y1K\nGHpLCntLQF4murMPYQAUQTNHhZpe7Xvr1CVTqAKCLkRQXDGdnHuxekdz4Kbo\nImduYygNd1LRkWrguJ7b7cwTagA0rW7cUsA6/68hgBXtCJlfwgUq4Z+fJ9w/\nOLCurdn+mzHG57n/G1FnC8RL94RKKxt4Vov6wOcf4GoaeE/YqEr4kS9dXHrq\nipkymcJ6Ljbf1PvNCDb3rQtdW/e0WUDSJSzwnwcM+8ChPVEEwE1w9ae1pK+j\ni7k9\r\n=6CIK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChm/CRfjC63lbCTGm3QZ2HKFwWBwE3XBB9fAfgaBqNiwIgAVSQ78X6qgAuf/XxFuZU5fx0HfprgwwVjtsVZV1JWYw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.9.0-next.1592628745.b5a825f71cd4f09125bb04f55d0d46d256fc3591_1592628747009_0.5408939937913413"},"_hasShrinkwrap":false},"0.9.0":{"name":"make-deno-edition","version":"0.9.0","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.7.0","fdir":"^3.4.3","get-cli-arg":"^5.6.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.10.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.10.0","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.6.0","prettier":"^2.0.5","projectz":"^2.7.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"b5a825f71cd4f09125bb04f55d0d46d256fc3591","_id":"make-deno-edition@0.9.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-gkO1B0ZaVtTWn/paKqUrhmp7EVrLGWCzhNdccxJpgymlgxcYoaOyy5+qsC6T1pIXCkf5P29HLkr/8A7YZIU5Vw==","shasum":"c7088dd6c2c7d5df5f989baec7309efce49099da","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.9.0.tgz","fileCount":18,"unpackedSize":64950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7ZYPCRA9TVsSAnZWagAAtG8QAIbpvgbsjF4DATDoVTBB\ndyM2bsNif8OfWZU6HYqibt7Wf3pUjdEtjxh9+fyFu+dEUcsDjD6EfR22pOiF\nfrAjxzF2GGYQ0RhRYASV6AdLr//nS6h2V+3UyGTeqmS4W/RT6ZPeiOkaY/i4\n7huqY4dvHir+2IoZcIJT+8bzQTtq9Y+1axQDedV7gVOo8H9VxJ2/xDeiNxpD\nJSqQ9buihyfxvOHtRFSa1u43btLw4u8JuVjvypXfRg9wSNIWH2FXJTNAeAaZ\nT3wBNExnWqEbMkzMAcFYfI0xs8BZXKmkT7nLTvDQu5GgnJ43rt0uCEncCsvD\n/nO1c2ytQLQY8b/2OidkwSvtXaygY0exRc6UQ1lej7WDQ98O/x+MCOEdQV+a\nkcd6hNmYHXqfVJtxQWyCsPxm9Sf/3dUQnh15q5ftjAGEnktT1YIRav5GvGhr\nqGXBPXJzUvSGZIZo+o7l53+A9mxNH0n92/w4D4teQ+tSEuWU5zjj7f6MrUWL\n1IrjmPVo3BNMBZR7bQeNfLLEBgjKl0S1HnryTaDL9PsHXWovtm+eHomDc3O2\n5rljRXHGKvMDb1tdXGGHjcZIgPNkMbeXij99iyjcs3yb1jc6EHa3Tj0SYa15\nd8QVOBGtPY2vJFc/bHJNqJCM0mpgey5LdXCcWjvw+WAh2woMrwBA2rXmhivk\n80Bn\r\n=UK8Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDAQhCHqQsNICkhr2t1z1W7bqALC1Z65HU0u6hs/UToVAiEA+AYZAXhdf36QK5IsO0GmTWnRrORVpQHxwa/laElfjLQ="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.9.0_1592628751020_0.33467765954868645"},"_hasShrinkwrap":false},"0.9.1-next.1592684928.d7383900c037314557caf0986d011ef6fbbf314a":{"name":"make-deno-edition","version":"0.9.1-next.1592684928.d7383900c037314557caf0986d011ef6fbbf314a","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.4.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"1.7.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"6.6.0","eslint":"^7.2.0","eslint-config-bevry":"3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"5.3.0","prettier":"^2.0.5","projectz":"2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"2.1.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"d7383900c037314557caf0986d011ef6fbbf314a","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n1.  https://github.com/bevry/ambi\n1.  https://github.com/bevry/arrangekeys\n1.  https://github.com/bevry/badges\n1.  https://github.com/bevry/binaryextensions\n1.  https://github.com/bevry/cachely\n1.  https://github.com/bevry/detect-indentation\n1.  https://github.com/bevry/envfile\n1.  https://github.com/bevry/errlop\n1.  https://github.com/bevry/fellow\n1.  https://github.com/bevry/get-cli-arg\n1.  https://github.com/bevry/getsetdeep\n1.  https://github.com/bevry/ignorefs\n1.  https://github.com/bevry/ignorepatterns\n1.  https://github.com/bevry/istextorbinary\n1.  https://github.com/bevry/links\n1.  https://github.com/bevry/memo\n1.  https://github.com/bevry/native-promise-pool\n1.  https://github.com/bevry/normalify\n1.  https://github.com/bevry/oneday\n1.  https://github.com/bevry/remove-indentation\n1.  https://github.com/bevry/ropo\n1.  https://github.com/bevry/sortobject\n1.  https://github.com/bevry/start-of-week\n1.  https://github.com/bevry/textextensions\n1.  https://github.com/bevry/trim-indentation\n1.  https://github.com/bevry/typechecker\n1.  https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.9.1-next.1592684928.d7383900c037314557caf0986d011ef6fbbf314a","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-zjFkQdVnNF+igZc6rodBh3FKJt9n2xQZC+NCWvKKx3Zl+Z7CyRpE/eYKVM6DzcxBQXQEEJANrehwj6mzhFbYPg==","shasum":"bd649020c33241d4081cd9342c77fb9d9f6be3fb","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.9.1-next.1592684928.d7383900c037314557caf0986d011ef6fbbf314a.tgz","fileCount":18,"unpackedSize":65069,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7nGCCRA9TVsSAnZWagAAiNkP/0UDsLMxvSjpiQDyWoSt\nxcFJx4q6MLj3oJHmIhLODjsGIXOwtM08k/fKa/42akJl2uF70oxay3vmHxB7\nSPj5G6PVhq8lYHusU/SM1odXjfEdx0Epxw2PUYp/G39S/ro/pjAfJZsUrjnq\noOVDw97mfYWl1kBwJbvNoKrTiS1TyBY45s1PPo625lZ7kYLTHqDdpZtd1IMq\n5/uxtoci4FrpO1SpZtW+DyKQflbIURPm335ghq0cIq39GUxjxIFcK6phlfMo\nOF0wFDMYSB9x/kMtDm+GscUoa56RIv6SESM7wNik9ybPXkdp/GH6EGBbZQ2Y\n0IlN4UappQuTIjeNUG6974Q2AHcWCM0+rXjgtdpKVWUs9MHfL5rKthyfX8d8\nrUcbUEmzBFWUJw3HqIsnVK7gQud6k0e0uVzAnl9+LvkB4BKRKz9hc9cZB2Uq\n6zV8pQGhvhkYHq6qSOnO2X9J2xxA0DCCWbdCjLWDz8Ig3ADVXfN/QjSj0Lft\nOUM+Ic0gcLUMu+x/4rpKO4LOknDM25D5aUzfXYHs6uu+LhNRJmM4WBeOeXRh\nKUNa55otEWFm+29DwojzQ0XuLTie5tCqCAl1UGRrFAB3rGjh1wEY+sxCVTx6\n5orw+tZQMmcujg4BYfIMVoDJ1wxbRbCXAcuLyNVom2FZQbaSzPhhETdKvAzW\nFwoI\r\n=Yg80\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMWTKVo5YJ6OaBkokIeFz2Z6csKwvrqDD3Ca7tTsW5GgIhAM/clXMghE62BbS+QaK59aOArcFCmxKD+0s5qdzmwPo2"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.9.1-next.1592684928.d7383900c037314557caf0986d011ef6fbbf314a_1592684930060_0.25430180127423596"},"_hasShrinkwrap":false},"0.9.1":{"name":"make-deno-edition","version":"0.9.1","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.4.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"1.7.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"6.6.0","eslint":"^7.2.0","eslint-config-bevry":"3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"5.3.0","prettier":"^2.0.5","projectz":"2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"2.1.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"d7383900c037314557caf0986d011ef6fbbf314a","_id":"make-deno-edition@0.9.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-9GOh3xya6+Y2nTBRiMmIvJa+0yBVAK6W2Zqjna0BRSAbb4ztbWEbGTwmyYMlSCh2IKalXXvqEXj3Lfltqem0rQ==","shasum":"b299739ae852c0337764729bc28ec9d437a8cc63","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.9.1.tgz","fileCount":18,"unpackedSize":65012,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7nGWCRA9TVsSAnZWagAA+mkP+wS8ttO+XMb2r3MQC4Lh\nUnkvbZtFJXenKL+DhszSknB8j4c8/eYRIEyX1HbtBVJ1L1ikiKOWQOmxuDbI\nZK/F1Yf3xDS1Fwey4EzqA0AYCjR0Hu1OoBAX85otjubNpIX9znsAcPgO5xk+\nJQbhmeiXGFAjDqOdrL5fDcR+Li+a/EDlvb+rme9oZ9KfipVEgjyABJPWRSBs\na4cHt7R7JCuD2WJ+tXpEhvFWMQvDwWcUFne745KRXD/S8LDcblUz1WfECTRM\ntXpxsaaGx/7hPDEbMkTtVVuTmFguP630zg9VwnqZmFg4zrIw5c9nFoRQz5gv\n1rniCDrQAHdv2UvBIRrUV/RdxFcG0/1suAAQKDH32oWBxN6bQl/6NCLnN7ZD\nKXKpot9DVHKua8qwXEr6Zdkp2J6kcbNA1Uv1CzcjC2T75xw0RMNllBqSl7zh\n5wpLF4RP4hkkT6j6/86iG4ZrnVaKwaDqRj8NnMl415iD9JRdmd36rBKRxNKE\nUYa4HkpC7ut+U90F8AHJdJlJ8UrksNKkFTnwDq6RXGc5HM3AZiQFYkJKKrYw\n11dFt3rBzM5ATS0wIJv/7Ahsd3ZeUvyJDuzQ6PNqC8RwR6fvlGkNL0h5IrTl\nfwobc+X9CHE44c6RPG0n1uuC/OYqKXfGe78mgbceMPVR+hUq+2XFgeCUukaG\n0UgR\r\n=ojvc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDroAxDnwcGqEeTzJRDOho0uG5F5qIvitQzOGykAL3wVAiBfDknjdizeZ3zr5dJrz4rdTnBE8f5ncd+E3/s3XqnR1Q=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.9.1_1592684949665_0.11368603190226856"},"_hasShrinkwrap":false},"0.10.0-next.1592761348.537a3e0d45bee69f016a2f7e78efba8216ada164":{"name":"make-deno-edition","version":"0.10.0-next.1592761348.537a3e0d45bee69f016a2f7e78efba8216ada164","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.4.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.8.0","eslint":"^7.3.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","prettier":"^2.0.5","projectz":"^2.9.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"537a3e0d45bee69f016a2f7e78efba8216ada164","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n1.  https://github.com/bevry/ambi\n1.  https://github.com/bevry/arrangekeys\n1.  https://github.com/bevry/badges\n1.  https://github.com/bevry/binaryextensions\n1.  https://github.com/bevry/cachely\n1.  https://github.com/bevry/detect-indentation\n1.  https://github.com/bevry/envfile\n1.  https://github.com/bevry/errlop\n1.  https://github.com/bevry/fellow\n1.  https://github.com/bevry/get-cli-arg\n1.  https://github.com/bevry/getsetdeep\n1.  https://github.com/bevry/ignorefs\n1.  https://github.com/bevry/ignorepatterns\n1.  https://github.com/bevry/istextorbinary\n1.  https://github.com/bevry/links\n1.  https://github.com/bevry/memo\n1.  https://github.com/bevry/native-promise-pool\n1.  https://github.com/bevry/normalify\n1.  https://github.com/bevry/oneday\n1.  https://github.com/bevry/remove-indentation\n1.  https://github.com/bevry/ropo\n1.  https://github.com/bevry/sortobject\n1.  https://github.com/bevry/start-of-week\n1.  https://github.com/bevry/textextensions\n1.  https://github.com/bevry/trim-indentation\n1.  https://github.com/bevry/typechecker\n1.  https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.10.0-next.1592761348.537a3e0d45bee69f016a2f7e78efba8216ada164","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-RA0yvUCQJUaJTRlCGRt0UJNvJOI7Uwx+lE1m4csuGrlNliodNxt6M4eg8qVENMbXpZz86FXXPndOLnv1dWWZJw==","shasum":"964d37f5d747af3e1f9da18267ec068e908e1d15","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.10.0-next.1592761348.537a3e0d45bee69f016a2f7e78efba8216ada164.tgz","fileCount":18,"unpackedSize":65324,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe75wGCRA9TVsSAnZWagAA1bkP/jgFeU9iRLImd9QEswQR\nIyCFZnpAxpw6dulMHbiJsIAooshInNDkoYiEFAGvNCU5FOLvdWzS0Cbi4DMt\nzGN869gWKVihGeQckGwxXtb/4glPXAb641CPVK/yT0aJQIOpXFZfQqhVhqJ5\nuTeHTXjsKoa2MYEPCoNtLmUMx1gGZEgQZdJ/CKZZj9dPp2cr1NV+ek2prBQx\nx+fPwg5U4fm+f4x2HW2SEgLUwRyCH4WMRJyq/AbhLMVudznzhCo3c/iLpj/H\nEjpkPGCGnWF8CztZia5S9Jnsvb+x40UNhnti5Y9oTjFfJihKiYJ9b3MdVm6f\ngJ2s5p5Czyk9YeEfv92rQmBRCh235BlvVhYRatIGJHZ62fFbCqSNyEApN2oe\nriyqoyV1urSSZirf5O2kWDn5gPIIuBL97+tMRcGMkhekVe8G33WmbmGUZeR9\nAWaoAuEEnTGl8aoDWJJmGQk7V0xgLPAV4QfCZO0N6qehzWtMsDJkjoz8POKO\nu0aP56d7ArtJ7TUYnlcPETVCD0/2Ra05dnU+I7XspDHh+51IF3KF+nE6gfVq\nLex2ElI7z7O8LrwlUzKCe9GJYty1J/lrUeYdz0GiHAd+prnTXSZ4ltH9o+Mi\n1ZSw1BOcAcVAVuW9YNkhUSBfPKWH3xgw6XNvjqTPWjlJxKGejvVOItq7/0ib\nItck\r\n=RMuQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAmyT6Gj6X0ZQ7HR/oHQyVJXYsSA3lPANkZlo1xTFJuKAiBA0HOvQ/yOMq/pqhB5ehDkvhl5cSus6yhNofrrdeJ6kw=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.10.0-next.1592761348.537a3e0d45bee69f016a2f7e78efba8216ada164_1592761349785_0.8692913309871311"},"_hasShrinkwrap":false},"0.10.0":{"name":"make-deno-edition","version":"0.10.0","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.4.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.8.0","eslint":"^7.3.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","prettier":"^2.0.5","projectz":"^2.9.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"537a3e0d45bee69f016a2f7e78efba8216ada164","_id":"make-deno-edition@0.10.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-lsDjA+SoDH5eeus7I/Z7vcF9OW+IgcbRmmhHCejkXbm5/kLFM61ua8XvIBkLsOxiQw6cW9t5a37jRZH8TMsJhw==","shasum":"cc52dbd0941a6ad1eacb46daf9321f937d89949d","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.10.0.tgz","fileCount":18,"unpackedSize":65267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe75wQCRA9TVsSAnZWagAAxxcP/2T3k3Whe4MnxTqOhhNZ\nwKAFEiUnuqAMyGXpph6YwXcrPvAj8lBzaYv93HycbcXJPIJWKhNo5XVXrYD8\nAGFGlXmGIIcrjzaM4S0e39m/esJvWvelqP5i/FjVvN5v2soM9AmeHgzvbxJ1\njnH9Z2F99Uk0dIdalaHZ19rXEuyxZACX8vt3tWGrlXoKQwKKamope+9BbH54\nIBiS1IiUIYD5t51JvwYaAn5s2aGZtT+UOoTJeNKUEzgxFm3QvMx+87er59VG\nRLp65Q+B5MKHznC2x3r2KyBwyGUaQhqt5IQQSATUigL37w3rZyv4H89AMh1p\nphfqiLDMEB167h5ZWawR8DRXVD3UKfhHnQTbhtlOYODk7dsjfkzR8dY0R5OR\nFPQ8OayoPLUfcerC2kg9VX5Iri7fq86bdKyb0548AfV2qIuBe59dVE5OCN6F\ndWffUuBiYYsLp4QbmakTYEMiL0j1fW3FVBsPtL6yylXxQmt08JMEBP5I5nZD\nAcyESpcphgKE+m3MJ9hJPDOMLoENNXCfomDg1gEUpNNwuirOgEP9ptIonbdE\nRyPnOvHZAMlXl+PKwfJ5lb1Z0yLxkDZF3o7JwJHnNansa2IQiyD4P4VwNA6s\nHvqDAF7gmd+zeDjHOJR87mtWs3PATsiA+BAvC7QNWFsqUzJuHf9h5Iutk0Rx\nZz57\r\n=rLLh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHRE3w8G36Jg3Lg9eaCu+vcNqHL5edD+e8M+2haVhQQpAiBkwkjCZ1Ss34esQpfOr9fS6wTv0iZjJaSrfydeTD2TcQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.10.0_1592761360016_0.03607092804422507"},"_hasShrinkwrap":false},"0.11.0-next.1593019496.73997fbaecb71341b230f2d6dd017cda293b2c4f":{"name":"make-deno-edition","version":"0.11.0-next.1593019496.73997fbaecb71341b230f2d6dd017cda293b2c4f","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.4.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.8.0","eslint":"^7.3.1","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","prettier":"^2.0.5","projectz":"^2.9.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"73997fbaecb71341b230f2d6dd017cda293b2c4f","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n1.  https://github.com/bevry/ambi\n1.  https://github.com/bevry/arrangekeys\n1.  https://github.com/bevry/badges\n1.  https://github.com/bevry/binaryextensions\n1.  https://github.com/bevry/cachely\n1.  https://github.com/bevry/detect-indentation\n1.  https://github.com/bevry/envfile\n1.  https://github.com/bevry/errlop\n1.  https://github.com/bevry/fellow\n1.  https://github.com/bevry/get-cli-arg\n1.  https://github.com/bevry/getsetdeep\n1.  https://github.com/bevry/ignorefs\n1.  https://github.com/bevry/ignorepatterns\n1.  https://github.com/bevry/istextorbinary\n1.  https://github.com/bevry/links\n1.  https://github.com/bevry/memo\n1.  https://github.com/bevry/native-promise-pool\n1.  https://github.com/bevry/normalify\n1.  https://github.com/bevry/oneday\n1.  https://github.com/bevry/remove-indentation\n1.  https://github.com/bevry/ropo\n1.  https://github.com/bevry/sortobject\n1.  https://github.com/bevry/start-of-week\n1.  https://github.com/bevry/textextensions\n1.  https://github.com/bevry/trim-indentation\n1.  https://github.com/bevry/typechecker\n1.  https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.11.0-next.1593019496.73997fbaecb71341b230f2d6dd017cda293b2c4f","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-UxHx79WJDFvC3TqSu5c+OHnjnjpitQ3LXbKzKcoYBLbf9iGGiWojiAwxJlbWpLL1wisUyL/FLHTeAWWbuZBLsg==","shasum":"a85e964a35c04312099f07490b2e1004fd471875","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.11.0-next.1593019496.73997fbaecb71341b230f2d6dd017cda293b2c4f.tgz","fileCount":18,"unpackedSize":65519,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe84xqCRA9TVsSAnZWagAANy0P/RCMTLIokA3Hu3Abdd/7\nvmSYF0j3lphOlNrWzWjLBiynnAa0GbPvZ2u7JEJJyOJ6DbQanXQuwwGBWDJ+\nEN72sISbeiCJpTNo2+mYKs/a1WxFRru1jBJm8WzSaS9I0KdePiflYjnq3IXZ\nu6f1oAhua/kUyvWGJs/gAB6ox0z3UY4bAxO1c960YpJjdVEciUkZ7iUOM93X\nb33xl+/DCmQFFTAcIFL8fJTNJBy+7SNHDt2z2zkVvZL4UYxZS28oWOYHJdHy\nAc236pRsdr0WRd4AehP4c81GnCmlIpRulFpAnmd2zpIU/HszYeA8pHr80F7A\njm/iF3v1+2vf8dVbhAdjHuS4L6ydnp/Mi8mun3bqQLwY+tPjqvbwDedOnx5R\nNS3oZ1XiXvu+PJmhI2k/vSZAlIddZr179kQQZA3E7oFw3nkY1+CEFz3KJDiG\ndOakyXWoSmKhVgMBxmsUfY6Oo9QE04WB1GXk6u4zLysrSEjQLaYXOXLUxt4k\nQ7qb3RaDD7kvJ1TooBb/LY6Ihes1cFfZfRCwoST9ZZHhimQTmX2xk2VLKXg2\njUTATU/2TBYNrYobthBmjFSxM/qumrg6Vwr2BPx5l5ItvBA6rGMKMeuoR8p7\nCTrQk3/mhuLJm5l4/qaMatwrV0OliuhO51Swks1j9lydPTKH4EEK+yBdrpIa\n2tql\r\n=rtN1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsbC/k/zqbJhHSDdpPqPXS9VR8okIN79qB/+PIKA2VVgIgPJH6FBFQhTI5JXdjJ4jAgwtKn1KqTnZjYOlEJQBJCjU="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.11.0-next.1593019496.73997fbaecb71341b230f2d6dd017cda293b2c4f_1593019497539_0.39020963686605437"},"_hasShrinkwrap":false},"0.11.0":{"name":"make-deno-edition","version":"0.11.0","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.4.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.8.0","eslint":"^7.3.1","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","prettier":"^2.0.5","projectz":"^2.9.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"73997fbaecb71341b230f2d6dd017cda293b2c4f","_id":"make-deno-edition@0.11.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-oUAVO7X9pGFMBPXJcNKwjE/Hi0NeJf+bOaaHk3AGFYDliWFBltftL8adehehqJlRYBeg+3nNw1ZVveGLCOhZTg==","shasum":"31a885402b83f04f444c48c1fd686ac8f1ed8ff5","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.11.0.tgz","fileCount":18,"unpackedSize":65462,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe84x3CRA9TVsSAnZWagAA0rMP/1ukAx46yZwGxjRatAXN\n2O2GVROpl+iJi29PNRof0aG5yJplYAHspKHHCBB8SFX1Eta2CSrfD0E/XdQX\nvnVReV0KnbteX53eVpO+JjaBwhqIOLIjYDN0N/fDou0mHJbrevBESxiaBKv8\npyyw9WnnKLNik4KmHTx33EUz4EogvB+I9SPtQ6xvtbBPNBfsAixpTveS1e8q\nMl7OPNyGFbq/ajxoXYyI+kVCZmeDZykA6BsT9FIJLx4uNmYwZoxDUyrW+o7/\nXHMEsROe7gxrgWSTwxobGOFjyqfkwpnezNcVkG/EroEZziNA9GxfNcHHkh16\nMR28j+87UgnJYqP1ncY8fVQMVU5G/bx3bP4euKDbsGAx9cJXWMKU8eKwdfjg\nYHrvj+lqYGgU0vKK+MEnPtdKFM8k1DWavcB8apbGN9rTmDuTHzvFghFetEDh\n1pdB0CxkJH6fWhSS7DJnd8I4J4K9hXkv0ip3lFqLa5Nd6qXm+kGqL7DYrniM\nSFVjs5zQXvN2v8miTcLttMoGqtXwabLQwAlA0R9qAaIXOLTv8VYN1rurjomq\nI3MrBfXHSSjXWwUw/XQwKIqde/5EQX5JvMZbxuYkVqrUQisM3ma5x93jJrKD\nM7lilzWojwJFjJpVF+aC4lIc5QBxor2xLGS9pS3AEUJLEo3Cw3OvloeZcGC0\nGPoo\r\n=qnJC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDGZN1/lkp2W0kxMTw9wlWdNqUac4myk1d2MCknyB6D+AiEA0C5RpMb7IkoXUPR1+gPFzYhqgctAgBmC+zY/3+iAdz0="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.11.0_1593019510760_0.7661539606750842"},"_hasShrinkwrap":false},"0.11.0-next.1593019810.536558f3c711ed453e36e37fd588b86f558cd314":{"name":"make-deno-edition","version":"0.11.0-next.1593019810.536558f3c711ed453e36e37fd588b86f558cd314","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.4.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.8.0","eslint":"^7.3.1","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","prettier":"^2.0.5","projectz":"^2.9.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"536558f3c711ed453e36e37fd588b86f558cd314","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n1.  https://github.com/bevry/ambi\n1.  https://github.com/bevry/arrangekeys\n1.  https://github.com/bevry/badges\n1.  https://github.com/bevry/binaryextensions\n1.  https://github.com/bevry/cachely\n1.  https://github.com/bevry/detect-indentation\n1.  https://github.com/bevry/envfile\n1.  https://github.com/bevry/errlop\n1.  https://github.com/bevry/fellow\n1.  https://github.com/bevry/get-cli-arg\n1.  https://github.com/bevry/getsetdeep\n1.  https://github.com/bevry/ignorefs\n1.  https://github.com/bevry/ignorepatterns\n1.  https://github.com/bevry/istextorbinary\n1.  https://github.com/bevry/links\n1.  https://github.com/bevry/memo\n1.  https://github.com/bevry/native-promise-pool\n1.  https://github.com/bevry/normalify\n1.  https://github.com/bevry/oneday\n1.  https://github.com/bevry/remove-indentation\n1.  https://github.com/bevry/ropo\n1.  https://github.com/bevry/sortobject\n1.  https://github.com/bevry/start-of-week\n1.  https://github.com/bevry/textextensions\n1.  https://github.com/bevry/trim-indentation\n1.  https://github.com/bevry/typechecker\n1.  https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.11.0-next.1593019810.536558f3c711ed453e36e37fd588b86f558cd314","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-qorMI06AUvIGQMUgCE7OTeLeBX5NZA5gE1HlFt8yqvW9QjCy26ykOPQXrQn2H/7DJcGGTQBA5NtI5jiLIAuZUg==","shasum":"de98de4d0c4059c478070bc9ef53f250fc5d2068","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.11.0-next.1593019810.536558f3c711ed453e36e37fd588b86f558cd314.tgz","fileCount":18,"unpackedSize":65519,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe842jCRA9TVsSAnZWagAAy9gP/1Hz4QvhLabYMbbBBq9g\nId6UNHjtHqPZPmhFN2cmhGm608pgvHdkHatq+ohJ6Zy/W1ZelIhDmY75Pth7\nrP1fhof4QCjZGHCZEai1c/ZTIr3YfcX3kubc/b9WMqeU1lnIsmL+JfcHnLCV\nDDa+xze0cjt3cNdO5gY+SVBk+LXTFjns5mNwO4B23YYJ4TVMZMWppl2ytLzq\nOEe5Zp4zP2tz35PCbgS44hhLfnx2OMPWw9wTcbHI7zdK/HfOWGqNOfzbzFf3\nEIscJaAFFuV93TRMPy80xg73dL+uvX02qkCw42CNTxgVvfl34TimWF1YxDMX\nCy76pnOQ4Zuz7xRdIwK/HMTpCEJaEADqQ5I/CZgu6UM1IhqxfQBsmMFD7fu6\neZTBtjRxgIMWDueqJQf/ikFyeyqFjk7a9WCweh9rs/Z3Wit2goKyvbX1SXUl\nF8wzBjXafVVj6Ge69KUC98NLVQfrFJatgXtdDO9koVbgrJfg6Fc0OSZeoqlc\nXKMYFdJfWSLF/hey2JjBbgX8m/FPlxAstMW+lOVE2gj4/eAX/DprMwHnHk+a\nxH1iGux57rHf7Ug4ZcJ5f1Uo5UPAgiQDj/diUSrGMdeIFPpEeL1XCSCDweu9\nXz8RCj+bMaA82ZIYmZMDFl5RaeYYE6E+bG2MT4aRI1ZPvFXnIS5YgDv5IYau\neQh3\r\n=+KOR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5gWnCZXCBwbwv0KdIUqOkFKA7TmvaLuLi4wvuaRD30QIgYxr6ef4G8HsZr3OJq54qWsf3p7K9XPMFF1s/O71MtkQ="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.11.0-next.1593019810.536558f3c711ed453e36e37fd588b86f558cd314_1593019811292_0.5411736765103734"},"_hasShrinkwrap":false},"0.11.0-next.1593022025.38132cbf44c4a8671f8ebd084699e6815e76d9c8":{"name":"make-deno-edition","version":"0.11.0-next.1593022025.38132cbf44c4a8671f8ebd084699e6815e76d9c8","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.4.0","fdir":"^3.4.3","get-cli-arg":"^5.3.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.12.0","eslint":"^7.3.1","eslint-config-bevry":"^3.12.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","prettier":"^2.0.5","projectz":"^2.10.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"38132cbf44c4a8671f8ebd084699e6815e76d9c8","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n1.  https://github.com/bevry/ambi\n1.  https://github.com/bevry/arrangekeys\n1.  https://github.com/bevry/badges\n1.  https://github.com/bevry/binaryextensions\n1.  https://github.com/bevry/cachely\n1.  https://github.com/bevry/detect-indentation\n1.  https://github.com/bevry/envfile\n1.  https://github.com/bevry/errlop\n1.  https://github.com/bevry/fellow\n1.  https://github.com/bevry/get-cli-arg\n1.  https://github.com/bevry/getsetdeep\n1.  https://github.com/bevry/ignorefs\n1.  https://github.com/bevry/ignorepatterns\n1.  https://github.com/bevry/istextorbinary\n1.  https://github.com/bevry/links\n1.  https://github.com/bevry/memo\n1.  https://github.com/bevry/native-promise-pool\n1.  https://github.com/bevry/normalify\n1.  https://github.com/bevry/oneday\n1.  https://github.com/bevry/remove-indentation\n1.  https://github.com/bevry/ropo\n1.  https://github.com/bevry/sortobject\n1.  https://github.com/bevry/start-of-week\n1.  https://github.com/bevry/textextensions\n1.  https://github.com/bevry/trim-indentation\n1.  https://github.com/bevry/typechecker\n1.  https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.11.0-next.1593022025.38132cbf44c4a8671f8ebd084699e6815e76d9c8","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-pP4W6leI0q24t4rT2TDg/aSGaMb3dBYjLPLZy1CerACdqNI00AEsWSydJz3NhLn2kcO2sHtinhTxj6PvX3Kkfw==","shasum":"82a2efbb42572022f12b13e614c6511d30c35b39","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.11.0-next.1593022025.38132cbf44c4a8671f8ebd084699e6815e76d9c8.tgz","fileCount":18,"unpackedSize":65524,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe85ZLCRA9TVsSAnZWagAAeJEP/iH5AF2amA7aWwwXxtUv\n7O2+I57nXd7NJ/tehz45E0x1r1jhHYqarmb2YVuSPCkPhuilDXx9k93WlHiR\n7m2OcwJz07Z+M5rSvMIQkX2TzpUQnASoJznckg6lk3GwhUgBW+Ij54JzN0fh\n614T9yYXiAS9XvdA346ATwFPEhnw2thOiVEKTQWblMUQYZi++VwGm1NVauSl\nGznINpl/Nx/X5b5KyfLyoZKEUD/70+4Cp0mU2VnH9tdYLsfzzkH8svFWijkY\nmF301ND3sJH9kKYsOwIpjSQmDF0yQ7Jl7sojK5MfoACtSKXv7CEotKa1JyVI\n751K5edJBqP/gpPRdtE/lJl2+cDMDYhARhU70RR08Xi+zXfJlhyg4IKZqI/Z\nNI8fCzroMt9mFiGgjclUkHnrtcfVgvM5JVbLglrb9txZZ5ste1ayFbrds2Ed\nE/UX+2DKZDfnoCWQjZNCi8eXQVyCpuDCpAb9CnkAHsvinizdRYt0tn8yCT4I\nVio++R2NDFJjbDsyBeLo7scfWVthkqNo2Qzm78LsopMmP7nE/y5ifHvmJfDF\nrWE0nJWIFA/6TCqTYAuQYGEj40uQ4eN58TU0FmZSz9ZFB02S6DtPEJ1XRIYV\nKkOwzWaMpK/qnbCaYlVUSg3WL+LRHLiMMog3y+nw5gwYX8I+dOYvFtyuhPt2\ntens\r\n=TT9l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBWu2rC0YvPiXP0gHL9YL29Cb8xx/zI5S2AvkgjkZ7InAiABlEQGOR1VbrspFUAAyJHvn3BqtQpnHelsXtdQxzo/Gg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.11.0-next.1593022025.38132cbf44c4a8671f8ebd084699e6815e76d9c8_1593022026603_0.01802856191595681"},"_hasShrinkwrap":false},"0.11.0-next.1593022731.4007477998f5de593e52dd0aa0c7ce1337b0a915":{"name":"make-deno-edition","version":"0.11.0-next.1593022731.4007477998f5de593e52dd0aa0c7ce1337b0a915","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.9.0","fdir":"^3.4.3","get-cli-arg":"^5.8.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.12.0","eslint":"^7.3.1","eslint-config-bevry":"^3.12.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","prettier":"^2.0.5","projectz":"^2.10.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"4007477998f5de593e52dd0aa0c7ce1337b0a915","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n1.  https://github.com/bevry/ambi\n1.  https://github.com/bevry/arrangekeys\n1.  https://github.com/bevry/badges\n1.  https://github.com/bevry/binaryextensions\n1.  https://github.com/bevry/cachely\n1.  https://github.com/bevry/detect-indentation\n1.  https://github.com/bevry/envfile\n1.  https://github.com/bevry/errlop\n1.  https://github.com/bevry/fellow\n1.  https://github.com/bevry/get-cli-arg\n1.  https://github.com/bevry/getsetdeep\n1.  https://github.com/bevry/ignorefs\n1.  https://github.com/bevry/ignorepatterns\n1.  https://github.com/bevry/istextorbinary\n1.  https://github.com/bevry/links\n1.  https://github.com/bevry/memo\n1.  https://github.com/bevry/native-promise-pool\n1.  https://github.com/bevry/normalify\n1.  https://github.com/bevry/oneday\n1.  https://github.com/bevry/remove-indentation\n1.  https://github.com/bevry/ropo\n1.  https://github.com/bevry/sortobject\n1.  https://github.com/bevry/start-of-week\n1.  https://github.com/bevry/textextensions\n1.  https://github.com/bevry/trim-indentation\n1.  https://github.com/bevry/typechecker\n1.  https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.11.0-next.1593022731.4007477998f5de593e52dd0aa0c7ce1337b0a915","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-5X0Fhn+T/kOiO0Fwe6k+HpRRsh4xD6JJhSVdtdYOgol0rPIJXuJkVZfZl0qz1DoGKYODPKdRfpH5QiLIU3ZD6w==","shasum":"83b27f9037bd7f232dd3e2689e277648a33cd55e","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.11.0-next.1593022731.4007477998f5de593e52dd0aa0c7ce1337b0a915.tgz","fileCount":18,"unpackedSize":65524,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe85kNCRA9TVsSAnZWagAAeewP/3cWtj3TyW681dKBQCia\nHBhcd001JdTxI3YY4Hk3zbMTTTIDmrRDxiXgh+P84ySOW1ewTVQ8rQzEcTtP\nsN5SryRe708W8NPeVnAC0T3tXRWQhYXfwAEv4NNsXdIWdSMrv5DO0L3mYWhY\nwqfIt/VF6mtIs+C7MHH4iZgkfRDFj2lotZ/tp6R06ZpsHHvOMz3ibUBZEVZh\njJmnFtmLZ3qxrOaH089oEeshWt8cCng7H7pxpbMcGAW4ozsLu8BQzJaUhBy8\nxSrw/qyfORbFLUW7JzIKIlMs1f7mfy2J72+Ywr9BEMIjXJ79p61/1MwfV0hZ\n48918dPBq5sEk41f2Dd5igR7V4n44vftOKvmDj5SBvrpXBLiJ1LU+6mp0ukp\n1ekJI9/0OVrykWQFeO4/WIrSe43uasqY0TyLlh/VHwdzv/WjO0nLLZSiJo0I\nU/wn8PAsURhsIziE5nYIPWA7qh0FxeqwlE9JxOi1/CgpiPZ6aU/yKuvZkoNa\niTER2hftE62NjgpyKGiKNpMR0NUMIKF8YLQ3rzDUTqPD1Y4jtB9BAjWFIIhe\nwEGIB6A3B84RCl25Z6LPOo/y/LwhuEqAU5pmffkg3Q7FHtZADzji90KsHMDn\n1TIJ/J9rZL4zzAX/gGl2Raixt3/ltYtNlI7p6x1LQtC5NSANZ52OEj0dzmB9\na1F9\r\n=KkMr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0BxsAtn2njAWdWGai1HPSeBAu3dQDsuODXLpjF4j4eAIgWCzQmr5w3NnEEtVDxE+KFYgmBk+ByzFRhhmbL9lGbzM="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.11.0-next.1593022731.4007477998f5de593e52dd0aa0c7ce1337b0a915_1593022732726_0.3137068322623704"},"_hasShrinkwrap":false},"0.11.1-next.1593023852.e09600f2ec4fe05380f0e1090325407cc5224585":{"name":"make-deno-edition","version":"0.11.1-next.1593023852.e09600f2ec4fe05380f0e1090325407cc5224585","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.9.0","fdir":"^3.4.3","get-cli-arg":"^5.8.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.12.0","eslint":"^7.3.1","eslint-config-bevry":"^3.12.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","prettier":"^2.0.5","projectz":"^2.10.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"e09600f2ec4fe05380f0e1090325407cc5224585","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n1.  https://github.com/bevry/ambi\n1.  https://github.com/bevry/arrangekeys\n1.  https://github.com/bevry/badges\n1.  https://github.com/bevry/binaryextensions\n1.  https://github.com/bevry/cachely\n1.  https://github.com/bevry/detect-indentation\n1.  https://github.com/bevry/envfile\n1.  https://github.com/bevry/errlop\n1.  https://github.com/bevry/fellow\n1.  https://github.com/bevry/get-cli-arg\n1.  https://github.com/bevry/getsetdeep\n1.  https://github.com/bevry/ignorefs\n1.  https://github.com/bevry/ignorepatterns\n1.  https://github.com/bevry/istextorbinary\n1.  https://github.com/bevry/links\n1.  https://github.com/bevry/memo\n1.  https://github.com/bevry/native-promise-pool\n1.  https://github.com/bevry/normalify\n1.  https://github.com/bevry/oneday\n1.  https://github.com/bevry/remove-indentation\n1.  https://github.com/bevry/ropo\n1.  https://github.com/bevry/sortobject\n1.  https://github.com/bevry/start-of-week\n1.  https://github.com/bevry/textextensions\n1.  https://github.com/bevry/trim-indentation\n1.  https://github.com/bevry/typechecker\n1.  https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.11.1-next.1593023852.e09600f2ec4fe05380f0e1090325407cc5224585","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-kjtETaTval580i3VudZ+GB6hZEKU9Y04u61YlMSh0vz/YqKJ8KaNgLKuCYGJ2TVu081g7eC4oD4OCPxVUSFfBw==","shasum":"050bcbdb99979189069af4edb118686eecd5ad7a","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.11.1-next.1593023852.e09600f2ec4fe05380f0e1090325407cc5224585.tgz","fileCount":18,"unpackedSize":65634,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe851uCRA9TVsSAnZWagAAvf4P/A0X/HyY9gpd3/a0cagy\nZiSQ579PsfuPdx2Mdrt9LRwKMHN9yRzpgZcYOawRjFaKcW/bbUPPQ3dL9qI4\nAHAiv50/Yep3KqoX8NetACdhW53jtBUnInXTYoqvIEY/gvB6yzLIuWTyzwxR\nPRWt9CU9BsCLgx2XKtl/7r4rteukYM4T9kNx0ytxlag3lofMaPhBvcgrVLGd\ntvlyGZsKrNoUv+NhG30sLeejwRrKVQSMiz3cpw+aR7i3ObnWV+WcXqcymIZA\nXR1KE9ZYy/vawTiHkCB1Pk8WZCfBvIS1tQ62Bv6OK18hjtAJiHCADA/5yudC\nRUnHqXzfdBhdAAu6QCGbjp4QCBTGNv2XdzcPcIXiNbSABEG297hhuctm9n8a\nfvPgkXcv6eUCQeKOJICNb6f7psaZ6wNdVSYj5iHk49hJA25CuPNMISgvM7RY\nqhg/aFDHki7beL1FxMsDOskjau3sO4UwXeaUco6uyjfqsY80EibYCyekaWQh\nCvxdx4e+ngFvCWWAccMb0cAMt+3JERaKAWl8Ad5aTelAgMvKzOOO6DGoQnGx\n/8gqFxgzDfW/RxMVJeXRC9JW1X25byvrKeHMFAIlBNxUvkUwLO8WO9BwM/Z/\n3pqmfU49KuSPrvBUWkzEcCy7Bxnr8YF5/4tO9eC2zaKzYR3YwwCXNjtpWKlz\nkVjC\r\n=gTkC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB6r648yCIpPoP0woatx0IUhfeT/CUP492RcbSDI7sssAiEA4trIID/smkXRAHey6U5JndHTlVxv+tXeOPvSeLn5XtE="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.11.1-next.1593023852.e09600f2ec4fe05380f0e1090325407cc5224585_1593023854463_0.4293344183429628"},"_hasShrinkwrap":false},"0.11.1":{"name":"make-deno-edition","version":"0.11.1","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.9.0","fdir":"^3.4.3","get-cli-arg":"^5.8.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.12.0","eslint":"^7.3.1","eslint-config-bevry":"^3.12.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","prettier":"^2.0.5","projectz":"^2.10.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"e09600f2ec4fe05380f0e1090325407cc5224585","_id":"make-deno-edition@0.11.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-yGQt9ah1X0JwHKKy0cfAu8UADGS4a6dFg40ddZMcKk+qHuF0mYTkiVL+mo1EAmX9pVXBywhy8RV0hVlJNNng3w==","shasum":"230d58bcdcbaef8693b65e941b79621f13eb2573","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.11.1.tgz","fileCount":18,"unpackedSize":65577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe852ZCRA9TVsSAnZWagAAfQEQAIbwytwHNeIoFz+YpuBX\nJKxjch5dXVCX6Fvnrsr0t8uBWX2m+wE6LrO5paM3xIfqn14Hc1z6wSspIuyE\nHu53r1u7JIuw4gEdmo+htALpmKcrdsGst80Ab8v6fiICXWy2BSWceGj8aIbK\ndeXx9eDU9LPyccT+MX7AS9e7RGN7qK0tIlzQJ0pZzSn1LPVuAFm0SCeXNbOi\no7+kuOdlBiuTN2Re03g3H8/DVefgzi1nQ0hXyYUZ96EQ0ypUPi2mhzIw0jD0\nwBGgFRzBG0+vfghsTqvohxIm1NtbD9+2s+34IFRfs6WTdoOe2ytwDZOOHJGG\n+FFlivjjfSMPpBzJ3RI8BjHF6Fq1AGIATut0Xv+kcP8qQgws+XxHu9aznLLq\n/bkab9cclx7+Fe+UMDtpsKVYfDBVKj6P2pBC/VGZtLNjlViJe7eINNqK03xi\n4W8S+kxWbI3Q4Cba5DrZyZDKg+Hv0KlB2Z5bv8QLBYbPbGLN7oVdjArWvvtL\nb54wrEW/cOAYir9foJlUKbi1iCN/DGcd3gdTC6Mqxlz83cPRotCisIgqHrT7\nsCdHPmgGRQILkojbuvBC3s73SidoNxORue0jtVjLEPpQPQcKdrZoeUgZCzsC\nHLMz7aZZQRjhT744jjz5LKto49jdU915dfWq/mMaf3PxE2P6Al0enXYhYH0u\najfk\r\n=9bqK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDl3mXi03LAY4qOuUJRYYdk7iYjJiZuDqmpWziAyHiP9AIhAJj/JY+l08j+tr+wPuEt8UeFb6n/dPYeyYo9jHoFxYZK"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.11.1_1593023896624_0.691729173267636"},"_hasShrinkwrap":false},"0.12.0":{"name":"make-deno-edition","version":"0.12.0","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.9.0","fdir":"^3.4.3","get-cli-arg":"^5.8.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.12.0","eslint":"^7.3.1","eslint-config-bevry":"^3.12.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","prettier":"^2.0.5","projectz":"^2.10.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"f2a1361b60ae9b4dc81ac9aac6c5b1e190f92be0","_id":"make-deno-edition@0.12.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-6mdEvqj/gwA3sFAKioMSnLsDVyLIHpaJvlzqSzo+VSeYqGspBaQJwwIF9iV3y5y9elATpaY2dmzwEBc8X1AGlQ==","shasum":"fc6de1af7336c8297839c5c667b7b28232547195","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.12.0.tgz","fileCount":18,"unpackedSize":66389,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe89wBCRA9TVsSAnZWagAAsZYQAJbU9VQxLZMEfbPcjpWx\ngpxMG9Y74nukUpJpB7hpV5FZNx/VcLx3zsg6mOo4kMy3vzko+XJkGRfma/Hs\n1zC51s3ZoaCyviQSNcVgkp4wejlv54e2ihPIsudBbpkLCeZW3V5tfiMxVVQi\nUufsrJ545TQQxVuXeyepAuWaXzMMEiWuLAf/0OZGBX9DWpuuWMkOzsxwFg2O\n2FMx5KdUcn4m7vNiQmGTnGaOPzMKLDOVyZWSB4Ypvz4EadoDettUtWJSu2re\nG3QHewMW5oIgsMbB91QuVaTj9pyOibQugk0v18OOep4Wbn0Eze7yo2VQAc7h\n0FEbnPtxje/4kUwaR0fz9si/7/HIE2wHOdqEi2IH2OOJ7yBvkI1m7LuKF9cq\n2zCWSM5xBN3Cr4QgX2va6FQRFz2/I578AaOtlNd6aVYt9+IX2Z3cgENFDky6\njNnTHlmUsxxX/4njp9K11iousqGC5akP9DzfrAN6sRLSasqcLkXEv5zEwkpY\ntuvk1Y7WFxgNoayp/SD/6xTpyHl9P7XbowG31IrejZW0PP4G0GVyxuV2waRI\n5ZwZ43q5qj9Zk9eMf4cJQjKFJZwxG2BaXzyfI0UA0SBjxJIw2QMVsmrqPfY/\nUf2Yz2rc+GEC28uR4TcCfvLmPwmzKl1CxNTutV9h8G2ak/i5MniKcwsxztdB\nBO4l\r\n=QFG4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF8/Y065JC3orbhkgVnRB+qYMWMMKw16WSjXFub5K5bKAiBFoqZ0JMga6aamSCePkUjbI4tryelzjRFTLOO41hEDPg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.12.0_1593039873342_0.24866859876830372"},"_hasShrinkwrap":false},"0.13.0":{"name":"make-deno-edition","version":"0.13.0","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.9.0","fdir":"^3.4.3","get-cli-arg":"^6.0.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.12.0","eslint":"^7.3.1","eslint-config-bevry":"^3.12.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","prettier":"^2.0.5","projectz":"^2.10.1","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"a4ce04b999dae63334bf1eeb59fae70fec51485d","_id":"make-deno-edition@0.13.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-I0WiX+TrUAd9eYFvlawlggj8BlbjtkbcevgS5XSm3+6plgL8bJiHLFau+ebZTOfRDY5nJgzTEYFUo99URWrC1g==","shasum":"8f49d5e5715bc371628c758d69e3f3f80eaa694f","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.13.0.tgz","fileCount":18,"unpackedSize":67127,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8+eiCRA9TVsSAnZWagAAL40QAIAM8J4x8d7fxqVG+MJB\nkWkLg2bpHFQt4PWTF5rI7YzGOnXrwcwlCCMp/hLCIsIlvbyhBZ3MVDwhOiD7\n2bdwTtmR0ApgV0fC0bj/CzX/+e4LpIX4GxsdOPKuGFxb4ngwR6/fNMDrg7O6\njiE0voNE8NoGEHyxhe2oDsOfLLKek6lBXFx/Xp/TLwb9PzY7dl/lJog1n+4/\nKOK8zcYHmQ+v52fRHG6xnRY2S9MG7kuoFL2axpjpc294E2dtdc/VyCFP+eFG\npNCjEOH9D8nZ9dwhG2LJEzqeaxXOP4jmdBRLh3qQAV2Tkyp5WVFfyX4fERoi\nwkI289ztUNXoXs1lIRjvKnFBrJEYD0TJ2OEZPDGDLNl68cjyG/iV7ZmVGl6p\nFURh/cWpsL9t1hQMC3SYtr1OR0fcYEK0QJOixXySRPZs7aPGOdU+bzEXHibw\nbVj913nt0LhSEK4tye5UA5TmdqK0xWi9BvCE/me0inLeNQbq2sb+pKy4nMSV\nG4c1f3WUGxG8fue4oURw6ADr98kjvBxl/UGHKr2Go5RRUesfSaw1H+iGAJ5l\nSQdAf4DtmHAK0WIQMLSADYqVPyErzppAh3OJmzZXu5ve+axAKCNHp0kPGt1y\n50GJsJwIBdLpDKc+rSlEI+s4Re6Y2Dhvs855yR7usc7/HCnhZFz1/myVIljb\nVF4C\r\n=3IJ0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5N/6fmy/jwOEN1QWDQl1XHEbDoWlfMx/JwVDktqFaewIgRcQVyTAoo2q4E5uZk58uPKOl+DMc5CMBJS8Z/SfNo0w="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.13.0_1593042850396_0.31891547199581094"},"_hasShrinkwrap":false},"0.13.0-next.1593042892.a4ce04b999dae63334bf1eeb59fae70fec51485d":{"name":"make-deno-edition","version":"0.13.0-next.1593042892.a4ce04b999dae63334bf1eeb59fae70fec51485d","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.9.0","fdir":"^3.4.3","get-cli-arg":"^6.0.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.12.0","eslint":"^7.3.1","eslint-config-bevry":"^3.12.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","prettier":"^2.0.5","projectz":"^2.10.1","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"a4ce04b999dae63334bf1eeb59fae70fec51485d","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\nHere is a list of Bevry packages that have used `make-deno-edition` to make themselves compatible with deno:\n\n1.  https://github.com/bevry/ambi\n1.  https://github.com/bevry/arrangekeys\n1.  https://github.com/bevry/badges\n1.  https://github.com/bevry/binaryextensions\n1.  https://github.com/bevry/cachely\n1.  https://github.com/bevry/detect-indentation\n1.  https://github.com/bevry/envfile\n1.  https://github.com/bevry/errlop\n1.  https://github.com/bevry/fellow\n1.  https://github.com/bevry/get-cli-arg\n1.  https://github.com/bevry/getsetdeep\n1.  https://github.com/bevry/ignorefs\n1.  https://github.com/bevry/ignorepatterns\n1.  https://github.com/bevry/istextorbinary\n1.  https://github.com/bevry/links\n1.  https://github.com/bevry/memo\n1.  https://github.com/bevry/native-promise-pool\n1.  https://github.com/bevry/normalify\n1.  https://github.com/bevry/oneday\n1.  https://github.com/bevry/remove-indentation\n1.  https://github.com/bevry/ropo\n1.  https://github.com/bevry/sortobject\n1.  https://github.com/bevry/start-of-week\n1.  https://github.com/bevry/textextensions\n1.  https://github.com/bevry/trim-indentation\n1.  https://github.com/bevry/typechecker\n1.  https://github.com/bevry/valid-module\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.13.0-next.1593042892.a4ce04b999dae63334bf1eeb59fae70fec51485d","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-BqYACRQro9FSdZq2JJFPX6J6lCoEKYuQ6sBQtZB0DBCH4Uc8D6kYyakQ5jEUjx93MBLEdaUq67xFszF4QUbJpQ==","shasum":"05bc7efebad0114f611fc373cfdf6a8b1a52d92a","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.13.0-next.1593042892.a4ce04b999dae63334bf1eeb59fae70fec51485d.tgz","fileCount":18,"unpackedSize":67184,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8+fOCRA9TVsSAnZWagAAmTcP/2zm0xDV6k/lMTdDveE3\nQvTSUrGdQzh6gVXcpcJxIqxinzf/U8DQQP+hPrS1bqVeFfuq2fQ6SoRQH833\nflnr2oIY45bv0iC3gU3dRB+Pni2pELnt5cocQOqEcib15SR8Q5S7OXqY773B\nMklwq8uBGarZN4s/zGde9r2VuVwyQZNpfceciU/dhviJZhYFC07LYHYsjvdv\nJp3qQx9J4oEiUAV07lFULg8YgmukAWdfLpNxi4Bxj8ciHn1eM3nLXlDMcPFm\nZPzAvt7fVn3TvWfqAUMdnfr381Hy3MolynN5x9XSw5W5MMgND8ap7SVlEHzB\nYQnecQUD8x4mxvuP0X8al1qrlOBpiNpySPZtJm7B9Diw3I0IZAplsOmVrDPG\nyvfzHvLD8Z7ZVpqGuBsmU9cYkrRxWQlj8SvGLuO8ZlnfVfhdBgsr5c7NTFxo\nCqM0k7b+ckEbIv721Or2o/G1q7P6aKypUPKRfUJiFsrgXLlclUZPhYhaJwCX\nsJW7ADsuHxsfzZSD/FJCEhgso+gJBkurs3H0p5x8oz7RXAUCljg6KB4k5lcZ\nKQDe8arjweIVGnj20F2ShTbEuPRH6bQrVrfxqnQUtVKEUyD/ccIN4DOMXnHr\nMJnF9L1pR4GcjfKtTww4/kzdWJ3xJPiWDuY1XJepORYAiiM/55hCtbY5pnRs\n1skU\r\n=bi3J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAMdzIdolwG0tw/jlQAltCAG19u1d9UmnE92YpPif0+0AiB5e5kO3JYfRs7t1JXYdGHbdNqGiE9xFM+ldMgusfKHyQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.13.0-next.1593042892.a4ce04b999dae63334bf1eeb59fae70fec51485d_1593042894031_0.6053613574473402"},"_hasShrinkwrap":false},"0.13.0-next.1593052023.2d969013d2b924b762f64d624a2962cc9166b9b1":{"name":"make-deno-edition","version":"0.13.0-next.1593052023.2d969013d2b924b762f64d624a2962cc9166b9b1","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.9.0","fdir":"^3.4.3","get-cli-arg":"^6.0.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.12.0","eslint":"^7.3.1","eslint-config-bevry":"^3.12.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","prettier":"^2.0.5","projectz":"^2.10.1","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"2d969013d2b924b762f64d624a2962cc9166b9b1","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\n[Here is a list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.13.0-next.1593052023.2d969013d2b924b762f64d624a2962cc9166b9b1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-2ixDWwiN7GK02LD8Sy5MjRGBPdqH40uoF0zX2xeyIb7eHDtiSb8RWDKkTYqwFZjqDmudpNt5cCrzdTAzQoHqyg==","shasum":"a9b1eac95c80da7434ab226eab8902d2db52fec3","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.13.0-next.1593052023.2d969013d2b924b762f64d624a2962cc9166b9b1.tgz","fileCount":18,"unpackedSize":66128,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9At5CRA9TVsSAnZWagAAkowP/131n43f42Ilb6Fj2D+0\nDCncjQu7RwloJOu8j7+BQUg6euflFVal+ki/HPPA0GnBNHucwDbzwQgmn40n\nItv49cfPs/OORug9QKCQPTGt9h7jN74go/sKRhTlRBM6cyg9Gke+97xXAp6L\niC2/7qQD00wH+bJKbRyiZL0m556NOqHeKXevXs8hCTHr5eY7P2eYZ91GoHAA\niqRBMYfyUrukMHprdmVl1P0Xrcnk46t9nFq9RyW/MFC6JRh4v1pS3jp+pBrI\nlMxb/Vn4q7Ubruzt82miFJM7li6WKYKGLNsqxeOYh0nCHvtQwvvM3i7aGS2X\n9ijthEoVoW65rFA/6Ln0Co9eY32jWJ7DnivqflX0x7TC14OwDe7sHr8kqFSp\njwnC5YzPBgUTl3aHxpy38l4CNJ74P0Nlg4vyc8Ys/U2xtUtyckYDXRnBOMv5\nGY7DgaFK47nxx6rvDBNcA73SG40xWH/hSh4JuNPrWorIPWiBi5PpHVDQ4I0A\nVAtuWe75rJ3AzsbIo+VmVFLEpXMHVbgCcdejebw3fOf/HUCypzQx2/aKW9yh\nSvz6/bbvC/XMNTqDJ/8l9aBZPJ8IDC72cTxJuKj/oFgrFgCF7z4O491FwLD0\n5LK1hzJN/9erWdd4IKbQUgRUWhalicT95wSWKLmymJg61BYWwHkZPvB4vASm\nr/po\r\n=UKAi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGod4WT3ye+EbDro4uiofrKrr2aufxqs+lp3WZn7gbWAAiEAjpsRG3ewRPxRJ/qEp6pbP0mNtCT/0d9nANsrJk8R4TI="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.13.0-next.1593052023.2d969013d2b924b762f64d624a2962cc9166b9b1_1593052025127_0.5476553129889019"},"_hasShrinkwrap":false},"0.14.0":{"name":"make-deno-edition","version":"0.14.0","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.10.0","fdir":"^3.4.3","get-cli-arg":"^6.1.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.13.0","eslint":"^7.3.1","eslint-config-bevry":"^3.13.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.8.0","prettier":"^2.0.5","projectz":"^2.10.1","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"971555b61dd11eeff2d670b4fb0d8ec5f9a31c65","_id":"make-deno-edition@0.14.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-JYefOIc78Pqv2uMNNUdId/9vJUPEglwya/8YOs3JxAwIud3aDlVwcwtqqbZVTiwv6K+hLHwx/jxedZN4itU/8g==","shasum":"b972cb1beaf32a41ff17b0b4e5884d2fb63be9fc","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.14.0.tgz","fileCount":18,"unpackedSize":66267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9B+tCRA9TVsSAnZWagAAiqUP/2bW5ppmJnWNt7BtBC8V\nIZV3R0VkHZO88TJ0/XB48cZSzAJIDVTnFfVjjrXGGL8mVL7lmWBajo5gcxf6\nj5thC/8tt927o2e+KVI1vl6ERBGORQkZhbSrXhGw7AHcROJEu759rZcDAmYs\n5HqGiZv5hVUFBnAPjyJSTUTCckFBq3o6BS0VnwpLJKFepqx2CAeqDf0OCzAb\n7dF/jMERyiFzMunrn41cIl5/YmlU4W1rwLcF1GXdOyPwteE02KagxHqKGlJQ\nPtfDC52UzOPLD0gQxhHQw4/05IE66AGVlDtuXByCF3ZhIrw8WcDG450+Mi8t\nZgyH5zU0oc+C6qzZwtMoOKSdEpk6Qhk0Z5W0PftUp3z0F6E2m8BEcQxMxfx+\ngm+f8rZSGKPgXwU+/ysCqfBF5DTLPLm4S8e9dAwSRTiMq6YAbZOXG3Hq9y1+\n65SXQbKNABaQHQjuA0KP/QuAkaj281JzR/6sDG2U7sQImzut3s8B6wYEQv7X\n/vajhf1Unh/qOzrQdPiU+PWfeUTqNREpn6nKfF7Wh++sHztAf8lYxB6IkS6q\n1sDengPuLBjkKGkxG65Zvopey6F+Uk914ar76o5IlBcEdjDmeHTHPkKbfuy9\noQ/tyF3E+UZntYInSk9D72SBtXv0bqLifWewv5na6iSR4zxtLaO5LmPQN9HA\njDrb\r\n=TWN5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDgmnc6pY673Sm5JmpgsfeEWGKgt5Ii5wG3ji6JT2y87AiEAuM9UMOAoKiIeE8FEsJ3Gv3R1EiNNI9DpkcfEwGyRylE="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.14.0_1593057196647_0.5072382875257178"},"_hasShrinkwrap":false},"0.14.0-next.1593057187.971555b61dd11eeff2d670b4fb0d8ec5f9a31c65":{"name":"make-deno-edition","version":"0.14.0-next.1593057187.971555b61dd11eeff2d670b4fb0d8ec5f9a31c65","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.10.0","fdir":"^3.4.3","get-cli-arg":"^6.1.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.13.0","eslint":"^7.3.1","eslint-config-bevry":"^3.13.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.8.0","prettier":"^2.0.5","projectz":"^2.10.1","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"971555b61dd11eeff2d670b4fb0d8ec5f9a31c65","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\n[Here is a list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.14.0-next.1593057187.971555b61dd11eeff2d670b4fb0d8ec5f9a31c65","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-cf8ho2AazUHc2rDarKRfknivK1OIwBx1neTzoGhz5FTiyqWGeGwBvOiJDlB6T3pdK7AkIDBG+WRXL3jEnUTb4g==","shasum":"7110bc653be5be95e8e943980a1c17284db4b160","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.14.0-next.1593057187.971555b61dd11eeff2d670b4fb0d8ec5f9a31c65.tgz","fileCount":18,"unpackedSize":66324,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9B/xCRA9TVsSAnZWagAAzPwP/Ro3PE2snEmxTpquzVpN\ncUPX3KvwChTOYhrxASuXiV+8pT5qcfp0FvFpFjPE5g+FufNGbKPq9339O5uR\nGbL8Qr6QmxNeCvoDKRFsosBcuA1uUdd9rVTnw6rVNb8kXHARrnFCNspmdxMm\nY+aeDJeAys+bOccdVbeoTDv7G/5ntieOxrVH66wGgeMVjnEYpD/MOJgnBT9N\nRTa1Fo2i87HxN3byeMhDvtKDaRj8tj+ilvdaWxhiK7Lb4zZLuN5ympuF64Xa\n1Ykwp1nK5jE5fbhS9tsMKdsDemfPn/HDXpstkXS/3zKIVOB1MDqNFgnnWh4c\n6iqfCfvsQnmNvU2e3BVLhBZS+EYAcyWHj9y1YZSdfTb0Lc76p5EPu5P7MeLX\n0aU+x/m8tj+U6OujtKi2CmpRBW8OkksCQoS6USyx8ZwHAGI122z9Oozk6F9o\nT3CN95Xu3iNAbgi/8ygB/SpqDbV07VjVBt5h7Fg/gEY6AmVXtpCdmSiAZMMd\ntjT43JAri2EL6KWfSxywGVRjdkK54vY4dFNdTTbOzeppLTcOo+pFm4WpmBcr\nSrH02v4HsqhJRV0jlePU8AMQ3CO45oflVwEssUU3V1HXAPHKT30gah841R7I\n7K7R0qDa5mPvCKn36lvoJAwR/iYwFzwnzn1flQrqFQ3hbyY5V4pdIww9gLV1\n6tvS\r\n=fRta\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG5PxaYoYg6uu9qlR2Yun4NKM3Wt/GHiKudBktRIKUiHAiEAv3hOfh+Pdfi11ElZS810pKZBC/0PoSME0A9IaozIx7g="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.14.0-next.1593057187.971555b61dd11eeff2d670b4fb0d8ec5f9a31c65_1593057265110_0.1828154809280027"},"_hasShrinkwrap":false},"0.14.0-next.1595337353.40e2f34e9f0ef30c8ce53375e13cfd7467f4bbf1":{"name":"make-deno-edition","version":"0.14.0-next.1595337353.40e2f34e9f0ef30c8ce53375e13cfd7467f4bbf1","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.10.0","fdir":"^3.4.3","get-cli-arg":"^6.1.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.13.0","eslint":"^7.3.1","eslint-config-bevry":"^3.13.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.8.0","prettier":"^2.0.5","projectz":"^2.10.1","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"40e2f34e9f0ef30c8ce53375e13cfd7467f4bbf1","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Examples\n\n[Here is a list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n### Prerequisites\n\nYou will be running `make-deno-edition` on a npm package that is written in TypeScript and uses ESM.\n\nAny imports from your package must either:\n\n-   be a relative import, that has a corresponding `.ts` file\n-   be a URL that a resolves to a `.ts` file (typical deno style)\n-   be a dependency that has a `package.json` file, that contains a `deno` entry field, or a `main` field that has a corresponding `.ts` file\n-   where a custom package entry was used, there is a corresponding `.ts` file, or a `deno` edition in the `package.json` file such that the deno entry can be inferred\n\nIf you import a package that is not compatible with deno, but does have source code written in TypeScript using ESM, then fork the imported package, run through the instructions below to generate the deno comptible edition for it, then submit a pull request, so that it has a deno compatible edition, and thus can be used automatically in the future.\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.14.0-next.1595337353.40e2f34e9f0ef30c8ce53375e13cfd7467f4bbf1","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-C9OLtbbOAFteONqoqFIXA5RsE0SBujN0f3axca3eg/zvUCnfY5WGcfsaxDtXkDqiTSM8FGzpYUYXvEHkCuQDuw==","shasum":"9aba3ed05314d17a77ccee3fa7e6c9ddfbadbadb","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.14.0-next.1595337353.40e2f34e9f0ef30c8ce53375e13cfd7467f4bbf1.tgz","fileCount":18,"unpackedSize":66324,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFuqLCRA9TVsSAnZWagAAcSwP/i2r3lxEg7JqX9fSCbLy\nH7KFQFjx1kKPJeShSX0qStqEtgut0wy53PrBbCKKmsFR8HXUR8WGHCMDIeqs\npkagt/YD1B2isIeA/ZTH55dVOkmz92KIpdqrLImltx7CBZfGvrxi888RNA6F\nIkIe3jJyoQtvOo2UN8wvQuqtrQQ51SK28sowC7MKZb6/biAJ0t+R0OoaPPUN\nwY/HHsFPMazyyhWqeWvhpO6jsvEsNfPoP2YPzY1qq1jMqg87r6dEy1TW4Urh\nS0MrRLuNAWYuupuspMlhlsrAVAartP7fUeneGP3bCsktxtzyxN4RVTH7Q/0w\nvy2muMmwKXOpiKKWx45/oWxG5S1jga0YTXGVbeI9vGie/Gvk/vYQsZF+46iI\nIbGvjpyDFMf8AFBcqTyTED0LzPps78iLwleyBNzxzzsiHwhiSvcD5pe/i7cH\nUAgQGhbsu4Jysj1TRcXUxTMiqu+Z5bE1J+inQosOBOiOyW6CH5AI2lD+X/CJ\n3xb5a7xF/ZC0vOcDbGZ26oPJZdTFULby4KGB4rhs3TPSKOkLILHR7ZDmEayd\nkNtuvf70cuEKRUro0jBer3s3N1yPUJqMFg+gWREB8WKBoNMts6+D08yfxqh2\n7x39x4/qbbjzs3xiYFn54w6C+TDl6CmeRP1cQGmvC6crewq6iVP33Gn7cQE8\nv3bl\r\n=wvly\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbg7UvYd63DnyCeZ8wfX75ojBOgI2qw5BfmgB53d+GsQIhAN+uYhtDg3eUoM6QveN1cd3vk5WW2B2roE5zIAOs4Gx6"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.14.0-next.1595337353.40e2f34e9f0ef30c8ce53375e13cfd7467f4bbf1_1595337355393_0.9237501477302494"},"_hasShrinkwrap":false},"0.14.0-next.1595381393.14a05906a707c420dbfef5908f76aef702c6569f":{"name":"make-deno-edition","version":"0.14.0-next.1595381393.14a05906a707c420dbfef5908f76aef702c6569f","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.10.0","fdir":"^3.4.3","get-cli-arg":"^6.1.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.13.0","eslint":"^7.3.1","eslint-config-bevry":"^3.13.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.8.0","prettier":"^2.0.5","projectz":"^2.10.1","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"14a05906a707c420dbfef5908f76aef702c6569f","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is a list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n### The Need\n\nUnlike Node.js and TypeScript, which supports unresolved paths, e.g. `import thing from './file'` and `import thing from './'`, Deno only supports resolved paths, e.g. `import thing from ./file.ts` and `import thing from https://unpkg.com/badges@^4.13.0/edition-deno/index.ts`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM). This is because Deno has no conception of `package.json`.\n\nUnlike Node.js and TypeScript, which supports `package.json` to specify dependency versions so you can just do `import dep from 'dep'`, instead Deno has no conception of `package.json`, so all dependencies must be imported via their CDN URL with reference to their version number, e.g. `import dep from https://unpkg.com/dep@^1.0.0/file.ts`.\n\nDeno and Node.js different on their APIs. Several Node.js builtins can be aliases to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nAnd in the end, you need to hope your dependencies are also compatible with Deno.\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and instantly applies the following changes to create a compatible deno edition in a `deno-edition` directory:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mappedd to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are checked to see if they have a `deno` field in their `package.json` denoting where to look for the deno compatible entry file, or if their `main` field in the `package.json` ends with `.ts` then it is assumed to be deno compatible\n\n1. so the more dependencies that `make-deno-edition` is run on, then the more dependents that can become compatible with deno\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n### Extras\n\n#### `README.md` instructions\n\nInside the `README.md` file, you should instruct Deno-only users of your package about your Deno entry point, you can do this by instructing them to use the CDN URL and entry for your package:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\nYou can use [projectz](https://github.com/bevry/projectz) to automate this, as Bevry has done on all of its packages.\n\n#### Complete Automation\n\nYou can use [boundation](https://github.com/bevry/boundation) to automate your entire package scaffolding, maintainence, and compatibility with Deno, Web Browsers, and multiple Node.js versions - generating all the necessary editions to make sure your targets are compatible.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.14.0-next.1595381393.14a05906a707c420dbfef5908f76aef702c6569f","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-0TkoXJoclfZ/iP0tu7MAA3icym+2WMX71wjAD2xGSsq0ypr6pwyydbnwMPZ810BQfVmA0n6SIJq5ekOjWaZeFA==","shasum":"7c016e1e9eb7284fdb27f9baa228b9a1a84679a2","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.14.0-next.1595381393.14a05906a707c420dbfef5908f76aef702c6569f.tgz","fileCount":18,"unpackedSize":69203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF5aSCRA9TVsSAnZWagAAWuoQAIwnzHUHZZ/JJLdPG2DO\n1mIAYCsHtATwyhQEJ7OvatlPC8nBPK300f4C6qrYWBIFjt/R69S1bqT5ikjx\nRbl227rfBr73A2TUShs+pjn5Z4aei+IetaLDoiDAroGO0v9uGxyXhA/Qv1OW\nJVVx+I2bl2pQ5uNIXyCG2ULDLSX/hG7h3LHuISLA6uPKG3KXSoljezwG8k1+\ninck5JhAK5hRYqCGMOKm3mbiQ/dMajhC72qlhLY7BuKFWoyZUvItfsPxFLkZ\nY696bMgwPL59tky31CpnYuAF5UcUtly4jOTxQPD9GYLM7gLz7tWy0MsT6e3W\nx+DLyseMlrRXdhpsf7/wGq66B4of+TXUT67tVeAdCbkmAUOsF3/cUjmznwlL\nzi5RFoOAj9EFTB5TkPabaitnLWv47TVJ1ebhq/0OLgGyXjHob/GzILi5cgQs\n5mXjgmvTyfR/8fY+JY1PDhwQ7al5o1+HdYS4ZBOtYoGH6x45OH5yWSPn/2Dy\ntY4y7nrOxrxeYV3w0MDQgrLb1GdSSgmhHKMvhDzLlaBSHi8ugermzTz0RXkW\nzwGDsHY0DV5SKkIiCzO/v24scRwHNu9oxCgxIfXF9ywMvXbpjgKvwhoznrA/\nYFK4aE0dx93Dy82hu8aEonoVhf2xHs2+Ny6lys6Po38UZPVtI0pFF+brVbvj\n2kjE\r\n=ufNB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDonJkakNs0q8NWxI5HATQ4YkMSNZsGu6mQNhMYA46RcQIgB4zo8qUzr1z6BCDEJIzvXV3nryMx07fcGorebP5ZFnU="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.14.0-next.1595381393.14a05906a707c420dbfef5908f76aef702c6569f_1595381394370_0.5117620069826052"},"_hasShrinkwrap":false},"0.14.0-next.1595381421.78d81cc97e109d5f44a6db5b924d705381e07b14":{"name":"make-deno-edition","version":"0.14.0-next.1595381421.78d81cc97e109d5f44a6db5b924d705381e07b14","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.10.0","fdir":"^3.4.3","get-cli-arg":"^6.1.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.13.0","eslint":"^7.3.1","eslint-config-bevry":"^3.13.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.8.0","prettier":"^2.0.5","projectz":"^2.10.1","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"78d81cc97e109d5f44a6db5b924d705381e07b14","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is a list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n### The Need\n\nUnlike Node.js and TypeScript, which supports unresolved paths, e.g. `import thing from './file'` and `import thing from './'`, Deno only supports resolved paths, e.g. `import thing from ./file.ts` and `import thing from https://unpkg.com/badges@^4.13.0/edition-deno/index.ts`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM). This is because Deno has no conception of `package.json`.\n\nUnlike Node.js and TypeScript, which supports `package.json` to specify dependency versions so you can just do `import dep from 'dep'`, instead Deno has no conception of `package.json`, so all dependencies must be imported via their CDN URL with reference to their version number, e.g. `import dep from https://unpkg.com/dep@^1.0.0/file.ts`.\n\nDeno and Node.js different on their APIs. Several Node.js builtins can be aliases to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nAnd in the end, you need to hope your dependencies are also compatible with Deno.\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and instantly applies the following changes to create a compatible deno edition in a `deno-edition` directory:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mappedd to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are checked to see if they have a `deno` field in their `package.json` denoting where to look for the deno compatible entry file, or if their `main` field in the `package.json` ends with `.ts` then it is assumed to be deno compatible\n\n    1. so the more dependencies that `make-deno-edition` is run on, then the more dependents that can become compatible with deno\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n### Extras\n\n#### `README.md` instructions\n\nInside the `README.md` file, you should instruct Deno-only users of your package about your Deno entry point, you can do this by instructing them to use the CDN URL and entry for your package:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\nYou can use [projectz](https://github.com/bevry/projectz) to automate this, as Bevry has done on all of its packages.\n\n#### Complete Automation\n\nYou can use [boundation](https://github.com/bevry/boundation) to automate your entire package scaffolding, maintainence, and compatibility with Deno, Web Browsers, and multiple Node.js versions - generating all the necessary editions to make sure your targets are compatible.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them.\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.14.0-next.1595381421.78d81cc97e109d5f44a6db5b924d705381e07b14","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-KcQbvLwg8NVd39B24dl7u8CqO3DfPCW+uP4jkRbxxbQrvFqFLJIdtgmZd616PMR3Khz2nDpIAB4HmlYMmm7QiQ==","shasum":"c8ffae6edbc5a0186225a92501afb5b550486907","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.14.0-next.1595381421.78d81cc97e109d5f44a6db5b924d705381e07b14.tgz","fileCount":18,"unpackedSize":69207,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF5avCRA9TVsSAnZWagAANBwQAIv2evw71uxp9sOJ76rD\nNAWcF/5Zo/WJ9jKEMOwCxrE24zjzSdykHv05LpfNVP0bhLTedFXJ6DOsOnhs\ndwn8OUt3cL1UxZUU+PU2SusDmnO+/Ul1PUUwD0BYE/uboMt8vovv2K7Wmb1Q\ndFMvDkg7sgihJ9uV6RdRjwNWYNJ8tjnUu2Yl44mM7sIhZPw3KcbtFsW32P/n\nHZ2viOFU+fX3CLr6akbwnoRsPYcHi8clMozYoVl5JsKQm7nQXObHJEnRkRjt\n09TXBxRAAo6uGRtxQOG48t+FTvl2MyfzRZ7Vvo8UtgDuMIhYDRHw0do0cuic\nVNO66b1/m1BWVyQxWxpykoEvxC3VKJHeQRSgvAj9XjEWaYs+1iSDFSDpTLJX\nnVa1AeG3nDO/VNUlNBACeeODw4s96sd+crKe+xaFTSJeaA6Pw7uKL+5jdck7\nJ+4G/KlmDN3E/0jLF7B28JgE/JpW7DYr+HMHnHgXvxOuSjL4ggadmGoJl/8b\nOwrHEsvdXRF2ylvGZUIOm/NZa7RKlWLGjrr8UDrLdlTwY/3r5HGIgLr8Bo5j\nLAd/r7ZCZizZaTbb+27U2I29rs9mBrV7fJgiMBGiF6oi6iVhdpSCPfsaAao7\n7K3COeFZaEIM7kesl3b/QOECgc+bS8VXATJOCOpNK8qzQemUClKKVuBia7pT\n+2IW\r\n=7YTF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAv9vFmPMDjvu2Lo+3TKZK43/MpADD3hVLErJf84hTJeAiBOSyXLz1Doa1A8qiqu0JJy27Ov5iVgvqpkPjgU8b1f5w=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.14.0-next.1595381421.78d81cc97e109d5f44a6db5b924d705381e07b14_1595381423190_0.66769404525608"},"_hasShrinkwrap":false},"0.14.0-next.1595381916.431416ebe6a0caa455f2ac9551b76f8cf5fc4ca7":{"name":"make-deno-edition","version":"0.14.0-next.1595381916.431416ebe6a0caa455f2ac9551b76f8cf5fc4ca7","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}}],"bin":{"make-deno-edition":"bin.js"},"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"3.10.0","fdir":"^3.4.3","get-cli-arg":"^6.1.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.13.0","eslint":"^7.3.1","eslint-config-bevry":"^3.13.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.8.0","prettier":"^2.0.5","projectz":"^2.10.1","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"431416ebe6a0caa455f2ac9551b76f8cf5fc4ca7","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is a list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n### The Need\n\nUnlike Node.js and TypeScript, which supports unresolved paths, e.g. `import thing from './file'` and `import thing from './'`, Deno only supports resolved paths, e.g. `import thing from ./file.ts` and `import thing from https://unpkg.com/badges@^4.13.0/edition-deno/index.ts`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM). This is because Deno has no conception of `package.json`.\n\nUnlike Node.js and TypeScript, which supports `package.json` to specify dependency versions so you can just do `import dep from 'dep'`, instead Deno has no conception of `package.json`, so all dependencies must be imported via their CDN URL with reference to their version number, e.g. `import dep from https://unpkg.com/dep@^1.0.0/file.ts`.\n\nDeno and Node.js different on their APIs. Several Node.js builtins can be aliases to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nAnd in the end, you need to hope your dependencies are also compatible with Deno.\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and instantly applies the following changes to create a compatible deno edition in a `deno-edition` directory:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mappedd to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are checked to see if they have a `deno` field in their `package.json` denoting where to look for the deno compatible entry file, or if their `main` field in the `package.json` ends with `.ts` then it is assumed to be deno compatible\n\n    1. so the more dependencies that `make-deno-edition` is run on, then the more dependents that can become compatible with deno\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.14.0-next.1595381916.431416ebe6a0caa455f2ac9551b76f8cf5fc4ca7","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-QSLyhUbQpZN+dSSzefHnDFq9iqQ48PwZA7hnZaAvlqbEHv/dRJnVH+iDAWZohAl3qfEoRapLpUTIZlnWIjSW6w==","shasum":"c669f0e85353bfb9431d1576b49837447ecbbb31","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.14.0-next.1595381916.431416ebe6a0caa455f2ac9551b76f8cf5fc4ca7.tgz","fileCount":18,"unpackedSize":68636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF5ieCRA9TVsSAnZWagAAQhgP/19d5aAh0/zfYH4SdfLu\n4b9IpF8ryIws3H6l23UF1Ei41ZBMJyUH/gW6JS9bJiqoLpj13T1nIVAM2d8B\nNBbqX8WkHxlY4VY5TgB52T7MAbEng/XmwPYYYPberzKO/wmn1IO2vVkTIGz0\n7DWE3SXTn07ycSVn34yzdeqqyeDcD++8h3npRhCbQ/LDtmLdwjs54YWDdPAt\na4wUbpKZVRc4BNbqzByc/ckmax9t4nZYE7rdH8rAgw5elFFP7hljfQSATmev\naFqma5UveJkW2kDHfDR2jXsUpx5ezqjkZ20nHXTiiN3S2Z/sHqXRAzEbryqc\nA0eX2u5TtjSAYsQslVYmRyRtfO8Cxu1NmkcoJ3HApfbnvQSh/Q2rObz+MtGB\nwOFFRKoUYP5F0KVNfw2IzE5sOurS/cdjWWW9x7/6jAVDYZ0GOyqH0mNQVCO5\nkwSK4AgPGnDybY5ZkvjynV9S0uzwAFwek9fzumaZJKqd7u03pCJKEKWpgeoU\nMnxJGveVTZpjOcqqVkkaHGaC52HA2J67U6gGQmKUVRdRZHVd/f5cOFZk85qu\n6Tsa1u2ugOD2ISaj9qus0ChIx1NyFNgmIh8h2vNWvLKWhFIl3mrcg0vrrCft\nG0aNGg2f+vED0lZQac2xFvnoPbG6iMwGMMee7zf6EYRmwzzlpUUpCMuX5V7Z\naxVZ\r\n=qfoc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEBFesMRyuC9QkHzMd6oPm+ayufoRM8f/BzYjJtgWMZVAiBfYjun/wLVmEK5raW0f6q+qCyguIqedca4NXw9vCyWhA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.14.0-next.1595381916.431416ebe6a0caa455f2ac9551b76f8cf5fc4ca7_1595381917625_0.8413085777607541"},"_hasShrinkwrap":false},"0.15.0-next.1595383280.f4a7638842dacefbb0f9ddefc5ba4ae056264c18":{"name":"make-deno-edition","version":"0.15.0-next.1595383280.f4a7638842dacefbb0f9ddefc5ba4ae056264c18","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.14.0","fdir":"^3.4.3","get-cli-arg":"^6.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.18.0","eslint":"^7.5.0","eslint-config-bevry":"^3.17.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.9.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"f4a7638842dacefbb0f9ddefc5ba4ae056264c18","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nMake a deno edition of a npm package\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is a list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n### The Need\n\nUnlike Node.js and TypeScript, which supports unresolved paths, e.g. `import thing from './file'` and `import thing from './'`, Deno only supports resolved paths, e.g. `import thing from ./file.ts` and `import thing from https://unpkg.com/badges@^4.13.0/edition-deno/index.ts`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM). This is because Deno has no conception of `package.json`.\n\nUnlike Node.js and TypeScript, which supports `package.json` to specify dependency versions so you can just do `import dep from 'dep'`, instead Deno has no conception of `package.json`, so all dependencies must be imported via their CDN URL with reference to their version number, e.g. `import dep from https://unpkg.com/dep@^1.0.0/file.ts`.\n\nDeno and Node.js different on their APIs. Several Node.js builtins can be aliases to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nAnd in the end, you need to hope your dependencies are also compatible with Deno.\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and instantly applies the following changes to create a compatible deno edition in a `deno-edition` directory:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mappedd to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are checked to see if they have a `deno` field in their `package.json` denoting where to look for the deno compatible entry file, or if their `main` field in the `package.json` ends with `.ts` then it is assumed to be deno compatible\n\n    1. so the more dependencies that `make-deno-edition` is run on, then the more dependents that can become compatible with deno\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.15.0-next.1595383280.f4a7638842dacefbb0f9ddefc5ba4ae056264c18","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-fFo0q5LTidfvwAcCpJFGw5rOl51fg0aKtE8ZOGGiKneSViwAQsx7lBY7nPGvgPtkjIldq3MMd7Z1dsSVrNtmMw==","shasum":"d992dbcbe9cdf45b18e26ccae026578a80938dcf","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.15.0-next.1595383280.f4a7638842dacefbb0f9ddefc5ba4ae056264c18.tgz","fileCount":24,"unpackedSize":87893,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF53yCRA9TVsSAnZWagAA8vQQAIMfk+b3D55lPB2CwGhJ\nEttzsOKsm98gc3cVOu1bbhzO6kumqkEX8pM8v08AkNfx7/R6HHYJ3O6jCbYg\nsxr0Yk4jfhY44tG1j/1DUBMFR4wEKM/c5zEcXZLw4eM3c/A7ZRc2ZPlLwSu+\n6TaYpzR9W+zxHmW5AzoYX3WBf0E4J/e9Tq+Q3B7W4KsMkRdfMLwaeIVd3all\nSPJ1hCx9kH+3EzqfJxawcrxIV357j3Hy07SfH1OkSoJdCwaSy86rA+D7N5ii\nLh/5ugUfpk07gEBzTkBh4S+eDmR++9ql/g0bec+6Tg9Y4NovTs5CXtnjVgLz\nYKeTT4mU632d0/bAq4C72mJaXUu7dxMM+ARggkMibSeBApAgvIsjebWiQzfD\nSjyY0czVOoFvFwAK5J4eVaNhoayOr+fFzav9flUcbbjuYwHS/DYmIQ2P/cjf\nWMy/3vVihUm68DKImXkMwyOg5uuSozKpASRL9SGGXRv3Cxy85Tk6HCXI1Qz5\nGQ0pgIZq8CGsRFJ5c/K5LM/UBrXep5R9qpj2rWGGhndrnfoliklBJIqirjXR\nOPAiapvAEA4bEq+x1QpZRIO/SyV+rV22iCUNHoOwoxo4rcH9sOETqRpl4MAy\n3yfyHoSs76FBkgGLyRM8pMy7go2/QDosoloJEfbXO5EMkkWPjPGtp3lN9bUV\nqQMC\r\n=HHDT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB6ToM0iMeqCnXKm2G7+OfxSGZoqus3ma0exovKsaw8iAiEAvk916mLZMFdGCdkFgQIBnUaoPgIDmMUj7r6G6tmdsY0="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.15.0-next.1595383280.f4a7638842dacefbb0f9ddefc5ba4ae056264c18_1595383281777_0.41703458895528334"},"_hasShrinkwrap":false},"0.15.0":{"name":"make-deno-edition","version":"0.15.0","description":"Make a deno edition of a npm package","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.14.0","fdir":"^3.4.3","get-cli-arg":"^6.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.18.0","eslint":"^7.5.0","eslint-config-bevry":"^3.17.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.9.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"f4a7638842dacefbb0f9ddefc5ba4ae056264c18","_id":"make-deno-edition@0.15.0","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-9d/bIlVIs/iIOZaRQ9VdQMeG8P7r53lXBQa0fV89DQzuNVWuVYtj6XbbYSHi7W3nveVpI4JaBTz2lvv0rSVjaQ==","shasum":"f4213f12dd176b5a92b94a8dde1e1df8ae829dcd","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.15.0.tgz","fileCount":24,"unpackedSize":87836,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF54GCRA9TVsSAnZWagAA1Q4P/2ysvFqdUCvPPSzXVjlw\n976lv85VtIe+n7ygYIm0bKZ7B6XoX0pNtB4KTpB9DPLljHCv32ffQ8PGEyEX\nTLo/JQmPsvkjTMRLu1pMoKRO6Rb9iffOWfxFnkGwC8Uv6C/jm9Kvih9VrRaL\nrWvlSZc7WwAacfJJFOYjY3/tjlD24rf3Op6hLbIlZklyhPoDBTZdbgG/Ftcw\naFBkgvYBN3KtVKMD6Ogp3RMtsLc5kG3DdjTgxmm0T/+Zhoss7yXMGInfGzap\nefumRQL8RUsQpmb6EIEXS4fwWlHWa5mxQzM7ZwNLRjWd3jen+AW04/8wNTUx\nJOY9uJO1badFYE8gQhMBhAbZbO0LxweEYpUO0ZsLnANDoSc0oCqBDR0VQPBm\nwUc/Sc5g8ZcpdjslEXQBzFFgNBm89ssI49WEDJhOTW7zgQXctKvbT1PsoG+4\nvaTf03HrYncYkP2FLBeoNr0wq+s0DFbWzNO7wUzaqTTjHcm79HZjdwvt73Qm\npekfcqAjh0jU56Ua8nrRSMHrSSK8lcZCTXQrLc2hgZg6Wdv77IWtuqcUfmvB\ncKXDUHy76Rkz2mY9BjL1HfJGRR85g9jmmeJDoe7lQrlTKgMUDHAV+t3E1fh3\nDdd0pdbHgolX8n2hRfbWMS27SM4pxQjCkLfh8pX2lqNqleT/8ad3/IR6reLs\nGIs0\r\n=T2bB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAD+Yyiwp2kk6CrEi9Yi8xpjze11d7RpxFhE3OdZtrk5AiAom4ex07knYO9WkbqZno0U2DrRbBt4feCNhuBP5MgbzA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.15.0_1595383302134_0.030908355535353982"},"_hasShrinkwrap":false},"0.15.0-next.1595543405.07ad14dfcf99a67a09cb7a65ff80f6b698f363fb":{"name":"make-deno-edition","version":"0.15.0-next.1595543405.07ad14dfcf99a67a09cb7a65ff80f6b698f363fb","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.14.0","fdir":"^3.4.3","get-cli-arg":"^6.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.18.0","eslint":"^7.5.0","eslint-config-bevry":"^3.17.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.9.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"07ad14dfcf99a67a09cb7a65ff80f6b698f363fb","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is a list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n### The Need\n\nUnlike Node.js and TypeScript, which supports unresolved paths, e.g. `import thing from './file'` and `import thing from './'`, Deno only supports resolved paths, e.g. `import thing from ./file.ts` and `import thing from https://unpkg.com/badges@^4.13.0/edition-deno/index.ts`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM). This is because Deno has no conception of `package.json`.\n\nUnlike Node.js and TypeScript, which supports `package.json` to specify dependency versions so you can just do `import dep from 'dep'`, instead Deno has no conception of `package.json`, so all dependencies must be imported via their CDN URL with reference to their version number, e.g. `import dep from https://unpkg.com/dep@^1.0.0/file.ts`.\n\nDeno and Node.js different on their APIs. Several Node.js builtins can be aliases to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nAnd in the end, you need to hope your dependencies are also compatible with Deno.\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and instantly applies the following changes to create a compatible deno edition in a `deno-edition` directory:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mappedd to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are checked to see if they have a `deno` field in their `package.json` denoting where to look for the deno compatible entry file, or if their `main` field in the `package.json` ends with `.ts` then it is assumed to be deno compatible\n\n    1. so the more dependencies that `make-deno-edition` is run on, then the more dependents that can become compatible with deno\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.15.0-next.1595543405.07ad14dfcf99a67a09cb7a65ff80f6b698f363fb","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-XLN7y2WONUsgzEzIZRhTlmTaBwSC076zvlwoJtT09px4BSgq4Qgej9Ai7nBLY05E7Fip69LSRAL8geHhFLlcYA==","shasum":"4af9b2bdbdf66cd2edba540f9bf5292c1a749459","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.15.0-next.1595543405.07ad14dfcf99a67a09cb7a65ff80f6b698f363fb.tgz","fileCount":24,"unpackedSize":88050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGg9vCRA9TVsSAnZWagAAP9sQAI93OfDx888N4XPFabj6\n3+GvV+rcZ6RBDqKIrZOhCirLcYSlJ0oPxv3xgUP0Y2qbfSMX+sk2JtdGRTiU\nvywGipq9xfSB6xCYAuEJJRicJ1iUoOWkdylbswGqHA8gzAoQ4QISo23ofouw\nzYaqBBCzo8NTp1ED/0Qw5oUryrlIm9WleViW8qT3CMBtLP5kwomMCZi2NDGu\n2OVwtjwpIswte2GbXDsAG+SIugN5/Rr/h8WLDs6zdDdYWZapLxo2I1Ljn0U6\niQy63yMmOsx9D7wC6Srv3/tiRSPDi7NyNOAO/MFxltXNVJ+LKqFNOyZNF5+N\niQaCaXYbtce/8CqQPG/0ZNuHhX4NxMfx3T6hSC9J9wACZDAGZ1rZcVVSHeQp\nHjc1beSES14e5DAzK4F/sI6Jth10CBKsMBCWm6noFt7EdBcMnPNOhPlAj4AH\n6P+rX0DMirX0FvuPFYld5fKNrdhPRLoqCCTYei7I1h+Ug0+V/3j/xajS/F3Q\nWyWo3AAfcLYOWWB2nUDiwKoTDdvArJEHJYPHcKZfH9wBEpbokAK3mUG6WPTG\n/HahnUWP2nsYuBwWuSUsyCUg7fFvaeSLPRP8rPQCkF1QaA23VqtnD6Y4kpJT\nv69YIMgHaOkMaul8x+nC+sFYiec55Pmt9KRlfwI77eQQtY96NZEVa5ozriSh\nIgSS\r\n=kI8S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHtiWC7vEM6+8Rm5iP22I/xIsx7MjI7jdDvCMdCzKWjTAiB9/6qjspe45iCbCipgbk6R+AnZHW1f5nOmvhxTG7L2IQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.15.0-next.1595543405.07ad14dfcf99a67a09cb7a65ff80f6b698f363fb_1595543406620_0.04148825591022587"},"_hasShrinkwrap":false},"0.15.0-next.1595543510.406e9ab96087ea427604faea0e236172e467add1":{"name":"make-deno-edition","version":"0.15.0-next.1595543510.406e9ab96087ea427604faea0e236172e467add1","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.14.0","fdir":"^3.4.3","get-cli-arg":"^6.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.18.0","eslint":"^7.5.0","eslint-config-bevry":"^3.17.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.9.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"406e9ab96087ea427604faea0e236172e467add1","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is a list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n### The Need\n\nUnlike Node.js and TypeScript, which supports unresolved paths, e.g. `import thing from './file'` and `import thing from './'`, Deno only supports resolved paths, e.g. `import thing from ./file.ts` and `import thing from https://unpkg.com/badges@^4.13.0/edition-deno/index.ts`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM). This is because Deno has no conception of `package.json`.\n\nUnlike Node.js and TypeScript, which supports `package.json` to specify dependency versions so you can just do `import dep from 'dep'`, instead Deno has no conception of `package.json`, so all dependencies must be imported via their CDN URL with reference to their version number, e.g. `import dep from https://unpkg.com/dep@^1.0.0/file.ts`.\n\nDeno and Node.js different on their APIs. Several Node.js builtins can be aliases to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nAnd in the end, you need to hope your dependencies are also compatible with Deno.\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `deno-edition` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mappedd to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are checked to see if they have a `deno` field in their `package.json` denoting where to look for the deno compatible entry file, or if their `main` field in the `package.json` ends with `.ts` then it is assumed to be deno compatible\n\n    1. so the more dependencies that `make-deno-edition` is run on, then the more dependents that can become compatible with deno\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n### API\n\nAPI usage of `make-deno-edition` is to come.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.15.0-next.1595543510.406e9ab96087ea427604faea0e236172e467add1","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-y/pVVMbJCup1ZqEqaZgj0J7Fsls3bswbRhf5FomyIX7ebtuAaqirOqQqSj1jWxxfgrrNJQUmLGEdGnuSYIKJGw==","shasum":"5a4645801beba4a821426600160c7742a5b80c6d","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.15.0-next.1595543510.406e9ab96087ea427604faea0e236172e467add1.tgz","fileCount":24,"unpackedSize":88084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGg/YCRA9TVsSAnZWagAAgCwP/2Q9XCacYvZfLZPsyNP6\nACxWVruAyiQUg3M15UGsQ6PLtck3RMJj6vLhh2yieiUqfQz8l8gg0f4ljTvn\n3FyDZBwGx+UrCG2dfKlgJfiUsGNMaCEdXklf/Bd/MS1d5QJl+FPGZujZHrBv\nkDnN6HyaWDfuPD6hVHWILIkEZquHKvJAJ0gtViMK2b27EPCV212IJJ0xyNVi\nkhE/SlK9uPPIosIsSKwJ2CSsZtL92SioOC7DHMFSgi6qGtcuNfFA77ZkoQsT\nKs5uChTtk84wnYEU9Jq8zOp10p555/cJHyQQiL74XfxjjVVITshZGRM7RulM\nNZtyfqypgL212DhJhX9FQM0HLC83jGn+wmkN3H3gpVBP8C7SNi1Fs5sT2X1n\nAoK0fRJwyhf/wNmKwZjs3TCzFWZ+ATCjotaNvio6lue665b208HKl1vFqXLV\ntwCi38Ti8nL4wPRMICOFPfVWSKwZecjs/TRgENRfkZLxFUa9U1ALsHPMCL2n\nTcfI6n0gyKRmuB8PKR8HmFLBcN9mNlVTUniFJ0AjCKQDXv8BfM58WZ/NAHAQ\nwCqo4N3QOx7PsAK9s0EkCkG7vdYUvngrhu8dvnEpRoBegIOMI3ilEx9Uay5G\ngLXGuPK1jb+nuDSo9GcGr+g56/cK0crEPl/41rJbtZCQnRTYIkbII5w/nHFY\nmsiQ\r\n=0ci7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEihbICHWlkqStWr2kXvUmwBa1/0B3pUA0sGHu07uFrVAiB9VkR5PNNDLamKoS3y83IwZEhCu30qMf681LIchtwAFg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.15.0-next.1595543510.406e9ab96087ea427604faea0e236172e467add1_1595543512212_0.15647433749815476"},"_hasShrinkwrap":false},"0.15.0-next.1595543534.2440e609391f4a78f18c661dbb8b2280df38e1c2":{"name":"make-deno-edition","version":"0.15.0-next.1595543534.2440e609391f4a78f18c661dbb8b2280df38e1c2","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.14.0","fdir":"^3.4.3","get-cli-arg":"^6.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.18.0","eslint":"^7.5.0","eslint-config-bevry":"^3.17.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.9.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"2440e609391f4a78f18c661dbb8b2280df38e1c2","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is a list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n### The Need\n\nUnlike Node.js and TypeScript, which supports unresolved paths, e.g. `import thing from './file'` and `import thing from './'`, Deno only supports resolved paths, e.g. `import thing from ./file.ts` and `import thing from https://unpkg.com/badges@^4.13.0/edition-deno/index.ts`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM). This is because Deno has no conception of `package.json`.\n\nUnlike Node.js and TypeScript, which supports `package.json` to specify dependency versions so you can just do `import dep from 'dep'`, instead Deno has no conception of `package.json`, so all dependencies must be imported via their CDN URL with reference to their version number, e.g. `import dep from https://unpkg.com/dep@^1.0.0/file.ts`.\n\nDeno and Node.js different on their APIs. Several Node.js builtins can be aliases to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nAnd in the end, you need to hope your dependencies are also compatible with Deno.\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `deno-edition` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mappedd to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are checked to see if they have a `deno` field in their `package.json` denoting where to look for the deno compatible entry file, or if their `main` field in the `package.json` ends with `.ts` then it is assumed to be deno compatible\n\n    1. so the more dependencies that `make-deno-edition` is run on, then the more dependents that can become compatible with deno\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.15.0-next.1595543534.2440e609391f4a78f18c661dbb8b2280df38e1c2","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-FiWtlt4ApmIvKe2mEbzrlBFE6LerKjoZx+aMzoiIvcvk04PbfuggbfIBySJHCxw447XNq9zNuyhy2uLkVnA61A==","shasum":"ba621f897eff5c9a3cc20773ffe03a18917cdd0d","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.15.0-next.1595543534.2440e609391f4a78f18c661dbb8b2280df38e1c2.tgz","fileCount":24,"unpackedSize":88029,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGg/wCRA9TVsSAnZWagAAyZMP/Rid7/Te4clmMlUqUOHc\nKr45pNxH+nDy6cR5uXAx8V6iejupXXdxoxwXywxw7etSkouZ01nnQr/btChD\nIniNReMcL+reUIKflDoOpplJQmujHZ2nuViOKiBrLrV+Iz9DOS/T+vVAQ/iK\nhmZJLrcz+AI1+JQIzTO+PKX7vbWvJ66hnxaAP3CKWt1SEMVb9Kb35FVzI2wp\n/6rCmhTy31zKCQvm1WZvpAf170VRnlPPQvlhrQySdlosd+ggWAkOSrTHZ0Ru\n82UJrT/OJA+UaT5Yiy8JIvw0YaKyc72WZNHjgeYdIy+0XSLpPprEQGdCHdJQ\nJD0WLtrcgqTVcShK4/TUvUNFoOLkJ/0cKYYcdfdPhpcK8nqGHuce6FGGwK3V\nk7vaNVsX+/tZ9TZtgz9l0H2HnrP9qtEOUH1x3rNuM48aR78GsmThbq27Z+2M\nftmmLvILPWRYre/qIyBBh99nRLnXGU5ueAyoyBd71+nbXC13J7cmbnVDJ7DF\nJtJAaKtJFh1cpHKyhs08TfUhDNnYaNOw45swaGbwUJ8Sgk9MHm9t2kz405sm\nNLAhb93L5Bt0QKT/JnX0pmCfElCWJxPRREeJ8dPTRt04cyOps5AAGj+VOhSV\nsiSWe770pjzJ09x/VU8JVhR6U2SzGpQ8Oi/BReha80d2XrApXyr79P61ubzI\nXiNe\r\n=s+Al\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGl9fmlf6edtb2Mot2DcsUweLPM32Z+UkH0lMehtlD/RAiAtQvMylbuy4UG4ftfRnbNlG0ejfamhljCNyzKd+2M8rw=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.15.0-next.1595543534.2440e609391f4a78f18c661dbb8b2280df38e1c2_1595543535936_0.7985018424383235"},"_hasShrinkwrap":false},"0.15.0-next.1595543877.b86fcb9f1082c36aacdc16db23bfdfef5da2d5e7":{"name":"make-deno-edition","version":"0.15.0-next.1595543877.b86fcb9f1082c36aacdc16db23bfdfef5da2d5e7","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.14.0","fdir":"^3.4.3","get-cli-arg":"^6.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.18.0","eslint":"^7.5.0","eslint-config-bevry":"^3.17.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.9.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"b86fcb9f1082c36aacdc16db23bfdfef5da2d5e7","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is a list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n### The Need\n\nUnlike Node.js and TypeScript, which supports unresolved paths, e.g. `import thing from './file'` and `import thing from './'`, Deno only supports resolved paths, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM). This is because Deno has no conception of `package.json`.\n\nUnlike Node.js and TypeScript, which supports `package.json` to specify dependency versions so you can just do `import dep from 'dep'`, instead Deno has no conception of `package.json`, so all dependencies must be imported via their CDN URL with reference to their version number, e.g. `import dep from https://unpkg.com/dep@^1.0.0/file.ts`.\n\nDeno and Node.js different on their APIs. Several Node.js builtins can be aliases to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nAnd in the end, you need to hope your dependencies are also compatible with Deno.\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `deno-edition` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mappedd to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are checked to see if they have a `deno` field in their `package.json` denoting where to look for the deno compatible entry file, or if their `main` field in the `package.json` ends with `.ts` then it is assumed to be deno compatible\n\n    1. so the more dependencies that `make-deno-edition` is run on, then the more dependents that can become compatible with deno\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.15.0-next.1595543877.b86fcb9f1082c36aacdc16db23bfdfef5da2d5e7","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-8uQEFS5xJ3REHVjwQzSC85xJCt71U4VNxOKn171sD92XWMBqMBbsvWkx8mGzbMolpez9gDO6bgFwJiAt/pStFw==","shasum":"d8bdf03f1e2bbfc66fff9c07da964028eb954a54","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.15.0-next.1595543877.b86fcb9f1082c36aacdc16db23bfdfef5da2d5e7.tgz","fileCount":24,"unpackedSize":88033,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGhFHCRA9TVsSAnZWagAA9rYP/2lDo7h60YpJpJf0CfwM\nuANMWeAzxkREDP66S4gGXim3N92NIRsP6zHFlHzcH6Xrz+2u+I5VWTcT/hKF\n6yursivgHRANnPMyqg279Qy0Z4GR9AyWXx0uSHhuFl1NWIfikIKERLv+goyY\nT+g+8QZrMo/hxL82YvJjNM4ef2/3CLjF1qqJaVjMO6sHJGSFHKbJO348zlXI\n93KuMFEv60l7vUtp/5i56ptKOINkwsQjwr7Fd2VVH9KKvEYWkLkD/eMShjOa\nHK1BtDo1R2XpVxLxQR+SEn+tFCeuxBumxTXfdadDpv85GXXnOIkoVupJWIy7\nbMzzWSh5YWvLG0BhGOaRcyPzeIJW75WoChQATaNK6ZRnFUykEtYCtvwPcFpv\nOg1+GAEh3d6VW/IbsFfr40ztgQBR3xx7vntV+ejljdWzqhwEAqv3WKa8cW8A\nApQGIi6FuPwnrIl3FafVvww6F4eVxpaBUMyqGLvPRW6XVvoNb1wbfuYWxxlM\n7p5o/EgSV+SwB0ohn7VX0QELzDeCyORBikJ0M1SXn1CQuXWEqRMgbNAnUHCh\nmXSaYkfq9G6Y7hI0tBsKCSCt7zttPOeeWiEKBn1E65jde7ycob7mbw4zjztV\nRUwOEy2lHxKN9xc54vfOFNXQSqNw730hn99bqUKvBY1Xxso5PsIPv9Ihk+4o\n8gLm\r\n=yrci\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDAX5aGa+m+HmT8A4sdz+L+6YQh3qZTIIymr1NWu5q+QIgNb0umP5JDveaXtuQF+AoLPXhb0hz3J9EXyQltD40teo="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.15.0-next.1595543877.b86fcb9f1082c36aacdc16db23bfdfef5da2d5e7_1595543878980_0.050298711563862675"},"_hasShrinkwrap":false},"0.15.0-next.1595543904.19c08022d07342877caa61e28559fead3275ae95":{"name":"make-deno-edition","version":"0.15.0-next.1595543904.19c08022d07342877caa61e28559fead3275ae95","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.14.0","fdir":"^3.4.3","get-cli-arg":"^6.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.18.0","eslint":"^7.5.0","eslint-config-bevry":"^3.17.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.9.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"19c08022d07342877caa61e28559fead3275ae95","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is a list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n### The Need\n\nUnlike Node.js and TypeScript, which supports unresolved paths, e.g. `import thing from './file'` and `import thing from './'`, Deno only supports resolved paths, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM). This is because Deno has no conception of `package.json`.\n\nUnlike Node.js and TypeScript, which supports `package.json` to specify dependency versions so you can just do `import dep from 'dep'`, instead Deno has no conception of `package.json`, so all dependencies must be imported via their CDN URL with reference to their version number, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\nDeno and Node.js different on their APIs. Several Node.js builtins can be aliases to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nAnd in the end, you need to hope your dependencies are also compatible with Deno.\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `deno-edition` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mappedd to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are checked to see if they have a `deno` field in their `package.json` denoting where to look for the deno compatible entry file, or if their `main` field in the `package.json` ends with `.ts` then it is assumed to be deno compatible\n\n    1. so the more dependencies that `make-deno-edition` is run on, then the more dependents that can become compatible with deno\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.15.0-next.1595543904.19c08022d07342877caa61e28559fead3275ae95","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-eyRxgzzfScoz1hKn6sjFpco8ZOEBDC2kuR3L6nAxdD/9dE5r9zP6yfPW9Aqacv8BX06vFYjgADx7LEr1FIGDEg==","shasum":"0ffb0bbaa66767a9f35393797b6333db42e39f98","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.15.0-next.1595543904.19c08022d07342877caa61e28559fead3275ae95.tgz","fileCount":24,"unpackedSize":88035,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGhFiCRA9TVsSAnZWagAAtEwP/RsKURNrGkxsyvnmtpYY\n6XhH6Qrl2NjEfDH2Rcol+ER8R3SS9hKgiysN4+dF3k4ebCgR7vh60Qkhq9h4\nlk/eFmz/LqRgDN4cYe3tYNxyL4yhGsfDyvv7Osl9ITjPTIEXaxV62jDI2FrQ\nCb8Wu9xwhRfQzdNaGWsDypqK5TI33ad/o/NsWGm00RghfUmyO9FW6DZUeALr\nLMSMWofM8YOIwFiGDOPUmtptOkMg5tVx00RzL41K1nsPMdPXPx16dT1X6tR+\nZ8gR6rE4PQdCxAI1hlYJ9PH82XXZPDwNGfev+uZvRe8R/swgCf2CAn6dUxcv\n4dY/sfI8ksvhEo01ixtcPuHdCfle+s0VZGpVJdaqQxRgFMfjAr2S624rCYRv\nq2tV4ZJ2YY7FwmqSIdAH61/yeJXIkVwof3lwuIZVaRcvOSsC4RIbHjXkUwy4\nlAUd9+DQwKJqR0JCAgsczlm6zJy8Irk1TgVP5SuG6r2a8+YeK+mBXp2iTJ1l\ndpMzE1e9sVZE01C/tPSYujvSXQKBLIqwrr15TImjR/KIQSBxdQINmL+u2STQ\nY6xql+af3ipJ97QdftzzqHTc1lDagb4fN0L3aKc5Kd0M8H15bUHR+PwWJVjk\n8WV497JTxy33FjNpsBnCylgSiwNQl7JwWhUxrf5j7Ed8rI4M4DDwmdNUAZnB\nlf8X\r\n=Fl7m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE6P/5RRnsFSTJ5JieH9zbEeWj4kWIdY53Fpg92EHOEBAiEAs2/mGcfpl3iCB+tdYr2W5hc9xvKlESyvUXyJzJtz4fs="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.15.0-next.1595543904.19c08022d07342877caa61e28559fead3275ae95_1595543905567_0.828558793660642"},"_hasShrinkwrap":false},"0.15.0-next.1595544405.67f1642dda9043a09fbe6dfa0b17bf846584879f":{"name":"make-deno-edition","version":"0.15.0-next.1595544405.67f1642dda9043a09fbe6dfa0b17bf846584879f","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.14.0","fdir":"^3.4.3","get-cli-arg":"^6.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.18.0","eslint":"^7.5.0","eslint-config-bevry":"^3.17.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.9.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"67f1642dda9043a09fbe6dfa0b17bf846584879f","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a write(chunk: any): any method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\nUnlike Node.js and TypeScript, which supports unresolved paths, e.g. `import thing from './file'` and `import thing from './'`, Deno only supports resolved paths, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM). This is because Deno has no conception of `package.json`.\n\nUnlike Node.js and TypeScript, which supports `package.json` to specify dependency versions so you can just do `import dep from 'dep'`, instead Deno has no conception of `package.json`, so all dependencies must be imported via their CDN URL with reference to their version number, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\nDeno and Node.js different on their APIs. Several Node.js builtins can be aliases to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nAnd in the end, you need to hope your dependencies are also compatible with Deno.\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `deno-edition` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mappedd to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are checked to see if they have a `deno` field in their `package.json` denoting where to look for the deno compatible entry file, or if their `main` field in the `package.json` ends with `.ts` then it is assumed to be deno compatible\n\n    1. so the more dependencies that `make-deno-edition` is run on, then the more dependents that can become compatible with deno\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.15.0-next.1595544405.67f1642dda9043a09fbe6dfa0b17bf846584879f","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-fLdoIzHE3Wh4orYc0oiiPn6uafVwpQ3qMkizY1we4+9xsAyb5fgI+USGxKNfDm9yfI1r8wYBrsEFDykUawzDbg==","shasum":"cdbfda66f070cb4751cc360f3d8a71c0f049ee5a","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.15.0-next.1595544405.67f1642dda9043a09fbe6dfa0b17bf846584879f.tgz","fileCount":24,"unpackedSize":88822,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGhNXCRA9TVsSAnZWagAAWusP/2/iJGLGQnRmozchpAOK\n4nOxTlYo2wfPHIXDrKJd9K21Xt6tlpraLu8QCcjCjKOkOW7BP5w4xyHc+H9O\nmw5lOgfZaMc/x7UYKl5YvkJA1mlylPSLYof0xSYmOY0ngAk9KaJfWDcNn81O\n3JzRS+P5arjM/M30EHFUEIBLvfEOF89x58SHUEDf3H1H5EClCd8RRKPvLSy7\nLkBV4Z/CqdiXsMq+43tBelqmqwaLVkIhhY68t+xNproglC60KUBgXNaQ1cVk\nffw8vDblx5+nH7TZzEdBfJHVDWkXue7wAiqYQnaOWPc9ztjhNnX+iB5i17q+\n/GbkeXrGZmAaFV8vx9KOqutPZlLWL4+DIPNhqQHHOy1Pg589DQfUfxzRa/hj\nQMme7P25UyuJP64yB247QDtfAP3Z/3X2M+N3UMv9xMtXIu6SvDoueOQTARTs\n9TSLSBDd1xg3vG+gfDJLoxWf9JapVPylA0MzoN4JQPP8J3HZDN5VWOd7SxQx\nN6/1h7ir+C3uYQC1nArCtlbYWxMKPsV85/Y5OpB2LShclCXOR554tlNmtKEa\n86kjSd7mPNmv/MNammBkFzazpfStCoN62+N1l7Juf4M8XLkFrOyMpXCza/xD\nSiH96daXmxnvHI9Cx1c2JCglvkY4BljPYHNxNHMa020CLxhpO92tLW1w4tH4\njnrX\r\n=/1fO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+ekN+T+zCJN+MwrUKxT1qidTeTDkL8tnrNyyxvw2rOgIhALh89z5sW1+XL/Dqg0JYpcVWQ8Y8OLVHeRH72qnVDv8J"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.15.0-next.1595544405.67f1642dda9043a09fbe6dfa0b17bf846584879f_1595544406742_0.5293273219882493"},"_hasShrinkwrap":false},"0.15.0-next.1595544424.60195b2821deb5abbf983022dd2219d09b117569":{"name":"make-deno-edition","version":"0.15.0-next.1595544424.60195b2821deb5abbf983022dd2219d09b117569","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.14.0","fdir":"^3.4.3","get-cli-arg":"^6.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.18.0","eslint":"^7.5.0","eslint-config-bevry":"^3.17.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.9.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"60195b2821deb5abbf983022dd2219d09b117569","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\nUnlike Node.js and TypeScript, which supports unresolved paths, e.g. `import thing from './file'` and `import thing from './'`, Deno only supports resolved paths, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM). This is because Deno has no conception of `package.json`.\n\nUnlike Node.js and TypeScript, which supports `package.json` to specify dependency versions so you can just do `import dep from 'dep'`, instead Deno has no conception of `package.json`, so all dependencies must be imported via their CDN URL with reference to their version number, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\nDeno and Node.js different on their APIs. Several Node.js builtins can be aliases to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nAnd in the end, you need to hope your dependencies are also compatible with Deno.\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `deno-edition` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mappedd to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are checked to see if they have a `deno` field in their `package.json` denoting where to look for the deno compatible entry file, or if their `main` field in the `package.json` ends with `.ts` then it is assumed to be deno compatible\n\n    1. so the more dependencies that `make-deno-edition` is run on, then the more dependents that can become compatible with deno\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.15.0-next.1595544424.60195b2821deb5abbf983022dd2219d09b117569","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-W/xAeNKituLk5/PbvPu9ZwLs8REtOtidYJ44mjOO/4YBbdGtWCNjHG0R9zpD5hjG57EdpwC7tDUa/0XLjWXS4w==","shasum":"232b4f88e93012b6743a8b85ef61b9dce6a22566","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.15.0-next.1595544424.60195b2821deb5abbf983022dd2219d09b117569.tgz","fileCount":24,"unpackedSize":88824,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGhNqCRA9TVsSAnZWagAAk3UP/ipxPOJesN0J6pl5vOwn\nK2r5rIsHsA+grHfd8CSwSWbQiwtEFTp7tYnsYEQlEhidTRq/z+jW7BEumqhP\nKd/kRwJ0SAcZ+6SVHP0O7pSPnG0RFswGAopf/a6qCErRx08jq0oS3oMPZhZs\nB5TKpYTKpkBLhLdrQan38JaCdjR0WpDgI1OTYMebozy6SYcL7y/6qiW0kFLM\nQeSQkAi0xLRcLQBQKLjKWjyRB6hM/Vjb31AUX8lbeHD6W3DW/6/16HBjPpoB\ncsC9SjWGaSLtPBXs1hqifm4XJdxMLIOGatYaic74o4kfWOMSJDK/aMpIfCUq\nnpfVi6QW9js+75yO1FmLRmm0tieWq4QH315WyMIrvpo2YJewBE3alzr5uurR\nvfbmwgCtSjzcyjm5lXuTnpudnxqILY+HysQuYWsBOd/d4WwgZNRkkHclIeS+\nztLjsuXJwRwnlMNfZAS6ODDg2QNRouRw2OklNpxaRc7dTj/LcgJbsc3bgPVC\nUd4Y17g4h++wiANmr6ZXOJxIu8/bWTZmTTIupLAt0Hjtdet2fN7RkzRCviV/\nHndzxHqoakHcMIGnr0gO/e6rIjlorYZ2PzIH/wgNk4wCBphWwFfiTVMSZ208\nIFYBDdhfGI6E2awt9rTeSojhnq+Rge8UHTK0xk6F/tUhQt5vqpAZjgzJp65g\nT084\r\n=C4SZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7PIjm1iKAInFDd3P+S0hy+GUIdejnEIQVjZAtf9K+MQIhAIDPfknfoscyfZSyDewq2ZafFoKSJfRjY4AwFSFFeQjR"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.15.0-next.1595544424.60195b2821deb5abbf983022dd2219d09b117569_1595544425933_0.636725318804376"},"_hasShrinkwrap":false},"0.15.0-next.1596504687.441de68344d58735361699d98c31f00fa69728ed":{"name":"make-deno-edition","version":"0.15.0-next.1596504687.441de68344d58735361699d98c31f00fa69728ed","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.14.0","fdir":"^3.4.3","get-cli-arg":"^6.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.18.0","eslint":"^7.5.0","eslint-config-bevry":"^3.17.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.9.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"441de68344d58735361699d98c31f00fa69728ed","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\nUnlike Node.js and TypeScript, which supports unresolved paths, e.g. `import thing from './file'` and `import thing from './'`, Deno only supports resolved paths, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM). This is because Deno has no conception of `package.json`.\n\nUnlike Node.js and TypeScript, which supports `package.json` to specify dependency versions so you can just do `import dep from 'dep'`, instead Deno has no conception of `package.json`, so all dependencies must be imported via their CDN URL with reference to their version number, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\nDeno and Node.js different on their APIs. Several Node.js builtins can be aliases to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nAnd in the end, you need to hope your dependencies are also compatible with Deno.\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `deno-edition` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are checked to see if they have a `deno` field in their `package.json` denoting where to look for the deno compatible entry file, or if their `main` field in the `package.json` ends with `.ts` then it is assumed to be deno compatible\n\n    1. so the more dependencies that `make-deno-edition` is run on, then the more dependents that can become compatible with deno\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.15.0-next.1596504687.441de68344d58735361699d98c31f00fa69728ed","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-Dw8l8nxnl3TNk0HjICKUPKu/j6G4O6yjVkSIq51LK1y9AS2K6edV+3DoZzwW5X4MFVJDdWeIDQ3icre/ilAIYw==","shasum":"a294cb408ae87f7ac1570edf9304b24c66bb59d2","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.15.0-next.1596504687.441de68344d58735361699d98c31f00fa69728ed.tgz","fileCount":24,"unpackedSize":88823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKLpyCRA9TVsSAnZWagAARYIQAKKvhmflWgeYX//6hwZC\ndpQWVxcgIvFHo9UbSgyIcO30AuGiBC3JSjlPT9r3mWd46VpO8vWhJUTQ/UEG\nJ5GF63j0o2+tSlI9lNUAL+llMuQXbadW0oBtKk7L4rw9waFb/dl00A2fg9Tf\n+gTrk+Jo4tkjCl12nNdok+lFBJdtOr+OlwT085mTQEem4pBkzUi0HRxQeDQ2\nb1T2boHOcz2a8z7yLHCt32fRO1wRJbnMr20USyXV/ptXoydMUOSu8goQ+kdf\n8xJA2oRX8HMLvOmYTDWsXSTA8XhrXSAkBxRIkQnP/DGnLUd4sbt11wXlK7DX\nNXvlG7+kPs8dYKZZfL+Fmkpsp96SQmE6lzLYqwrmKAxoAR+Ey8xFtLry2TTb\nDWhAmzwBPLFxyhghvPf/+AZR739kKSAyE7h/FWsnpz0SyQwLSd0pk4BiXChU\nIKu2xTIuqSkwemhk/kKz6AFw4iNZjO8VqvFwlAWjoaOGdXMxeXjYP+bbL81Q\nc15er++xluxAMvwKgvKgy1fnNVZ43w39vbStqz8HGrS8TKK0OWsCmy7XRTVn\n7qVHBqnxH+ItGnUSDDDb+SJaE98Q1As4RljDi/zSN5kaXbTaVoh4ESu72RA4\ndr1HmRK8mZtY9Bnt6UKchms0i2WCuZpDNlheJ7GEH5Fhq+cZ76c/ht9t/HKt\nV9pW\r\n=NqZ0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICj+AgRm5/tATZNLQVaSrHwMyzZv8WvAyAgC5VaL4dYgAiAtet5zWpNwOyDeVBpx2NjlgkIN8fvxq3GsJlguJytpkw=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.15.0-next.1596504687.441de68344d58735361699d98c31f00fa69728ed_1596504689635_0.6229954271442482"},"_hasShrinkwrap":false},"0.15.0-next.1596504986.f7838ee42abe62c3fcb8debfb61139e03fdcf76b":{"name":"make-deno-edition","version":"0.15.0-next.1596504986.f7838ee42abe62c3fcb8debfb61139e03fdcf76b","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.14.0","fdir":"^3.4.3","get-cli-arg":"^6.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.18.0","eslint":"^7.5.0","eslint-config-bevry":"^3.17.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.9.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"f7838ee42abe62c3fcb8debfb61139e03fdcf76b","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\nUnlike Node.js and TypeScript, which supports unresolved paths, e.g. `import thing from './file'` and `import thing from './'`, Deno only supports resolved paths, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM). This is because Deno has no conception of `package.json`.\n\nUnlike Node.js and TypeScript, which supports `package.json` to specify dependency versions so you can just do `import dep from 'dep'`, instead Deno has no conception of `package.json`, so all dependencies must be imported via their CDN URL with reference to their version number, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\nDeno and Node.js different on their APIs. Several Node.js builtins can be aliases to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nAnd in the end, you need to hope your dependencies are also compatible with Deno.\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `deno-edition` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.15.0-next.1596504986.f7838ee42abe62c3fcb8debfb61139e03fdcf76b","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-D78n+BE+C0eFRtSahIqW3yzzs8GMoOnnwHkuEOPToSWLp8drm8qLiHLZheUgekD4RKLpM8Mo2iHTXPOzgoY2kg==","shasum":"f05fb4ad8dcdabf2d0cab6d31ca38fd74bd14451","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.15.0-next.1596504986.f7838ee42abe62c3fcb8debfb61139e03fdcf76b.tgz","fileCount":24,"unpackedSize":89030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKLudCRA9TVsSAnZWagAAXwAP/iHq9DXCPFk6hFDGVV75\ngmdmkRasOcaGMAZ0BhjLeutnY9CTJR2K4blqjVruDm4oaVu1JYxrQ8p5seXT\n1z8kudxkljtqnPR1pHnNb1/+e+nc4+5BiOiUWozAUtqTTBwm78tIQkGbj7M0\n0RowEZGkjtgzrWHv3Y4HSIh8/tSWrBQva7MyCBDIJbBrtvxe6K7q3MQOQQMW\nfnZ4/+ODxgj18HZbkPAscWKxqK060oR1JO6gX+FG4H3375/3SqLRYPF+KQ0l\nV85tKvaHiSpGPiPLBtH3Hq+4guf6r9OcChkxbQusBV+ITq1R5HQUd2eBzhiz\ng6h8rZR5igJIIb+wtbzP7Dm3gSClbSn/jIgHGrRfCxviGD76xrU3+7S/K3JP\nsG9B0xAoR3jU/5k5TevgcYqVNM2hcVKF5ZVUpsJICTp/2cFwieF752M1M24U\nqJ8xfFviqdpn8rpcFXPAX5POVeqaYsNM1UxqNi00AM1eaGX+q+V1DeK/fORA\n3hApvUYCg24DKwKUIjk7iMwaBkWXGdg3VKa245FcrQUX6AtLWw6TIZUbbCe5\nJBC9HRuMYOvxo+lV4EICh/LVPmBSuhTosWYjXi/5kzsFq+wAhlyMYNeo926O\nJ9SN8G39n51io8AwK+ENEI+eHazycnB6B0CL7nPTL1OL4Oia1r2/SDpa8TrM\nt7Uf\r\n=f8qa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA/MWk2yzr7xGItw1rQFygh6nGr0/r280K+U/fDkouF8AiEA6u5FkyP2Pv136JpcYRS7qfEgMIRlE7cnfHVlHd6NoXk="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.15.0-next.1596504986.f7838ee42abe62c3fcb8debfb61139e03fdcf76b_1596504988196_0.7147320627000038"},"_hasShrinkwrap":false},"0.15.0-next.1597642926.ff88fba7e6ff073b7d9bdd748973b76b642a9676":{"name":"make-deno-edition","version":"0.15.0-next.1597642926.ff88fba7e6ff073b7d9bdd748973b76b642a9676","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.14.0","fdir":"^3.4.3","get-cli-arg":"^6.4.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.18.0","eslint":"^7.5.0","eslint-config-bevry":"^3.17.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.9.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"ff88fba7e6ff073b7d9bdd748973b76b642a9676","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `deno-edition` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@0.15.0-next.1597642926.ff88fba7e6ff073b7d9bdd748973b76b642a9676","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-KJ30z1vIxeBbxOlOBRazwmF6PNfns90M34NSHUQFIIyiZC4v3Y1uCWtOAWjLsHHKkKrLRnpz3+3TM01g28gGDg==","shasum":"ed2ac1bbae4a05fbf76ff840c4c2bec3f1e7987d","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-0.15.0-next.1597642926.ff88fba7e6ff073b7d9bdd748973b76b642a9676.tgz","fileCount":24,"unpackedSize":88952,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOhiwCRA9TVsSAnZWagAA1BAP/2y6svLDZlcj2z8VcJC0\nUqhJHKXzsCb9t6gY1WdxfyvpRHE4hPM3CrKJbuiOdbX3aLv6jVgVVwyFQozK\nkixucA4EDzY/IuY9+NqNKpWcDelJ1RkkFzipN5T8jNhh0MRNu1LGz89nzT8a\nSIRY8r7wA78bMUqDQKOLB/6gR5t8/IMQtCxrv4nUreNGco49qFMT+GjQltAQ\nwtIsM0gMA0IeQw48IE0BmURclTPe8bradwVbpAEXCtHIiFKeaUmZIt1s7tPq\nU0Jx7I5b+xqzFwHR8stm0UEf8ObK1eeaW4P7bHKiK/LCsuKleAIcka0PskZ+\n9kQu2mDt1PfQAqvg5lii0CjymHTaEonFMiAKSLPAnyidOd7cc64pHlvztPfx\noGnExZCYEl8u3QQWCcRifbJvaLKGNuD31fKJxoRsQp7SuQUZ/IZVlLCannxz\nUiky+gjeUwNkVqu0k4J2mx9EYmXzIVCEdCKxgs1Sl3jM9TMqwHWh7oNu2aRS\nL6j303FGfHd+M/92ATNOKN98sM7Pn/7o84E9FMY/m1coFpgkzpV4yAxxGkjj\n/UQmkdfAPC1qpfyL4PMT153p0ES5UHWKI16x82gArKGd4wruWor8/MdkaywA\nFg3d74a4VwUM33gur5lBwLRLjzi2BQVuisZhJT6vXJ4GEz9PBFrdlM5BAhUc\nwsN7\r\n=TxrQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBK/qicgQcZG/K+SFrOmnVWdFKUo2bAskAJKJztFjjkwIgW6uBYajmaIacb5+wA4Bxg9U/4mOJ/GQy9qarsiGqT6I="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_0.15.0-next.1597642926.ff88fba7e6ff073b7d9bdd748973b76b642a9676_1597642927768_0.16975768211697173"},"_hasShrinkwrap":false},"1.0.0-next.1597643355.1939e1a422a66f9e338ebd39fa210598e258fcb2":{"name":"make-deno-edition","version":"1.0.0-next.1597643355.1939e1a422a66f9e338ebd39fa210598e258fcb2","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.15.0","fdir":"^4.1.0","get-cli-arg":"^6.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.0","@typescript-eslint/parser":"^3.9.0","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.18.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.10.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"1939e1a422a66f9e338ebd39fa210598e258fcb2","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `deno-edition` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@1.0.0-next.1597643355.1939e1a422a66f9e338ebd39fa210598e258fcb2","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-Qp8odBspZ5HJtOlIXMp5/j7F0mEt2MbAvOJE5qa4taMMw/rDw4IYOiFqLxGUOWdDvdeXPZWD6nncS+2N2VQLlw==","shasum":"f60c96edaa3c6d87244d99f70d39babf879ba1bb","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.0.0-next.1597643355.1939e1a422a66f9e338ebd39fa210598e258fcb2.tgz","fileCount":24,"unpackedSize":89225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOhpdCRA9TVsSAnZWagAA0JsQAIxSyjaAKl3LFv1cOAZi\nvojzofSOgcVrcVWPlRlQTe4Bpj9GKA9Ewd9bVlgGsbpq2AiknfyIwMoO02Wu\ngFRINNfv/Bn+LQZEvG/lwDI0mshLIodwyszaYeJ0e3YshLX5SkcVO5siQS7v\nK2wA+yHZA4OdS2h0IOiNRTEqqwk6bf9H8LsB8cZLO7QwISzd1sZ5RR2GiArY\nfPv/spkU8xmbvmNDK0/wBktWke61Td4uvgyYAQdW0auV99zwhPiKvH79Fxm8\nABB8mNFkfFJC3EcWOMFHzjnxM7EKYQd1ahWo4TPPp4r8UUg8pyBKxjVO1diU\nKJF8+wbnolYFPQ33p16H4H5OAHAX9811Xql+vgfSR44QOJPhiX/8h5C0Z8GT\nZRhsZMNG2J+Ud0i89642WspuIrFXNo0RLB7dZVBHUIfYs7T2MsFadGF5CUuX\nYb3gM72/tSKXI9AdO54j2ehDoUpOWbqeGDAC4bhpT+7D0Qz32C7ILEcJuRzn\nK5P3JU6xjcFwpXP6vu2JlOBKUp+b/HxibcvWRIhd9jYmxQlJ2DaJQsdvk+Md\nIapvlpK7pjqjs4+mmLkWJkU4OxPIOxYpuOVBWHuhwBwW2pGzXNXnL6qCLSu4\n99jBiB7jDSHli7ToJ4ER5fhU9IcR91j1tczrpOqDzT7cHzU7ajvlZJSuNydB\nvcMY\r\n=4emf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAKBLf6lhbeiP5tTUVh7Nr5Ehh76c+u8BI4vVMipo5CqAiBdhdhTETrxB4IW3E9E/RU8+8U2W9OpalYGNOho1bTD2A=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.0.0-next.1597643355.1939e1a422a66f9e338ebd39fa210598e258fcb2_1597643356719_0.0243228789344363"},"_hasShrinkwrap":false},"1.0.0":{"name":"make-deno-edition","version":"1.0.0","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.15.0","fdir":"^4.1.0","get-cli-arg":"^6.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.0","@typescript-eslint/parser":"^3.9.0","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.18.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.10.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"1939e1a422a66f9e338ebd39fa210598e258fcb2","_id":"make-deno-edition@1.0.0","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-ImT+X0M8bMF7BLjoOEN8aip+c4sZ0Q2BQMrZBrBduEfV4dqmC15n7nBq7D30cOGdejAjtVNwtOi8anREvr2S9Q==","shasum":"5081395cf16eb29e4a75ab6566f89bda60768eea","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.0.0.tgz","fileCount":24,"unpackedSize":89168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOhpnCRA9TVsSAnZWagAAp28P/iT5I8UtkgcWI1q26rxR\n7jOuoZLLTpz4gCMPYz1KmL8z6AYs73b1xiExZTZhtQcH6LqFTtaHoVXlLOxa\nbFfSraKzbAXns75mCzzJCbUq9jZTMfXvkmTdXDU69O0KHTQ8AOc5fnjn9RfI\nQ2VFYCHNmAeYLFywXShqwaFEIM9isPJez4WCF/5QEbLN0AZx8Q79O2kuzU7a\nKWdcGmR5S7GDolq7krRM/FQNii19LPs8QBAlsJ50H0HTZgSl+8ExM7y5ag25\nZ1j0dA0jbI3jYJSM/7LtfkvhEtKzpnaijcjUhyDDOSHrjEl1Y6YPzDdaCZkm\nRbH7yOdAI8FbifG5RmjMxx/frXdn3ZIHPE4CR+reIIaoC05CY2qzt6ugqgQy\nK/jOn9Y6QG1ZWqtt4+uoHLhdKXf8ngW+K9Mpgigg+GYjCFmDdk6GzS6IKibu\n46wBDB6BPZ0sWlDxRFW89L5oaLn5V+wLjCO74ge/n/ml89crmJyhx5/qZTbl\nu+DSzFFIBoya04yAb5oGQZIt96BJS9qkXAIDHffRWQyz3G18U4C+6DxOfrKc\n1N+/PYzySwT3AUYgnAPWHIUUHUZviX5ufKVn0Ur9wT4JD3D+OE7EofSaZCyG\nIC1ozv7APzJprXC7ABPpGqtmImWL3qn1Ecc2lJpzAJsEPjhNyk0DMeZcP5rT\nNwqn\r\n=4zon\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHja6nza3m6JCNyMqHWxsxDTZyvNgmWHcc50MwohOcgSAiEA4JAHs6Zpv9ux+Vi80bfXNnLDRIFmQJvVfiEsqqscp10="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.0.0_1597643366951_0.727762695531148"},"_hasShrinkwrap":false},"1.0.0-next.1597643634.28a9bd533fc6e5c05d9ea16d16b929c75b112366":{"name":"make-deno-edition","version":"1.0.0-next.1597643634.28a9bd533fc6e5c05d9ea16d16b929c75b112366","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.15.0","fdir":"^4.1.0","get-cli-arg":"^6.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.0","@typescript-eslint/parser":"^3.9.0","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.18.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.10.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"28a9bd533fc6e5c05d9ea16d16b929c75b112366","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `deno-edition` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@1.0.0-next.1597643634.28a9bd533fc6e5c05d9ea16d16b929c75b112366","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-8yMxNzpJZoRfrqxyodXh30nPpuDWXjN6N+U+Ir+iNXEv+i5TUQAHzyZtSH0mGNr9mo4XQF+Un0lJVVTL/11kFw==","shasum":"f6f8652497cd656df1b92e50cca6eda3fd2ba1db","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.0.0-next.1597643634.28a9bd533fc6e5c05d9ea16d16b929c75b112366.tgz","fileCount":23,"unpackedSize":89090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOht0CRA9TVsSAnZWagAACvYQAIC9dRztQ8w8p2fsiugo\nyGJPcAr7F/hpSjhgV/T4DWfGfOHfO7R16T+bKZQGFsDFnjxs6dD2iUKBXffE\n7Mxq2UEkxksMMkIXlrjq4cqCjNVRw+g+FRJEB9JrsyxmmE3DZmRhAAh4bRVv\n46uGjN2b0QSovLbefMMfSPMujwThF4KKP+kNLJ/5acdUmuGA3hFFwOJaMpXG\n5M63aRjPAHXzUXokwYFUGJs5mzaiXpGWaAlQwpQtqR4J0JWzJzzEDIHskn+8\nbNsEPDO8VRH0C94vm3COz50gv0JAMMgmgD9uy5nPQx3Cedr73DhhRYIv1m+T\n6nSciCu8H2gPaQeCXSltdLO6RQ1xenfGyJxwmvPjFoJgKklmvPXHNMxMBZOP\nHxNcUS6Eo61x1XSq4OUobsF3oYy8oLMRqCrN/vbdZieSrCToxgNfIk5u55WO\nGIhOytasKjOsyAJxzBwxlAnU0Axy1Y45qm39X1Y67tY6urWnk8DT07v/pxVX\ng7XHgDTg+jjppqQEL0a00syaZs2U7gCnmqaf89dNAmP++PKqueQRi8b2VtUp\nmtdVpa3Tg6hR2G4nBYOH9j2KSAihn88pbhnFEYf/0x7oEtw762mNn/6W5dmP\nfRJeEVGymcJyNI3uEKUfeMuuyPKVVdj73vk8JZ/PmnuHKB34gdvic2kzSzsd\nuVV2\r\n=3CdT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICcwnEwMtysrkl/rvNWnL35eiCwBuhtbQwSIq+zETpm6AiEA8YnY/GSCuNh5gZ4t19b2fk7BS1/FkfHKP8TkWx+X+IM="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.0.0-next.1597643634.28a9bd533fc6e5c05d9ea16d16b929c75b112366_1597643636121_0.5058449644366187"},"_hasShrinkwrap":false},"1.0.0-next.1597658596.b10e8e299573d109ecd6d96c6d345385c145be3c":{"name":"make-deno-edition","version":"1.0.0-next.1597658596.b10e8e299573d109ecd6d96c6d345385c145be3c","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.15.0","fdir":"^4.1.0","get-cli-arg":"^6.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.0","@typescript-eslint/parser":"^3.9.0","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.18.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.10.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"b10e8e299573d109ecd6d96c6d345385c145be3c","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relativeu path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@1.0.0-next.1597658596.b10e8e299573d109ecd6d96c6d345385c145be3c","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-59Z3ULB/U0xKQ5qt53mklmJPt79NmDPvM/do5rRWZpo5ddJJKVSkZerTHxI0YIpOVlVVKyKAkmZUsZjpIfRDDA==","shasum":"7eea7df958a6aeff4eff1663b3985660662aa212","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.0.0-next.1597658596.b10e8e299573d109ecd6d96c6d345385c145be3c.tgz","fileCount":23,"unpackedSize":89091,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOlXmCRA9TVsSAnZWagAAfGoQAJvGL8wsAfXO4/SXCBOl\nI6/vb9T4s5ADubbdOCVVQLfR2iVBzBvYyHlhu5ci3p2rGWYC4ZbiTDmOV6P1\nXPhYAucizGX54gnorlQs40ABH5jYVe0COzIPK/4wn9h5KyPH7r0jDWLRRDQr\nVcfnCOt1o5iNRCESukeWTjB43HKQ9DDSIDNe2E0uKzFL3MqIRrTBD3gSWTQ7\nh07JjuIrI4I78j+dRQ+H8wtCGxy9pbEEZFDc0MosREVzyoA1Vy+XS+UH8NSd\ngJ0GY83zkbYWInC/RCg40u+SB+dIoFVuqblINF68BcvrdMDb4zcRCuaYPzKu\n9rHYN1dMyUKqKT7L58BDgIMAsT+JG50l5jZa+5uve7vjS1jXuO9Ye9JeNBLY\ntOAXwCl8CRqKefy+cEvoAEioFXB4PLDP+HoxvZ8JTu2oD7Yq8CGLX/f5N22q\nkwQ7D4/ZAbpyyecHcQADdi0rTkpZTJHabCN01CmFMmrUnjorod4R4ms1S+WZ\nifrVQi5RmOJ17LlO54uA0tdMazv6fBQSSbKUmuX017pnVZia4dqTexh5uYcR\nAQulFjTDeCh48KNbFfI2MGR3nB8B1ysn8domTjhf8rLvENgbX2qK3SLBYhxM\nLnIJlY6LjqzF6fH6s+Dj8d5ojsZjbCLzJ3wa61GKHHunCLvn4syvIp98koaL\nWOJO\r\n=QdsS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWZL3Ps3xbL5Yg9hHfbMxO1qhtPLhr7aJzmy9TVOh2wgIhAJt8wvr5hwkcLP4kAlmWmIfBZHioTPr6TqKFuF/jZIJs"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.0.0-next.1597658596.b10e8e299573d109ecd6d96c6d345385c145be3c_1597658598297_0.06786051788503555"},"_hasShrinkwrap":false},"1.0.1-next.1597707212.6f8d7eddcfa659b54222c38cf5aff297a9be22ec":{"name":"make-deno-edition","version":"1.0.1-next.1597707212.6f8d7eddcfa659b54222c38cf5aff297a9be22ec","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.15.0","fdir":"^4.1.0","get-cli-arg":"^6.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.0","@typescript-eslint/parser":"^3.9.0","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.18.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.10.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"6f8d7eddcfa659b54222c38cf5aff297a9be22ec","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relativeu path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@1.0.1-next.1597707212.6f8d7eddcfa659b54222c38cf5aff297a9be22ec","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-SL2YmhvsnAsFueJVsKvOYmYza+IW/If0KbEoyat9zVxUoGSKpnUNGC31qevUakCX7RefZVGB14LatDl0xm//4w==","shasum":"a3701d35b0c3d2e1bf128d2d651f2433d74b8c21","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.0.1-next.1597707212.6f8d7eddcfa659b54222c38cf5aff297a9be22ec.tgz","fileCount":23,"unpackedSize":89013,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOxPOCRA9TVsSAnZWagAAoDEP/iyUWzqx4sAbyv15HDXk\nPeM7mIv89BRGgYFGH03spaErtUdGWkJhIKTvQGvA4cNSfXvXqGWvQd4fJY7W\nTKtFVLoFCWOy/YMaPq8u/ip6yYetn4rooW+Dnpwqe/W3YxfNQYam6P29AvU9\nwiRnZq/2La0s7INGb11Ikv1kdHjavjSWIn47fRDrjAWw5ZdvOHWzZ55ELB/1\npTz4vNVlRMNHS44lGBHcoNCWJlAaYw83IpDE101YSzPjNo+YH3xIimX8ly3U\n9UqElUqI5kICXNTTfuPN66c1RDlfDrBzxOXP0ICslDAFIJX2oTlF9EtJ5PAi\nTclAU27lJyFEZ/ZgRGeJjLkNA7JXdRQLLKv370H0hLiEIGTr6nSB3k2z1cXZ\nEMZO24PzEjIImlorFK9pG8mO8LohAsnjU2v/BGyq5uwGnwz9p1j+NDkUCINd\njnetq1CByirjk5MRFlsz3lbYK0RAD5tZz8QoD0+mIKFt8oVfpc6LzAFmDrny\n+8fAIzm6C8GZ8zPpxaH7/3oKzDlO0TChIxB3RhO6a2uCba2QOCGlhE4FMAx2\nVCCF7Eb5bpi0+ZqaBJxXlrlBsXq4qGHTXLVN5oJb7IMBYY419WocL5ifGknz\n3PtPLXgPwXW9vNpiVccy9LzvT+mBeMU4DsHXBrXxzDHJOIynzK3sgg6RyYGP\nCAB8\r\n=HIW4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF49gyUA+ll34K0q3z4ebvuPsuSafc8/eGeksVGdkORDAiEA5PQhVBjmhfe+Voec0gRL0AycsXpIr6XwJAEk47NoyaM="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.0.1-next.1597707212.6f8d7eddcfa659b54222c38cf5aff297a9be22ec_1597707214370_0.9220231724022234"},"_hasShrinkwrap":false},"1.0.1":{"name":"make-deno-edition","version":"1.0.1","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.15.0","fdir":"^4.1.0","get-cli-arg":"^6.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.0","@typescript-eslint/parser":"^3.9.0","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.18.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.10.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"6f8d7eddcfa659b54222c38cf5aff297a9be22ec","_id":"make-deno-edition@1.0.1","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-gpjYGYgtXXILU6qFhapoo41BRWoYOvE388cY3bXzCwaEy4hzQHq0cGK9vWXezEIuV3Xyjr8xHi0ca4lIbI9A8w==","shasum":"fe3033fa1e5b70a383bb4006ae36a8c9dbe92bd0","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.0.1.tgz","fileCount":23,"unpackedSize":88956,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOxPcCRA9TVsSAnZWagAAKc8P/RsQMVOmwUPOr5iCKxBa\nbXCNcggLcs+y5pJQmxNRmPeVzA4Q5yqhPB5Y8BQ4HzxxRdwRWoIUIz7hEzdh\n3NzUNvU3RMROppFol9C29Gxr5L+YLVRB10jpJRUhofVq1YpmCuzqaqzpBND7\nZyJ4YiqfS8fNu7YtPqPLhTLmzRqtoRdzxzRb5Ym/OqBc4/BYvfkbBAhE0KBG\nXcOeF0Y5CHu+ow0WOSO/M74/qCquKTAQeXjjjFPCbMGJQwPgs3hHwRpbhoUW\niPPZju8Stm2R78uYDhqNuUL1yEhQOGnS4OVK53wZKqmqVzHLuJw7gR8Yv+kZ\n2wSf+2c5gLu+qK2qUi51IIRzD2L09A3RwZU2/DRasHi7I/lBQvu1wAah8+zK\nuzVf/Adm8C7Db9LRlD9bPDEN3IWixKP19bWza7QsiimEXCOHRgr+1v7XwzQb\nC28R/E2L/fvwE/xKQMEDs5yAzpRSRZYvsZHMppi06cIbIO9mwDaNKPdGF4Yd\nLiVKnwaqcnIpXDinQ+7fXOEvuTOlCE3WiEulg/+odfrTH9tTYe5wflR7qw4k\n7GbtwjIl5F2pgKgPV1Xx4/NimPBxSYvvQG9p7uRGKhbt0Vct2892Fr9lEykN\ns4FudGicvn0u4EuUghuEEngtU9V+cka02mlFSZfs3qX1t2NZvr0ZQ5UH1tBl\np+gT\r\n=SV2C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDShOGKLPVdJHVMVV3xoVEU2XIftFt1I6YcvcuqKh2zLAiARzojkBcOiZlC6w4Z9UaG2OLeKxC93RErMnJCcodFSUA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.0.1_1597707227565_0.0601115644584822"},"_hasShrinkwrap":false},"1.0.2-next.1597707332.b839d2f904275a5b76585556b9c5d44b3f182f7c":{"name":"make-deno-edition","version":"1.0.2-next.1597707332.b839d2f904275a5b76585556b9c5d44b3f182f7c","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.15.0","fdir":"^4.1.0","get-cli-arg":"^6.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.0","@typescript-eslint/parser":"^3.9.0","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.18.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.10.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"b839d2f904275a5b76585556b9c5d44b3f182f7c","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relativeu path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@1.0.2-next.1597707332.b839d2f904275a5b76585556b9c5d44b3f182f7c","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-9Z4OMVdr2IfMsmNPSo+FtOn++YS/fKToQiUEYgz/iK7MciY7LXB/GkvkniMI99ol4v15Rtx2lUfhByIqCecsmw==","shasum":"6b324230da8209cb82db0d405cf88e6ce5f17a26","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.0.2-next.1597707332.b839d2f904275a5b76585556b9c5d44b3f182f7c.tgz","fileCount":23,"unpackedSize":89087,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOxRGCRA9TVsSAnZWagAAGnsQAIlFspcRk9JKprnXutZI\nNGTM47Jrn4gfvlunqlXFj13B5ifewXiXa23UjrQRstV55ny64RqwPZGzggKB\njsdk6udcMBifLjPL3O4viFzNSdErVPVbmUOEcSdrhJ+HtRbJqmYvYbZcmbmy\nMfcEfJkguGHmblSaQfoBsrd8XQ2g0AP+JaoA+AAF7XiAvFw/aw3JMhcm9W2v\njEMEacDlBayGD61yBCr2cLUCdI7r/SBERnUwg1c0lj6I2qcdkzKIAcBrN87O\nd2qd7EAgu4pFMxofyXPPU74lh4wvdHw8cxl1ucT5KU20G+hvfKuuTGvozB6L\nhY5DVOZ9eLxvT+OCmhw1nMCtR4nuwcokeTZZcp7b3b56ufF7mhT0QK5IaCgB\n9b5NWRHjh1C650pNUmGGG9kUbrrJUrxqNLOLGD0NbqPw50BgULBsjRmEUFYA\nd+/RlmjBIfqqHAgHQ++7xytB2UPabCQ0u2uv29QaL+o2a/kIwFfJnNzp2Z2C\nsifG7PagfY1l4zK3tkn/M7E2WVn86AT/hMv02MXVqsBwpUmEbSIp5inE0+oV\nEfs0Y9D/ZRntny5DV7xUoL06bAVopOK7/R4AM2bWoAiiQtAjP2xgVG5wlPhK\nawREcNYAfI/drFopDXFZulbLORrFyWqBqYI189UNQvdhZdKvZRAs2HXHA1Hr\nbfzH\r\n=VOlN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsSRT2GafvwZjekWcMjH5Zf1NmmlLk26ymWdW2UOs9ywIhAKLyQE7Qv5ScJ8RB5nowsqnd7ofq9gqBNgTnG/dYC0jZ"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.0.2-next.1597707332.b839d2f904275a5b76585556b9c5d44b3f182f7c_1597707334178_0.6024392575157165"},"_hasShrinkwrap":false},"1.0.2":{"name":"make-deno-edition","version":"1.0.2","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.15.0","fdir":"^4.1.0","get-cli-arg":"^6.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.0","@typescript-eslint/parser":"^3.9.0","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.18.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.10.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"b839d2f904275a5b76585556b9c5d44b3f182f7c","_id":"make-deno-edition@1.0.2","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-gcJd+pVAuOZZaASjXLEU0uNiR3P9rjxC9ZfBi6Ml97bmZ7AwQlLjxUOnI7VUpkFsb2e810vWfE/f6BTtsJ5AoA==","shasum":"fa7b6c9f0c9376d998d19351da6f66317dbe4cd7","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.0.2.tgz","fileCount":23,"unpackedSize":89030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOxRRCRA9TVsSAnZWagAAo0kQAJWgrr2wPLqyH4yRDofX\nR17XbZ9m7/2aDsE9RnfkyBeeseOEDOTlh/vxX/fNoWi7xGP+o5G1iFO/Y9zZ\nDng/5DSjFrXo5DgKb1i3ZhHi+LiFWv3wMKppBIROVPNdr9ZLSuWDLflV4Vq8\nIzVNQaWJgZYk5tb25y8cK2pjwQP8Ce0oM9ZIiE+tE4giwwupD4g/Fh1mf6d3\nggwfa5lQ4WgIMgz1TMmlILmIhJ182SaLZM2mMqqDIyAYnnjkSS6LzOqkmXKh\n9tGsroBLeS6u8SjWCgLPhor13odXzL850FH5dxKhK7fv2A+45ghKFTUjCx/v\nB3B+ap3DaLWTFDEF07rO2W6iiCOWbp0tshbo2IYh8ML8Qn2bwkLgQTsQ+5jh\nRfGI4FgI/rBzXCemgICjjqkD6TaGi5EUpIxSJGn1DuS9AcRHPqtuM2V6JGAy\nbyCFO6dci5x9ob/MmDm3ToT1iULIcs9mRQCuBdNUNBkBFAMTMWk0+HmuXmrv\nizNdh+BDL+WtLZ9QmoOVKXycO0N01cXF5cjFZY65sqJBecdg4TuYY/yTysqa\niN6QK8RckmNaa5VMmd15Doux6jIeYo5psK3m/0li5zZhdRsyu1FMNDd7+jg4\ngIo2Iikc3ZZvNfn9DLq40P0UR4pPRy7G9MKb+vNTutREUK6ASlCtO4Skx56m\nT0A6\r\n=ISQq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDX9UZc2S4LjXDz1YtZUCmGlz08id8U57TUkI2ES+LBeQIhAMS29zNMfo9Utxm2relenpCNImFanjkeybblG/lX0nrj"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.0.2_1597707344608_0.415805998180768"},"_hasShrinkwrap":false},"1.0.3-next.1597775363.101863cd8e040451e26c1542979faafd021e13a0":{"name":"make-deno-edition","version":"1.0.3-next.1597775363.101863cd8e040451e26c1542979faafd021e13a0","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.15.0","fdir":"^4.1.0","get-cli-arg":"^6.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.0","@typescript-eslint/parser":"^3.9.0","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.18.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.10.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"101863cd8e040451e26c1542979faafd021e13a0","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relativeu path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@1.0.3-next.1597775363.101863cd8e040451e26c1542979faafd021e13a0","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-Tt8e5cRbTiGgOSig/wvBjLPtQ+1oAoD1ilk9Gwt6TF5ZY19nQGNrG+XMjXovvG2FRvyB9UJbMJnX0w30HCTpfA==","shasum":"4376fcc5be59bf081b7c53d646d5710526889dba","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.0.3-next.1597775363.101863cd8e040451e26c1542979faafd021e13a0.tgz","fileCount":23,"unpackedSize":89551,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPB4FCRA9TVsSAnZWagAADiIP/3JRDb1Y++eEuW1IW+9p\n8ToM7Vf2pLBVoHdZ+Eyurpep+ctuJJnF64vzssoUZqHsnztBWZIacG68hj+6\nkyFYkUdV6CLx5C+5fsJeQNCTcwpRPv0ge+Br1dyzGGYKLFgRtCYxVOxP4MdC\n/EsFt7VLIgey8yDtkZbkENAKqB+NTOhXbg+PoevNlGdxug96y0FXez0utrYZ\nB4MiIHf0jfYX+4OOa2FmsOmEj0ctElp2ECivYUscvqamKHeRJiQFPfFJ12RU\nToRqJUiFqA/oBQgZsUZ2K7i4SuU8v7QcKP/HGDkfTegtXuD46nz7u0zAaf57\nXmrNiY3dYVkHbgtB8jo6LkJEN4Jo61DXKMw9xhgzU+TlBt9SJmal0nNPKfgi\nXMdKKwHj+KH9xSMOe2TXttr/45DKe20r9PogrUj9I5wEUJrAUY9f1Z6uaKdI\n5lnznQXvw0GO/SyBni6JurfDdgdmZf9tplOZy1Qym0hcgTxLIQGg+0sJEyaP\nsnpqhouEuWZDnarjUjRQqJXoMbjCBUhZUWa6nEP2Z8rGPxQhDR6Q0ZwIkNG9\nsSTRhTw/lbdu6CqfZeJ9F7BxRq586GwuW7i0+98JQ8pOsmybT8PQZi+rXnCz\n6H9eVBJM+rnv4+MqUBTMJqhBryOf4L1pXaCpIkiI/tJ6sNBdL37GEex/G+oo\nlulz\r\n=qbp+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBjL4MKMbasKU3tYM2wRJX2zIkBmLJvMv1EpArIL8zeTAiEA1hDucbFqh16A6xdn9Sjtra0GWH96Hmc47c1jEV+FB0Y="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.0.3-next.1597775363.101863cd8e040451e26c1542979faafd021e13a0_1597775364978_0.8144375100198977"},"_hasShrinkwrap":false},"1.0.3":{"name":"make-deno-edition","version":"1.0.3","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.15.0","fdir":"^4.1.0","get-cli-arg":"^6.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.0","@typescript-eslint/parser":"^3.9.0","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.18.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.10.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"101863cd8e040451e26c1542979faafd021e13a0","_id":"make-deno-edition@1.0.3","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-A+WukMxS/QXXsMrNckeEbFdCXRnVOnHcCG3AB08is331ZjO7sVftgcPJnKoGiamN+OzyXFFnhIxcZjxUYVc6rQ==","shasum":"b7d9a5544ea8153210547e7e044a182aa71064be","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.0.3.tgz","fileCount":23,"unpackedSize":89494,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPB4KCRA9TVsSAnZWagAAt70P/jXb2Hci53uPW1gGFfVn\nkIvLdakraMCXzIGrjJFCjZHA4V1gD5MnQiwNx59f0OWOWgA1sTTQwjvVj+m0\n+5sqPMiLbFUJ3O/DKOUHm6hX+W8yffKBdy9x2Qu6mOuFPmVIa/Us6gkm5an3\nUgDWWfr302F/2EVMi0vZw5Y+3+1PAA5GZo1w9uiEgMZ4VseMfg+7m4I5HlHD\n7cPXZoDXSjP6V7spzSGpkdrVXpXql88HmpGoDLyqfIGsUy8iXoXCDJ1YQbQV\nuUCuMn/Ig+xDe0A89cZlCn3av+nmKkzo1447Max9+XlxTuLMOACS5oA5Up7p\naW8tpvUD6VLTaP8YB/ZQg45r80wyXHb64IPReWeNHrfJWofSZAdB5gkzdtat\ntMCyPr4Ue/LoioQz1LqwbswxluBOgI0O3GLj3atMbdymyLktqiQ3rt+HyBVb\nr0lCLVzJzo+beTArNmdVuEAK/szqim4vevdCeIX7I4Jp2aNuWJmgXgcjZlo8\nBnP922ULLyttrnerJwxxVCuM4mY+2kht3lC+6O+ZPYmRKt/TlSfTiJ9IHZ2a\nOBglIijMtlWF4PM8meDWW0WDfow3YrD0zYVP2orKpD2sOEf6GbuGeLYa3WvH\njgGGZ18DMjtdM/wFUlBPdNKLAdsHsFFJLivRd6tFRGEmlVCQ446dwDh3Uxwv\npaIN\r\n=FGVK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4Dc0/gMfEJZipvHe4HD/xyOt7SBGcgLWw0Yibsphb7AIgaCUQLuoiPAkHUfqZ3AsqKgsrNP14nRnuyD++Kxbpc0E="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.0.3_1597775369845_0.004122100931005956"},"_hasShrinkwrap":false},"1.0.3-next.1597776061.d3b234c7af1de0f8be4a783779c3b86f9631c907":{"name":"make-deno-edition","version":"1.0.3-next.1597776061.d3b234c7af1de0f8be4a783779c3b86f9631c907","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.15.0","fdir":"^4.1.0","get-cli-arg":"^6.5.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.0","@typescript-eslint/parser":"^3.9.0","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.18.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.10.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"d3b234c7af1de0f8be4a783779c3b86f9631c907","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relativeu path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@1.0.3-next.1597776061.d3b234c7af1de0f8be4a783779c3b86f9631c907","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-Efv/p8spnE5k+NBv/MM8NghXa7sgNL4Q/rWEVrIxmGoHwHYvfcW++mLZzDOuXsZPzYrYKf6/caSlhBJCV61fhQ==","shasum":"87910107999bc6fb19c101c104ee92335cddff67","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.0.3-next.1597776061.d3b234c7af1de0f8be4a783779c3b86f9631c907.tgz","fileCount":23,"unpackedSize":89549,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPCC/CRA9TVsSAnZWagAAccsP+QEoemzOfDWXH7ti1Ew6\nt8FEnhKrES80+GbQiQTiOfzuHkVrBxDFEV9neBInM+3XmcqH2HXHOsen7Aba\nealYGeyJ0EW0FSv0w0poUegA3YQinAlOhCrsP7ypEBW8ULIebk3WL/iirQ1p\ntuqK9tQd0wYe3c6/JouyZemPuX0dzMotcrDUe92rgFDM4PMcRGQYI29fbcLB\nI1XfuzrAj2Q/xwLodbh4H+iGU+cbvzPiutJfPJK20Np7rG9/TZpt9PiKcMt5\nmo9XKslo1In6NMAbDnY0+Ls60ZOYGQIyIpkHqhC4d9rqyy9XI2Xq8oou0I92\nKK+JTQuvCUgX4nQqbgY33PDbyTxMwTuiiGm3j+qEtRiJWI51TKlZilPQ8B08\nCllNCDksFRUQ15EYYelfuWN3wp5EsZhO16NnoHYL3hLjKOUvAmVaavq6EoEq\nt+usGfIbSnBg0uxHu3pIOVMFY4MFLzUYTsOzByMnChcrI4ysO3b4rlJM3uSm\nd7H1h6K7v1pJ0aVN/X63Z26oNaHyo6gITcPDK91joaxM/Vv8Oijb+i/tlcYh\nmQn2nYqZ/rmulJJfE0ZvbHhOo6USjnBhcAAtSQ0tIDWgi8ZYPnlX5sykT67Y\nfa2vmaz3Nck8n9WkV4qfdGxc3/oi2GY46gmvain3haaL+aTBdPfnnR6HDl/v\n+6tw\r\n=lRj+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDHOaCumI7gi3pQJw7ZPFqlCX8kU8zLhF1P3K6xzEZU9AiBgGqOlo8EhjGwppZVqj9l4GGYq+vJ++Icirq0rnZ1/qA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.0.3-next.1597776061.d3b234c7af1de0f8be4a783779c3b86f9631c907_1597776062802_0.12315594581801004"},"_hasShrinkwrap":false},"1.1.0-next.1599107309.13e6245c58b879c60fcb21033d0d783a7fa728a7":{"name":"make-deno-edition","version":"1.1.0-next.1599107309.13e6245c58b879c60fcb21033d0d783a7fa728a7","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.16.0","fdir":"^4.1.0","get-cli-arg":"^6.6.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.0.1","eslint":"^7.8.1","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.19.0","typescript":"^4.0.2","valid-directory":"^3.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"13e6245c58b879c60fcb21033d0d783a7fa728a7","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relativeu path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@1.1.0-next.1599107309.13e6245c58b879c60fcb21033d0d783a7fa728a7","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-TsQYZhl+i4AtMw6meZmVVyemUmIdiekP04ukp7bOu3OP+hdIooTa1tiBxCl9NzZFjaxCwa5rfuhrGoL0MCSOYg==","shasum":"505a50afd4c777239c9a760b402ec01a364b7fe4","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.1.0-next.1599107309.13e6245c58b879c60fcb21033d0d783a7fa728a7.tgz","fileCount":23,"unpackedSize":90282,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUHDvCRA9TVsSAnZWagAAfQEP/3K5Kd6S1hdC8oufAMKc\naCa8ACGA4AkzTTbyp9gpQuFHHrgNeriD+XykJgShHVNurvrZ/hNLw+fiKsDv\n+7KsJb3jZ2yEM0ThZLYMExEVrxHjEomzyTtG5amqOt+jQekNFnHlKXY2fR/F\nUqLPAengYxTtU+VHKpLJ4H42/gC66bYWi6P03uJJezPysrNInLLDyam+4lnO\nrhXf2C7Bv3vZC+UPcyou+S62b80zYDI6jx6NMUKIqXJV3Z/Y9V0UFfme4hnz\no53p/Tr7u7NUzKwUNvrY9pT0N0D39MB6hRYu+7qNCTfwFMRDmbH5TUbb21BT\nHKzEqdo2OVurkJOzjM6nOxGlzpDfPnD4Zq8h6ZsDDApaJnJtmO8xNLi3f+NP\nRZEkd57U4G32w9ZyC9p9NUAsEFZsY+F95PXmnWpoznuFTE0t0fmamj2YEnV8\nnfv3tbbGGDJ5VN1yEf9UINgk71Ofcsn2RkrK8sn1Vf+pP4TyNiIC/aucRNDY\nWqF5yoI2HnwRi3sFtIXtMES6sFa38F4yz29Fjf9J0tpqJAidA1brnlQkOUXQ\nlSzhU+6cMvjeBzNFRo/38k67VUhZCEp876QnCXKTl4Dgd/dFz/sNDB2XiL8n\nwxd1PKEcpNbUhLJAzxIIQ5kLhKvsaSumHoYSI0T2oaK7643egjwG0/B6LUb+\nQ8e4\r\n=Vnrt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAioXsPxTtrUmTzjvM3Fha9amjBrmIUjY9CvW6ngOJXFAiEA/Dqnus59pSahmaRvdAw+fnpKtyBGBcXVgR80NFzjjUA="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.1.0-next.1599107309.13e6245c58b879c60fcb21033d0d783a7fa728a7_1599107311204_0.44559596732706264"},"_hasShrinkwrap":false},"1.1.0":{"name":"make-deno-edition","version":"1.1.0","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.16.0","fdir":"^4.1.0","get-cli-arg":"^6.6.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.0.1","eslint":"^7.8.1","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.19.0","typescript":"^4.0.2","valid-directory":"^3.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"13e6245c58b879c60fcb21033d0d783a7fa728a7","_id":"make-deno-edition@1.1.0","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-0OJi9qAGVVSdSpIzcwXVSpms2Ds18W9wZM1zKAESodAB4h6knP8FlkAWPP+MAs+WzqH9QxykByyDL1PExiZY/A==","shasum":"5bff9e714e773a5ef0faebe4751e233c7c0cb8a4","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.1.0.tgz","fileCount":23,"unpackedSize":90225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUHEACRA9TVsSAnZWagAAnM8P+QAGoisMGvOwAMsytrNM\nZzVTWeAxBf6mLOnR7VdibMoOrWiPsjDJM5hRsngSsDhvxoRvNqN/lyfuJa0u\nPLMsbhFYain73Rv2zQf0keCJvazZKNTOMIGhEbOBiqxNF7+KrS2XJr/SRr5F\n17UUZTz6/geGSuXRxYkH30Lc4JKGL6iTVNs+qNJcnv04cGUef2XVdqyxkygf\nErWTBHn311YQ/UPQtyDGZbdyft3cMg4LClqhQXRvloSnSJZ8sUnELvMPU6oG\noifTXuLQ9iu96FPiqsvx2yT2mHedgSAgGpgmnETZTJRJjWH6IRUVaGaOpDmt\nemtypAA0o4Rgq0dyipAsZy5ZmQaJeS7ffn23NaZ6SejwC3WcwQrw3HU+y+a3\nQv87BK6gi9bAzBPYEIYjp9wUiEvPcKrhgYy5Yc5jE9fQAKveqnnLI9DvLe1y\nLIKnSo9Zd2O94q0RRuCmtmVb8gOODRwqFKJ96D0PPS2/dryvgvOhfg/1bCcu\nAGEW/1dZTyoJLnM/2XUOEVqC0ssA4i6Hkt4wSL0qt8bLDIIMpER2MepAoDO8\n6fEl+bSN0xCYzu4kslsaW7BAdjM3GfgJmtHq/0FRV6lsM1j7td8Ju6LsAPYH\ncMjvWsaT64SiE0KE0AFiqRBhAGfaA0pirI6DqJWODAusXKjel5qJUHCWERHK\nfvYg\r\n=J6Ph\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFFqLMABmeDRXb4YAmGxcksrR7eX2jbDuJITEJyfF6g8AiA2v3jlAE+Cx0DXXxUN9qc51zaiUYTTDoPJ20/Lu0a0fg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.1.0_1599107327719_0.8648894569852352"},"_hasShrinkwrap":false},"1.1.1-next.1599201156.eb7229966ff4f7ec22df43465b22e904be0694c2":{"name":"make-deno-edition","version":"1.1.1-next.1599201156.eb7229966ff4f7ec22df43465b22e904be0694c2","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.16.0","fdir":"^4.1.0","get-cli-arg":"^6.6.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.0.1","eslint":"^7.8.1","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.19.0","typescript":"^4.0.2","valid-directory":"^3.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"eb7229966ff4f7ec22df43465b22e904be0694c2","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relativeu path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@1.1.1-next.1599201156.eb7229966ff4f7ec22df43465b22e904be0694c2","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-zIzD9GZbivGOjoUF9Z2/CVIqYwPGrjb38dMcAyInl1tHYQsjZ22pp2cOTk9Y72Wx/e4U+XY7Bimsvp4QSdseBw==","shasum":"400b0876f920e86421223a1eeb4c7569999405f8","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.1.1-next.1599201156.eb7229966ff4f7ec22df43465b22e904be0694c2.tgz","fileCount":23,"unpackedSize":90288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUd+HCRA9TVsSAnZWagAAdmAP/AnZtxDx8/23n0txEKZO\n4gl6lJcec8+luSWCt/6ka08ouNCfFpvoVpqiAU6lbDgbxLCo/slwUvgon3gk\n8npw0QTbzjx+Hepa8qBUPEiQn1GHWo4zsKatdlib6GwUNcCeTc6yds872UAZ\nJljmcm4SLFFkWpmkwo4RtvDNrO9+RLz4HxTFoZNstmixWTcPTVighdd2MXiv\nmxB97IR1Sz11W+yf/UgRpC/kdsquLmWjJa1tyUqHHduiJV5mvPtMSN87lV0E\nwh2hLMJWjExN85OymZgmgoLQSWST9QBceRooNvgx7UOHyJ2ODi6iEEGhNVO1\nT+90ImCMrc+7Qb/Lv3yi/K7T/Em4xYWe7O7NU+3mnCcMprDpV+8Rly9fFtX8\nBoWdbfzmQR7SP3zlT4EpBBJmAMSi2OwUewnRWX2VInIqPeKl3VMzprx4Kc1K\nRWV3bwH1U9C+NepIm1/3flZ6k8eOmVB4E4duFD3eINZHxE5N302YGtqp1UEW\n2cdODQftgxWN6qnj6bmilBB7FrD+MTFFq19dShXH6yDzNbjoZUejCXFJHhNB\nIOyT2XLrF1ZQ5MqD9iB2eOPhgckRfHvj1AJONJcM7XbvnBH4jhIIAW2N8lsX\np4E4+6WI2t/aIGyH0jloVgt8b/4U/bLrh8KQQsf9/ADzcxhTf04AUmoXo4Xa\n35vA\r\n=ZSzE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICsoAprHG4nNtf7doxZxgnTUk6u3jVn4BgYuutWvCsAtAiEAp7/TYyJGiV7YGsq3Ckyqj95uEAc18oBP1F8g+VFQ0yI="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.1.1-next.1599201156.eb7229966ff4f7ec22df43465b22e904be0694c2_1599201158529_0.6221707128417042"},"_hasShrinkwrap":false},"1.1.1":{"name":"make-deno-edition","version":"1.1.1","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=14"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-node-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^3.0.0","chalk":"^4.1.0","errlop":"^3.16.0","fdir":"^4.1.0","get-cli-arg":"^6.6.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.0.1","eslint":"^7.8.1","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.19.0","typescript":"^4.0.2","valid-directory":"^3.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"desiredNodeVersion":14,"desiredNodeOnly":true},"gitHead":"eb7229966ff4f7ec22df43465b22e904be0694c2","_id":"make-deno-edition@1.1.1","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-6+Y3+1pG+i/cdozVagAWSvUI7QMqrVkN2i8QdIWSwpRxG9S9SuUdTb8iI0qSRzL3mQu1D+i0XSzPJiInq78W2Q==","shasum":"4359d26cf21766849c759d1f731c9791f4fe2625","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.1.1.tgz","fileCount":23,"unpackedSize":90231,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUd+UCRA9TVsSAnZWagAAgI4P/0DKgMBNHpw1CupghJ/j\ntCUWmdx5oDgSbjzVpd+a/U7ZXjgAokNScd18PVPo59ZEbmgcinntthGJ4kci\nR1SWzA3/Hn9kveZJbi1SQ7psIrkUqhnRaBFpqP6xXm/9karuBlPyNzJTor17\nq/U7Eb9kK/OCTKho31vC7zJRc7Bz7y/Rv/ZDO3PEnv+uNh1yzxWhRNVTZ0ov\ntdviVcFZsHw1POjWi+dVs30JNgR7HLlluDWyodUNQ3HeOYU28YR4LgvrZxib\nzaKVyHO8DGpSB6osfhiRH+1qg/Ww5BToxPZXhp4b4lxpgxm6DBPV8wWvJdPW\nmeCfKbYR/TxfclJI4YHx/w3ueOEncs64lfGwGM2ybzgD0ESjLwE8P662rgS5\nMVQPFDAWn2K3uFKpecFSAgEKjV8GjodDMUXEIp4C3RFTRMHVb6mBygP4/Lvy\nXXBEplGNBHeAlYPqWmMERFEOti2zZK8S2pj7pjH8dcNWUAOhESq2jXFl5TIG\neiwKgt0EJf8Iot3jqRVonQ5Qw/Kryt7KdpUN+81Ylcpc88aGtPBqXgU0o8Fg\nb6oCYGxcjV4xOWGx2jfH8GVwncSBUPUrQMw0w78tXTDIcxaJ6hlAl8wkzMy5\nAfk36sL3Fe4eRnEUSTiaLy9xTDV5I2S/ZgXiyPvgx/htMEEZABWZgavRMmwA\n485b\r\n=vJAT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBuItIPFwu9MjfFPoJUKSpbiY93ZGcyykz2+wglEkxcwIhAL62+AvADOdoJbSxAJqc1cCVCGMHfzDgITIh/INreQt9"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.1.1_1599201171749_0.610554600291064"},"_hasShrinkwrap":false},"1.2.0-next.1603916556.050074421120cc0deaa07f34de8effbc4a496624":{"name":"make-deno-edition","version":"1.2.0-next.1603916556.050074421120cc0deaa07f34de8effbc4a496624","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","es2020","esnext","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-esnext-esm","entry":"index.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 14 || 15","browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-esnext-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^4.0.1","chalk":"^4.1.0","errlop":"^4.0.0","fdir":"^4.1.0","get-cli-arg":"^6.7.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.17.0","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0","assert-helpers":"^8.0.1","eslint":"^7.12.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","prettier":"^2.1.2","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"050074421120cc0deaa07f34de8effbc4a496624","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relativeu path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-esnext-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 15 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@1.2.0-next.1603916556.050074421120cc0deaa07f34de8effbc4a496624","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-aQXtyv3g4XqM9mfwaKXwXFEPIv63AuRqwV3R5WVdWK0pRzGEggepW/6qL4Kbms9oAWFvXuKMvq8exStSpsniGw==","shasum":"4d858db2692af8310242d6981ca1fa937daf355d","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.2.0-next.1603916556.050074421120cc0deaa07f34de8effbc4a496624.tgz","fileCount":24,"unpackedSize":91155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmdMNCRA9TVsSAnZWagAAr74P/3En7qGPuHCoOgZQRKrQ\nl8yQaa144PePNyGSITs/JkmUH4qxOEuClsL5j2NAYjht23FVTU2q2g2U3TNn\nAiuwvKAbc23mZirvvild1elaXl+rvYBixIItXkgpBPtBCohxL/MdRyItdpou\n7Gzl5Ofxx1e/9FwTqVKo/SRUtEM7B6T6Mz++6HMIDwH7WySC88oiKx2VmMvA\nfua+WYCSh591jeODN9GDBh9F9Eh9T1lli3bcvLwXDhCvCDqMyaOplNPV3aZZ\n9DO2AmWbDPUAx216dPjQucDUPsnuBxGt3GNvf0boyzpJuopucuInjqEbBh3w\naCz6CjQzshv+ERiOw7G0u5hRV90ZwSmbTVC20R/8EceMh20CNc9I4o12Huug\nJu3zkYjahqCX7msEyCQ+EuRfrmKjClGTszydMvZWK7XjxhAKVrwc1wgMwxbA\n5Jdd+F7S27uszOWOt6rdcJs1wRjmCeuJHxAJzAtvUx5snuOmX4ZArC/lrSS2\nzC1smwBXNscHBoq5puq51etXtF8M6GX9XAAv5jk62hfhgatnr0v6mdrSQ3j8\ncXRpeEUeH4eWv7ZxrLm8YRE2LwQ1KoEFUm7C+d43jvXffkNn5IIJovnot84f\nnmon9+18AV5g5HGHEWm8jnXoCpq/TfLdD0c76618ERYAM0BgRj/ts9GB2Sc1\nstgs\r\n=yGWw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICm4ThsihwJ6nGeJcA9g1Y++hWj41f6UnLa0nywG+o+lAiBJu2WJm+7eqJmCQW3QES3ZIEFGbnsEZAcb6rCz6nDa9Q=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.2.0-next.1603916556.050074421120cc0deaa07f34de8effbc4a496624_1603916557413_0.9381406162389396"},"_hasShrinkwrap":false},"1.2.0":{"name":"make-deno-edition","version":"1.2.0","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","es2020","esnext","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-esnext-esm","entry":"index.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 14 || 15","browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-esnext-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^4.0.1","chalk":"^4.1.0","errlop":"^4.0.0","fdir":"^4.1.0","get-cli-arg":"^6.7.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.17.0","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0","assert-helpers":"^8.0.1","eslint":"^7.12.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","prettier":"^2.1.2","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"050074421120cc0deaa07f34de8effbc4a496624","_id":"make-deno-edition@1.2.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-s9qLP0FCXDcqEMczkXNV0fzI7PyKFdgxaIb7jtOTwCkGU8YGjFJnO0W27RFNkCwobbw+AI8TbSGMmC9Jt+r/1Q==","shasum":"ef04eb50109ade76fa1b5c5553b3efe56620144a","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.2.0.tgz","fileCount":24,"unpackedSize":91098,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmdMWCRA9TVsSAnZWagAAltwP/jsJkKpra3f7Oq+GU/lU\nMJxZDDrIUni6VLZPRIOcbYydDGIfHq348EwxqzEhuRo/EvMH6aaBabx/Ftkt\nIk8CzQGyVBUL88qNAzNLMsZ8my6sYld+oX1rLbRevsAeawtUQintI0kJoF+R\nSb4twnIys558PSfYFeaS8E7OhloUvHiwKq4IxgxzFMfd1KR0Y+VHVdl44ALM\nTMnGtEGNOgOcFsAAAy9bxLrbfh7oPFnA/r5pJ2LBP/3ZEHcRKQDbazpSUqFM\njaGX00H+ZdGqY0EJa9h6Eagna0dTlz/i0gbkqIlQebVQv+xcMyScr7zaXm/F\npINfsf3l1lkRZfkF12H7Xs3pqZ1WsPPIYOkXlU/a72GCJGUYIWDC5LKLGy0i\niTsZ0/WCBRcdjjh1PMjOcKD/1TLbAerwFiSi5i+cRIFYSmUxFevP7Bop9g9h\nc9JXQCPO0Brtd8gr+VteGMFWTzf5Wn6C0VpiDLVkbMAGMXQUyAKg4R2IL9U0\nSsx0gbggv5peZC3HWE+gGtcBz8jr5DNsowfAXtUlhMLABtj2Fdpk0xVY4Id9\nDakgvVqqKJMOVvN0PQUyIm5rK6zt90KWKmbGS12JKoYlpUIdoC9zcn+lS5Z1\nYJcjOQq1laBbX1fymbpHhrboJSPLgdcafzckvNLfocs4ijZv570MTizmmK+S\nc9vU\r\n=h+uV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEK8MXPXZbs2PXJL+JyxjbCEGDdfyjlqPvj5i0cDaiZAIgJAuT+sHolVWnwoo5u/gS8i04aGf1S1w+3Jjxo901reM="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.2.0_1603916565856_0.62732613482682"},"_hasShrinkwrap":false},"1.2.0-next.1603916642.257ccdadbb4456f19159176b6b7ca187840ebfa6":{"name":"make-deno-edition","version":"1.2.0-next.1603916642.257ccdadbb4456f19159176b6b7ca187840ebfa6","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","es2020","esnext","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-esnext-esm","entry":"index.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 14 || 15","browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-esnext-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^4.0.1","chalk":"^4.1.0","errlop":"^4.0.0","fdir":"^4.1.0","get-cli-arg":"^6.7.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.17.0","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0","assert-helpers":"^8.0.1","eslint":"^7.12.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","prettier":"^2.1.2","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"257ccdadbb4456f19159176b6b7ca187840ebfa6","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relativeu path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-esnext-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 15 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@1.2.0-next.1603916642.257ccdadbb4456f19159176b6b7ca187840ebfa6","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-4MHxhU18XQ7cBldfsmKknfABCmo/L+T8f/4nfCc3jrsd+XbYiYRBwFOEkAjeFTaaoPVDqnQaTdqCUJ9nWXjV+g==","shasum":"44b8919d090235fbcd56d518d93e699919b71ad9","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.2.0-next.1603916642.257ccdadbb4456f19159176b6b7ca187840ebfa6.tgz","fileCount":24,"unpackedSize":91155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmdNkCRA9TVsSAnZWagAAtHUP/jCX/Q7OieOOX/bdUJTz\noG+vCiIdCdUliiZMmUljW0beB6rZD5o9/TSFgPsRgEvnaxgOXK7iI6S15j+p\nWJ6na5hampWcoOx/tHisCs25mAqJ6ALLerGULfVbsM/QIInQ/PzQIbGALK2A\nH93DaCIr0IunD8MNVsL6ZyCz6+4ONvIMpXdTNEyODEMx9b4azSPByiQhzc9o\neCETDac5ktfQ7RJBrJCSgsI08K7fdq6DU64LLIRV/QB+WW0qk9OTzkfB5ofv\nT2PPMh3B13fjxi/flxWPmIVLgI/g4NdEubuFySA7PLraxzU7O91qyNRdN57E\npRbVBs4UaFE0AwsOBRD7dfMTK5YAibo3srqIWZ0iM51VC1Dswft6BIOxh3Kk\n9iItdCoi9QsSnLulazZC0f0fAG1Var+ZZFxrZ94xpN1H38XAPEUN8uX25vgM\nwg4055TLI+5OE2zt8hlmu/HXAQ1oFuQD1nCwp8VnHIP5wCsMLPy5BJMseJCb\nfz0bC2+mhjNibUthdQ7XhMPGDi3yHru2TYRp6NIdF4MCODJlhWTjm//2dMVX\nOluWUYo3uY7ReMJ9QKF+dIbMr8VpmzbWIbq5LUuqfXJAF/V+OEz7cqGgO/ck\ntl1SotydYsjRoLzqlDitYC1HN2fgF7GFaC3Vc/9eXvEi0qupAmi5OLYOUKtQ\ngLXU\r\n=EfsS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDTZEFRcpnKkB9FVx8ZGyFjhXgulQFNBxbfRSX5MAUE7AiBtvjY7i2/08wbQz7qFuzlj0fadtLJD9O+07C0iZ6p+8g=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.2.0-next.1603916642.257ccdadbb4456f19159176b6b7ca187840ebfa6_1603916644380_0.818620406116056"},"_hasShrinkwrap":false},"1.2.0-next.1604236622.7c588be18d4fae04e981190fa47b698a600164ca":{"name":"make-deno-edition","version":"1.2.0-next.1604236622.7c588be18d4fae04e981190fa47b698a600164ca","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","es2020","esnext","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-esnext-esm","entry":"index.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 14 || 15","browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-esnext-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^4.0.1","chalk":"^4.1.0","errlop":"^4.0.0","fdir":"^4.1.0","get-cli-arg":"^6.7.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.17.0","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0","assert-helpers":"^8.0.1","eslint":"^7.12.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","prettier":"^2.1.2","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"7c588be18d4fae04e981190fa47b698a600164ca","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relativeu path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-esnext-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 15 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@1.2.0-next.1604236622.7c588be18d4fae04e981190fa47b698a600164ca","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-hX6LT6j+F7s691JBlkdGmzRWRRfoJwet0H+3obbwLQgpwmAI22LqcP5sjkG0UjslFWO52OJGwFpfGbQR1r13wQ==","shasum":"2d5c916fcba9dbaa46c7391ac0970ddac8e4983f","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.2.0-next.1604236622.7c588be18d4fae04e981190fa47b698a600164ca.tgz","fileCount":24,"unpackedSize":91155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnrVPCRA9TVsSAnZWagAARHcP/jKrzIzRmS0oicYM0TTN\n0B+vIdeGVl3EST2fT7WyUfdDsAGdpZpLVQT7/1i7GTYDZYPcpT9SsSa0puTp\nCMXJGhul2ZoPofw5KxVb2p/aiQGCKEh9MHT8Xqq6vfPDF+Q6AFVj/UTVqk1w\nBFIb2jBpTlw/XKCEQIRHTj5PgXx1BxyjX47FbFB0JrFz01fZm/eyjw/S/zBH\nuxRe32RBzTav9I1slz/ztAjOlLiU6MdM6mNRt3/6v+frc+u8avsIf3nltUlO\nqxYiQBDGgcHHtc+XC6Pl7yO2M8qsGBzxzWxg+P5oK3qRAVyGjSUIkvwpiism\n35Oo9KwxATG5iOo8O2otTUJFeLdmIOcGcat30DYKQP14jZ569RG3a54lh2ZE\nU8RJe2RJloCFAWBnz8fNzlXWyd/0dqczBfPkJD9PsecxN0FA16Ng/T6IuzEk\nFnVw6NV2KY42pDq+nh6MxM3uNABweR8kD4rEknRxcKDUyQUzNeGNLHgqhX7Y\nPpHiucdgu1Ef/bguW57kwbvXNmuA3uV1zs+lWk0hlNafiVM9GkI6WFSmKy7q\nMZQRmfiveAkZ9RaWjTx8iMs+c59HpB4qbnTcFNml07OybHI4YzFvJ/yIgTeC\nGyIbs/l69RQmQ4PqnlBoK8tsfODy9WGPqO77BWbvqvTFrfnkArvy0mrW6S4U\nYadC\r\n=YjnZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8nVfH09diK3uiv93hy0H3QMzsZ5AZfyJGMvq8mXThwgIhAN8eYqBZP/gKPAyS6ct/ZymQnYtGzaDCoR84c2NIqn8x"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.2.0-next.1604236622.7c588be18d4fae04e981190fa47b698a600164ca_1604236623526_0.4358208525178109"},"_hasShrinkwrap":false},"1.2.0-next.1604237149.5a0612a057690cc4184ed095c7b5d2ea465d17e4":{"name":"make-deno-edition","version":"1.2.0-next.1604237149.5a0612a057690cc4184ed095c7b5d2ea465d17e4","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","es2020","esnext","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-esnext-esm","entry":"index.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 14 || 15","browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-esnext-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^4.0.1","chalk":"^4.1.0","errlop":"^4.0.0","fdir":"^4.1.0","get-cli-arg":"^6.7.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.17.0","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0","assert-helpers":"^8.0.1","eslint":"^7.12.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","prettier":"^2.1.2","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"5a0612a057690cc4184ed095c7b5d2ea465d17e4","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relativeu path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-esnext-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 15 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@1.2.0-next.1604237149.5a0612a057690cc4184ed095c7b5d2ea465d17e4","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-5aiJ1J6HlzbUM1FGLpiWKD2mKKBi7DVJJJ0uUsfOtLHNq9MJCrGsRemBuPD8JWqBRde5V79m7FJzHyReFyLmvg==","shasum":"23369be73877adb8f40132daa80bb4bbb3f539b4","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.2.0-next.1604237149.5a0612a057690cc4184ed095c7b5d2ea465d17e4.tgz","fileCount":24,"unpackedSize":91155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnrdfCRA9TVsSAnZWagAA/H8QAI78jj2qLiiHubmh1qvC\nXt8nta8mi17RBi/7igKXXiIi4oc/9lqSXJj3H9Gd+Ll6lGCoc17Mtj1UecjM\nhH/O0usLbDv8EXe4zUq2mq5zyQ66aeKKZw+v1oFWUHtZsYImDNtNtKesNnEy\n5oC5kr4JQ5MVFKJV3AfjLDZau6e1VfnOAV/wuxaRoKwfHIox/tUNmdS4wzR/\nUMHM/f3wNRluMupH+900Z0BT/r+kvg/eZsEdQXSnBlnZzt11GWBjwa2i2VJY\nG2ZAH0hvI7eE4calu4gMx6tJ1DZg0VQXOrvxFb0+WNyY/qB3QmutmZD+qu7P\nTKVhJlmPr/yDQRvo/tsXlB6Up+PfB1r+UKg1lBDI3n7E2Kg59oBF+NzDa0vo\nI8p47WmhpHrOAVOR9oZ0drqmanNzMx8k51AgP2jgsqEbuob8ncyr35TzcakG\nvftf5ICq3bqBe6Y7K5j1CQ69nTmgOH1QTM7AfDDosN6yeoVO6bB2LXM2Ag7G\nxYHY7MBq81izNLI0sBXKPG9jeYfiRazj3usAf6O2WAJyzRAmwzLVj1Yvftn1\nw1V/TYfOOEFv7+gXjs12d08HfJF+Kbjd1NZesJx4/3zFDxYl0qCR/cx9qZEn\nupBBzm4BxKPYaKKS/2hsIJ7Dj0hEMG6LoQMXwTTBdLN701U45TxX0Y3fNBDy\n7XHr\r\n=QFae\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA7RCNAHtovC8Obj3lfy8pDy5XoB8C44gbVByFdTvTPLAiEAr4TSdIwbq+PhYW2Z+JIxPV3enKDMaU/1IbAvAfiL0+E="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.2.0-next.1604237149.5a0612a057690cc4184ed095c7b5d2ea465d17e4_1604237150933_0.03379037191679135"},"_hasShrinkwrap":false},"1.2.0-next.1604237725.60ef5bcfb35c66628007f062cd982151f56f727e":{"name":"make-deno-edition","version":"1.2.0-next.1604237725.60ef5bcfb35c66628007f062cd982151f56f727e","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","es2020","esnext","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-esnext-esm","entry":"index.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 14 || 15","browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-esnext-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^4.0.1","chalk":"^4.1.0","errlop":"^4.0.0","fdir":"^4.1.0","get-cli-arg":"^6.7.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.17.0","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0","assert-helpers":"^8.0.1","eslint":"^7.12.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","prettier":"^2.1.2","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"60ef5bcfb35c66628007f062cd982151f56f727e","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relativeu path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-esnext-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 15 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@1.2.0-next.1604237725.60ef5bcfb35c66628007f062cd982151f56f727e","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-b0vVpIgHQL5+BcMePdeI4uNJEeIfBC/rY2FRdpaJQa8Hx148dq4NfPfrLrDZerTzNheafONfsHmvcNrKcb44Gg==","shasum":"f260161ae52916fcdc4424ef8850bece234b70ab","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.2.0-next.1604237725.60ef5bcfb35c66628007f062cd982151f56f727e.tgz","fileCount":24,"unpackedSize":91155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnrmfCRA9TVsSAnZWagAAFoEP/RqSwStlOTUdZSkF25ZN\nndlsdCGoPkI9i7N8hEnZHT+LzvUwiMm5fY4UAOJYRUHxXpcU0aA0PeS0uMgB\nbGd5mQSEXc2oyeseA0mbpkaOOvNs2tgck8+k2RYpTbN1SheJ0QzgZ8tFf1ZR\nnAPM2PJa9sChV1UdKsAheGnnbnMPsSyugQMHYqkhP2tOkJT9Uugq0LVz1BC0\nIdEzHqZ4nnv2kfAqoP+GuamvYmTfSRUdtF2ShybESmoGBH/z152Df9tiZun5\nl79lNvUCM4ISpNx9cB00XKMJXefR08R4V3pCJeqXtLM1hryAT5hcnnpuTgpq\nE1BTd59q3O4IRaWTdvkG8VXFLB7iMFcpc2+vX7edfaAIhQZBWZXNpusvBBKX\nKS4UfYqxqYzBBUJLXQpRaHtHwewdiOuOGgf21m0HSoopuhtkDxwiCNsm73mZ\nKzaYKpxjhIyz3gJafhOfJJP+3Y5YgKhBYiD/bSCGjIQchIS4cswPi3wSzs+A\nS0A1pMHLcCOB1pHc6GgsUZe9X8HlrIyKPAJnEJfDpVbqyPWliAM6f3ECXegu\nzNSDOY8NzY+6VRHAfweiyBSEigKH2N6OzFTjrpUtQzpjT8JlZ8wglC/rC4eg\nnw6D0YMKpVV2+05CTGT/X2XKRib75BT8pPwJ2DGAUepsjTRs8iGqq0C2Rx2Y\nE7Hv\r\n=BzBd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbsCesOSs9U5EVvvW19yUv5c76d3pKN6LhZLQ/IjmIDQIgAURCHgwAR3n7+JUR0LaHe8wc87GL024ix72RAYEC1M8="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.2.0-next.1604237725.60ef5bcfb35c66628007f062cd982151f56f727e_1604237727262_0.527872982961469"},"_hasShrinkwrap":false},"1.2.0-next.1604238446.cb487894694c6a16e6f1bde27c85dfff1f2b6c03":{"name":"make-deno-edition","version":"1.2.0-next.1604238446.cb487894694c6a16e6f1bde27c85dfff1f2b6c03","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","es2020","esnext","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-esnext-esm","entry":"index.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 14 || 15","browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-esnext-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^4.0.1","chalk":"^4.1.0","errlop":"^4.0.0","fdir":"^4.1.0","get-cli-arg":"^6.7.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.17.0","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0","assert-helpers":"^8.0.1","eslint":"^7.12.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","prettier":"^2.1.2","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"cb487894694c6a16e6f1bde27c85dfff1f2b6c03","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relativeu path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-esnext-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 15 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@1.2.0-next.1604238446.cb487894694c6a16e6f1bde27c85dfff1f2b6c03","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-jR7wxcn0Frko0v6e+JxbxAbNv5cM6HOIX5LpktpeiJHS7WWBLWhh+cwOB4fM8IB62HBgUOzcq7wlagQMHLRAMQ==","shasum":"05246f10359e3a53388cff7dbf2c5e72eb04a37d","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.2.0-next.1604238446.cb487894694c6a16e6f1bde27c85dfff1f2b6c03.tgz","fileCount":24,"unpackedSize":91155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnrxwCRA9TVsSAnZWagAAEtkQAIPUVy1Vsm/HBISuVXol\nJsoy51DQmBs50bkS2fYPsWVN9T045JF3LB9/5ddFE9QRg6af7akGMSCC57Pe\nGxRcFjshdLCzPiqZgeG32Z8xr/v4CwIChNW/jPmEHLoF9+aODTG8UCG7jfgS\nrAfqfXrupv18Hf7xOKEyVVJS+Xag2YXbIf1LrFfvbzZiMyevBjzkhukhpn7s\ne1n4aLt0Gt7A/mlfgnvtK2lB2Z98nS+jAjIn99+omEcBVco+B74Q9r6cPlgV\nl3Uh9JW9wpqaLH8Iczdd/v2gLuq1mqFAXhKouqnKAOIzIqlk9rExUdorgGg6\n9rCFmE+Zo3Bt9aXLjs7FTCWnvaU46NCV7mAQZmqvCaY9oaacrIi7pbnfnkx7\nFod9x0fLErVG7b4L/2HUrzUCtcLTCCaQpggfWrMgBfBDIOXic9Ye9AVdUEbR\nJ79HKwaZHUp4djcWe4MXQMFYsOtypMrpDf4Je8C0z63V1PFaYWR4AVxBB9Cj\n0c8D6iPV9jaG8G1fjAXi0gyloV+3I608JtuZdph7xrlIngiiigUqFnEyvbnw\nmpKz/F6SYjvGmxGSciXYBAmv0R2krkL4Xue9CBBx4xkzcHXU+2XgD5CD4bo7\nFO4sgLOSeBkccC1U+D3bt2m7gBZN2MoufEh3tlOFjAYhWyQP33GaIKvUF1aV\npf9f\r\n=jEfK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFHlH7snC8INj26Dxb7fzysdflOr+zZwIy/ak+/oK5NAAiB/G0W2c5WZlo6grbHzEo/n7BXecMlx+bcRrozOUJxiSg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.2.0-next.1604238446.cb487894694c6a16e6f1bde27c85dfff1f2b6c03_1604238447526_0.4855238241003734"},"_hasShrinkwrap":false},"1.2.0-next.1604238645.63afafa14feea343812867de08683d0475f99985":{"name":"make-deno-edition","version":"1.2.0-next.1604238645.63afafa14feea343812867de08683d0475f99985","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","es2020","esnext","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-esnext-esm","entry":"index.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 14 || 15","browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-esnext/index.js","exports":{"node":{"import":"./edition-esnext-esm/index.js","require":"./edition-esnext/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^4.0.1","chalk":"^4.1.0","errlop":"^4.0.0","fdir":"^4.1.0","get-cli-arg":"^6.7.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.17.0","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0","assert-helpers":"^8.0.1","eslint":"^7.12.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","prettier":"^2.1.2","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"63afafa14feea343812867de08683d0475f99985","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/make-deno-edition\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/make-deno-edition/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relativeu path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-esnext/index.js</code></li>\n<li><code>make-deno-edition/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-esnext-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 15 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"make-deno-edition@1.2.0-next.1604238645.63afafa14feea343812867de08683d0475f99985","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-BxbRfuLVhFK9067e+XwBRGpwWOD0fOAVCJIXceEMfLEpe7xRQJCeCfamqB7A7kjfn46wM5FOjPnBaBRlpeNicA==","shasum":"bc8a920daf44e4eda479d7c1dd03c99404be258b","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.2.0-next.1604238645.63afafa14feea343812867de08683d0475f99985.tgz","fileCount":24,"unpackedSize":91155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnr03CRA9TVsSAnZWagAAe+cP/2xPZY/RMzbRe37/L7fA\nKzPvBUX55tHAW1dgxkj3xarbuEqJRNBSFRTfKzcc6vVKNMDZccn8zIqaJBxu\n5DJBb4tAnGqLCEiYGN5y/votClaMIZJu3bBIeLYVpcy+4k9058b/s2MSbjLm\n5IEHoHbjA6gGD+h7ZUpvj6Oz/NbACHIF8P+ptaNG/oT/+LVyhI+JmYjmSjHE\n/m+v+rUHZf2cCM6XLwvpqVqrNW5tYiCWy5W8DtyDkaKdpkBccLvxrZsToSw4\naDlCaziX8ntUu4YCJFxjLMGIvvE4bqJ6fROAEy4EaGRSpeLt50YwwJ3KVWHx\n8919GUixLJ1Y86jxtz5mlFQbzDsK1IYVRGANocT+135jyqBOusazGLCmfid8\nf1yidIW22UN6MZJIo7xtdnXy59UGTxCX5eE7auOG7xIkkVU1kLS6tMJq6jbn\niu8EGvVl5D6HVx9kQVkrTedCO3wt+h1SeJpT4NNYzNBclMtfddxLWytskjbn\nv398gkm07gGURRdacgizX70WHfmyxayEUVxomz9c9gwot8kXXhipGzbapwzW\nVnNQgT6R1Db+9k+3sMcygPuH+nLmpcPdv0xP6UAnrD6utXZyJmCzzZ0tzbAE\nux2fdAcpXTmgWD/wSaM1m8eh9RbUX3W9oaxpDjpuzoh0f+ziAVuf4NAvCneQ\nFdhm\r\n=hpYF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB5632NCRvenIWfaX6WgYwp0l4qTor4RPQiLlzIzTc9jAiEA/LUmmunNpZWYJOT7ziKOK0yIXdr2yKVRA9CFYLBIlI0="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.2.0-next.1604238645.63afafa14feea343812867de08683d0475f99985_1604238647016_0.582161492055197"},"_hasShrinkwrap":false},"1.3.0":{"name":"make-deno-edition","version":"1.3.0","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","es2020","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2020 for Node.js 10 || 12 || 14 with Require for modules","directory":"edition-es2020","entry":"index.js","tags":["compiled","javascript","es2020","require"],"engines":{"node":"10 || 12 || 14","browsers":false}},{"description":"TypeScript compiled against ES2020 for Node.js 12 || 14 with Import for modules","directory":"edition-es2020-esm","entry":"index.js","tags":["compiled","javascript","es2020","import"],"engines":{"node":"12 || 14","browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-es2020/index.js","exports":{"node":{"import":"./edition-es2020-esm/index.js","require":"./edition-es2020/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^4.0.2","chalk":"^4.1.1","errlop":"^4.2.0","fdir":"^5.1.0","get-cli-arg":"^7.0.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.18.0","@typescript-eslint/eslint-plugin":"^4.26.1","@typescript-eslint/parser":"^4.26.1","assert-helpers":"^8.1.0","eslint":"^7.28.0","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","kava":"^5.13.0","prettier":"^2.3.1","projectz":"^2.18.0","surge":"^0.23.0","typedoc":"^0.20.36","typescript":"4.2.4","valid-directory":"^3.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-es2020 && npm run our:compile:edition-es2020-esm && npm run our:compile:types","our:compile:edition-es2020":"tsc --module commonjs --target ES2020 --outDir ./edition-es2020 --project tsconfig.json && ( test ! -d edition-es2020/source || ( mv edition-es2020/source edition-temp && rm -Rf edition-es2020 && mv edition-temp edition-es2020 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2020/package.json","our:compile:edition-es2020-esm":"tsc --module ESNext --target ES2020 --outDir ./edition-es2020-esm --project tsconfig.json && ( test ! -d edition-es2020-esm/source || ( mv edition-es2020-esm/source edition-temp && rm -Rf edition-es2020-esm && mv edition-temp edition-es2020-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2020-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-es2020/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"41fe7f9f85f49263e22074da19c184c2bbb90397","_id":"make-deno-edition@1.3.0","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-C5JoDkykIJMjPf3wVwgzM1ex680rNwhGYF3gMlgoeXAWPAyEPof6W7/HaZvLLNaR3/BRzNElsfbd7ZEIkJOJXA==","shasum":"8c3030134c3e152609a150919df9725fde2b1f44","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.3.0.tgz","fileCount":23,"unpackedSize":98004,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgxv1vCRA9TVsSAnZWagAA4vkQAJwp09/M6xa/CrLljKFd\n0FBq3QGlfYTSw/xbJX5fCvetMIpSGGF+76Nnswy7RuHm0Xv1gzCOTkZno+X7\nttoShDeJqcnp76KdFL8lKuPaw7sMIarmMM3BzkFLGNhHkZuJSc2Y8WGSAdK+\n1egOHm0ylIcLEVh9E/AHybtxgyc+fzAAD4INvN7KhYN9QEWnj2E5lFo4PEr/\nG7jcIf8zhQKdskD8r/ycr/k7qW6l7ni72MGZI/Qi+PRTWW90scmZhF6bcYX2\nUlYhWUoVZ20bLdgA5A/nSpJKAcuA1PkT8kgHNZAl8AVJsXLywuHu0GhHWJM8\nMVCEiKPbaP304tr0TC8czzfRj8nAFSmQHu4G6IkvRGUFgAOodz/XD5pbJd9N\nPhshAyMLXKBfZUt3Mlm+ioqtg3kbInThc4oXNF0dckVAocIJHUQceejDVpAg\nlHybH2zABXWpXRLz1zI/fZuUMrXpWlA34x/uKSlX1ztnw3V+DcW1gC9DXhqk\nCVagoTVTH/oNPQ9JeClpikaPN/V2pXvFwOacWcvy1aI2wyaNxerdlQdOX7TW\ne5MgHDWLlB4I0l6wMIFWooSrtpyA9CPfTGZNeo5W3T9KlJqKD09SjW1OFfxe\noLfY/my0/2BtR+lXojj8hT/+6JXUMVPwiPIn83o0m35e9fEUimlv/R+47Shb\n05pt\r\n=Sg9y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDOq5PYQNXAJQHnG+gWpjmhFPvLja0a0Qof7pGWyy2JQIgdMbbM83lSab12ubv8kwTBP45TvI0aLrxOGfyz7kT1BI="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.3.0_1623653743515_0.25560744789366985"},"_hasShrinkwrap":false},"1.3.0-next.1623653803.41fe7f9f85f49263e22074da19c184c2bbb90397":{"name":"make-deno-edition","version":"1.3.0-next.1623653803.41fe7f9f85f49263e22074da19c184c2bbb90397","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"MIT","keywords":["deno","denoify","edition","editions","es2020","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2020 for Node.js 10 || 12 || 14 with Require for modules","directory":"edition-es2020","entry":"index.js","tags":["compiled","javascript","es2020","require"],"engines":{"node":"10 || 12 || 14","browsers":false}},{"description":"TypeScript compiled against ES2020 for Node.js 12 || 14 with Import for modules","directory":"edition-es2020-esm","entry":"index.js","tags":["compiled","javascript","es2020","import"],"engines":{"node":"12 || 14","browsers":false}}],"bin":{"make-deno-edition":"bin.cjs"},"types":"./compiled-types/","type":"module","main":"edition-es2020/index.js","exports":{"node":{"import":"./edition-es2020-esm/index.js","require":"./edition-es2020/index.js"}},"dependencies":{"@types/rimraf":"^3.0.0","await-spawn":"^4.0.2","chalk":"^4.1.1","errlop":"^4.2.0","fdir":"^5.1.0","get-cli-arg":"^7.0.0","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@bevry/update-contributors":"^1.18.0","@typescript-eslint/eslint-plugin":"^4.26.1","@typescript-eslint/parser":"^4.26.1","assert-helpers":"^8.1.0","eslint":"^7.28.0","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","kava":"^5.13.0","prettier":"^2.3.1","projectz":"^2.18.0","surge":"^0.23.0","typedoc":"^0.20.36","typescript":"4.2.4","valid-directory":"^3.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-es2020 && npm run our:compile:edition-es2020-esm && npm run our:compile:types","our:compile:edition-es2020":"tsc --module commonjs --target ES2020 --outDir ./edition-es2020 --project tsconfig.json && ( test ! -d edition-es2020/source || ( mv edition-es2020/source edition-temp && rm -Rf edition-es2020 && mv edition-temp edition-es2020 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2020/package.json","our:compile:edition-es2020-esm":"tsc --module ESNext --target ES2020 --outDir ./edition-es2020-esm --project tsconfig.json && ( test ! -d edition-es2020-esm/source || ( mv edition-es2020-esm/source edition-temp && rm -Rf edition-es2020-esm && mv edition-temp edition-es2020-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2020-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-es2020/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/make-deno-edition/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/make-deno-edition/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/make-deno-edition\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/make-deno-edition.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/make-deno-edition#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/make-deno-edition.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n#### Interactive\n\nThese are some highlighted packages that have interactive examples for the different targets they support, and whose compatibility for Deno was provided automatically by make-deno-editions, illustrating how easy multi-target production and consumption is of write-once packages.\n\n-   [Caterpillar](https://github.com/bevry/caterpillar) is a logging library for Deno, Node.js and Web Browsers, it will pipe to anything that has a `write(chunk: any): any` method.\n    -   [Source Directory](https://github.com/bevry/caterpillar/tree/master/source)\n    -   [Deno Example](https://repl.it/@balupton/caterpillar-deno)\n    -   [Node.js Example](https://repl.it/@balupton/caterpillar-node)\n    -   [Web Browser Example](https://repl.it/@balupton/caterpillar-browser)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `std/node` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relativeu path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported if:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they have a `main` field in the `package.json` that ends with `.ts` (is a typescript file), then it is assumed to be deno compatible\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/globals.html)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-es2020/index.js</code></li>\n<li><code>make-deno-edition/edition-es2020/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#11th_Edition_–_ECMAScript_2020\" title=\"ECMAScript ES2020\">ES2020</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-es2020-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#11th_Edition_–_ECMAScript_2020\" title=\"ECMAScript ES2020\">ES2020</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"41fe7f9f85f49263e22074da19c184c2bbb90397","_id":"make-deno-edition@1.3.0-next.1623653803.41fe7f9f85f49263e22074da19c184c2bbb90397","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-K48cZBukBiisp3Nolxh+HfoLP6lxkvl+3Q3PESA7dOlqbovU2GAylOR3WIuATlKU9Uw7XqGLEIuqvnYTqVEeRQ==","shasum":"768f8d13f1be2c2ee065023bf8af753e0331a8ca","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-1.3.0-next.1623653803.41fe7f9f85f49263e22074da19c184c2bbb90397.tgz","fileCount":23,"unpackedSize":98061,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgxv2tCRA9TVsSAnZWagAAm8oP/3peS45PYlU1/Qd39Sv1\nxNeRTr9Z/aKwTMf4ABWL7NsuLaHuLKXlc22qusSUtxgndhO9oRql+DTGEVB+\nwE5+sM1F3qDlKQVgDsRMhLn8gATBPq/Ha6ic6qlDEmeNI7xcGh1lXMCHQT/P\naCWisptWeIxfZx5W0G6mO42O07JeifPqvJiB6Lcj3Od+NDym4w5GmG5pFLZ5\nm+t1SefW5NfbNevdO/QrYy0Hrkqas7zEKZh8Yv3uvyY99T9A9uoaFcNJz0bL\n/jotLmdw+wVCtGG+4ozfpEa34qv1O0M+d4UtDwNGPsE81epWV1VzroIFS00t\nd4a2/sj26ZwlVk9J6JjG3Q51hBDz4Rr6HriVHrY6YfMmJMpJlABAnGY+cGSR\n52GO5Nu5uNuCImDni/0BXMfYFwYVNxxMT493xKMhXoHuwzKcs3B461zDZI61\nF+LXLuHYgFxpxrMhwNXheaXdijP1Lv20p8uV8/UeoXH/Zjfi5imUtJ+SMM8g\nwTvIopotDaxTpVq+5F6IbSa0EDyONbAAjWbt4iDoG85EwBc88insqZbYRmm0\n4p5Cio+aNewfWThw+8tmvnP9hIGQiF4STJ+a4GyKGmh8z2sdWKajeioNoSKx\nOgG5Ml45O9vfAK48S1PB+EW+vHB54ZB1Ta+askLO00+B65wmrZQWusHovW5F\nnpml\r\n=4QX+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSIrzB8jK8LqsDQKOwYXpw++p7GEqWQiNdAp+GX3ubaQIhAODWY5K5FW00j3OPVApBb+WpSIUfyZbTQX46mPUCJ4wf"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_1.3.0-next.1623653803.41fe7f9f85f49263e22074da19c184c2bbb90397_1623653805104_0.7510917220950237"},"_hasShrinkwrap":false},"2.0.0":{"name":"make-deno-edition","version":"2.0.0","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"Artistic-2.0","keywords":["deno","denoify","edition","editions","es2022","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=18"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"index.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"index.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false}],"bin":{"make-deno-edition":"bin.cjs"},"types":"edition-types/index.d.ts","type":"module","main":"edition-es2022/index.js","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","require":"./edition-es2022/index.js"}},"dependencies":{"@bevry/ansi":"^6.4.0","@bevry/fs-list":"^2.2.0","@bevry/fs-read":"^1.2.0","@bevry/fs-readable":"^2.1.0","@bevry/fs-remove":"^1.2.0","@bevry/fs-write":"^1.2.0","@bevry/json":"^2.0.0","await-spawn":"^4.0.2","errlop":"^7.3.0","get-cli-arg":"^8.2.0"},"devDependencies":{"@bevry/update-contributors":"^1.23.0","@types/node":"^20.10.0","@typescript-eslint/eslint-plugin":"^6.12.0","@typescript-eslint/parser":"^6.12.0","assert-helpers":"^11.5.0","eslint":"^8.54.0","eslint-config-bevry":"^5.1.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","kava":"^7.3.0","prettier":"^3.1.0","projectz":"^3.3.0","surge":"^0.23.1","typedoc":"^0.25.3","typescript":"5.2.2","valid-directory":"^4.5.0"},"scripts":{"our:bin":"node ./bin.cjs","our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-types","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-es2022/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all"},"boundation":{"maintainedNodeVersions":true,"expandNodeVersions":false},"_id":"make-deno-edition@2.0.0","gitHead":"c63909eb3f7216f6381862ac26b5c9d57ce9ec82","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-A1nG1TbA/MBabFGFY7+bl7uMs1e8b1GQViJNIKptbtrn6xaDQuzNEZjR/+sX6hO9qwBAOK44tV/9pn1opeadVQ==","shasum":"14e1ab6d826096703655bc74f8c7411484d34df9","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-2.0.0.tgz","fileCount":24,"unpackedSize":104254,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEAvH1xhOWtjVzax9xjzKlfQDDOs6FpLEvIOpvZtiVIwIgVnhDW/8wFBKS4F/zqyU5DKs3i3hYTUPJsz6ANiENpjg="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_2.0.0_1700827332061_0.010188746772525237"},"_hasShrinkwrap":false},"2.0.0-next.1700827330.c63909eb3f7216f6381862ac26b5c9d57ce9ec82":{"name":"make-deno-edition","version":"2.0.0-next.1700827330.c63909eb3f7216f6381862ac26b5c9d57ce9ec82","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"Artistic-2.0","keywords":["deno","denoify","edition","editions","es2022","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=18"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"index.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"index.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false}],"bin":{"make-deno-edition":"bin.cjs"},"types":"edition-types/index.d.ts","type":"module","main":"edition-es2022/index.js","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","require":"./edition-es2022/index.js"}},"dependencies":{"@bevry/ansi":"^6.4.0","@bevry/fs-list":"^2.2.0","@bevry/fs-read":"^1.2.0","@bevry/fs-readable":"^2.1.0","@bevry/fs-remove":"^1.2.0","@bevry/fs-write":"^1.2.0","@bevry/json":"^2.0.0","await-spawn":"^4.0.2","errlop":"^7.3.0","get-cli-arg":"^8.2.0"},"devDependencies":{"@bevry/update-contributors":"^1.23.0","@types/node":"^20.10.0","@typescript-eslint/eslint-plugin":"^6.12.0","@typescript-eslint/parser":"^6.12.0","assert-helpers":"^11.5.0","eslint":"^8.54.0","eslint-config-bevry":"^5.1.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","kava":"^7.3.0","prettier":"^3.1.0","projectz":"^3.3.0","surge":"^0.23.1","typedoc":"^0.25.3","typescript":"5.2.2","valid-directory":"^4.5.0"},"scripts":{"our:bin":"node ./bin.cjs","our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-types","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-es2022/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all"},"boundation":{"maintainedNodeVersions":true,"expandNodeVersions":false},"_id":"make-deno-edition@2.0.0-next.1700827330.c63909eb3f7216f6381862ac26b5c9d57ce9ec82","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/make-deno-edition/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/make-deno-edition/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-discord\"><a href=\"https://discord.gg/nQuXddV7VP\" title=\"Join this project's community on Discord\"><img src=\"https://img.shields.io/discord/1147436445783560193?logo=discord&amp;label=discord\" alt=\"Discord server badge\" /></a></span>\n<span class=\"badge-twitch\"><a href=\"https://www.twitch.tv/balupton\" title=\"Join this project's community on Twitch\"><img src=\"https://img.shields.io/twitch/status/balupton?logo=twitch\" alt=\"Twitch community badge\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `node:*` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported by:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file, then it's direct unpkg URL will be used.\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they are an installed dependency, their esm.sh URL will be used.\n\n    3. If they are an uninstalled dependency, the `npm:` prefix will be used.\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-es2022/index.js</code></li>\n<li><code>make-deno-edition/edition-es2022/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-es2022-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 18 || 20 || 21 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition/edition-types/index.d.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled Types with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/Artistic-2.0.html\">Artistic License 2.0</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"c63909eb3f7216f6381862ac26b5c9d57ce9ec82","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-Fpceq/CSNlvlXVIqredRr8NWzxP4DSXTKZTqlWLIijfoI/XAdm3H4+LdP353uydWJVUQjubqAOEsoqjxW70w0g==","shasum":"ef7cd1bf7b6b098830d484a08fc8902c33887ecc","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-2.0.0-next.1700827330.c63909eb3f7216f6381862ac26b5c9d57ce9ec82.tgz","fileCount":24,"unpackedSize":104312,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzKWzSxK4/joqloH+ibt87uZJqT4Tk9K7Y6vRql0UUAwIgDBExFweWfkv37mkFZHdKCGEFAfkkT+v8tHmns4EzOk4="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_2.0.0-next.1700827330.c63909eb3f7216f6381862ac26b5c9d57ce9ec82_1700827395529_0.6777393369255271"},"_hasShrinkwrap":false},"2.0.1-next.1701773766.bfd1ce07694efb78f43b52b3c043f0feee3d4706":{"name":"make-deno-edition","version":"2.0.1-next.1701773766.bfd1ce07694efb78f43b52b3c043f0feee3d4706","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"Artistic-2.0","keywords":["denoify","edition","editions","es2022","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=18"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"index.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"index.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false}],"bin":{"make-deno-edition":"bin.cjs"},"types":"edition-types/index.d.ts","type":"module","main":"edition-es2022/index.js","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","require":"./edition-es2022/index.js"}},"dependencies":{"@bevry/ansi":"^6.4.0","@bevry/fs-list":"^2.2.0","@bevry/fs-read":"^1.2.0","@bevry/fs-readable":"^2.1.0","@bevry/fs-remove":"^1.2.0","@bevry/fs-write":"^1.2.0","@bevry/json":"^2.0.0","await-spawn":"^4.0.2","errlop":"^7.3.0","get-cli-arg":"^8.2.0"},"devDependencies":{"@bevry/update-contributors":"^1.23.0","@types/node":"^20.10.0","@typescript-eslint/eslint-plugin":"^6.12.0","@typescript-eslint/parser":"^6.12.0","assert-helpers":"^11.5.0","eslint":"^8.54.0","eslint-config-bevry":"^5.1.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","kava":"^7.3.0","prettier":"^3.1.0","projectz":"^3.3.0","surge":"^0.23.1","typedoc":"^0.25.3","typescript":"5.2.2","valid-directory":"^4.5.0"},"scripts":{"our:bin":"node ./bin.cjs","our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-types","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-es2022/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all","endOfLine":"lf"},"boundation":{"maintainedNodeVersions":true,"expandNodeVersions":false},"_id":"make-deno-edition@2.0.1-next.1701773766.bfd1ce07694efb78f43b52b3c043f0feee3d4706","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/make-deno-edition/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/make-deno-edition/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-discord\"><a href=\"https://discord.gg/nQuXddV7VP\" title=\"Join this project's community on Discord\"><img src=\"https://img.shields.io/discord/1147436445783560193?logo=discord&amp;label=discord\" alt=\"Discord server badge\" /></a></span>\n<span class=\"badge-twitch\"><a href=\"https://www.twitch.tv/balupton\" title=\"Join this project's community on Twitch\"><img src=\"https://img.shields.io/twitch/status/balupton?logo=twitch\" alt=\"Twitch community badge\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `node:*` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported by:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file, then it's direct unpkg URL will be used.\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they are an installed dependency, their esm.sh URL will be used.\n\n    3. If they are an uninstalled dependency, the `npm:` prefix will be used.\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-es2022/index.js</code></li>\n<li><code>make-deno-edition/edition-es2022/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-es2022-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 18 || 20 || 21 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition/edition-types/index.d.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled Types with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/Artistic-2.0.html\">Artistic License 2.0</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"bfd1ce07694efb78f43b52b3c043f0feee3d4706","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-1xK4x/qT5QJn9Bl33W8wMRt9rpWA2EmqiGO8kV/ILOODCbwAyYLpgcU863FPB4xuY7gebARTBHb/BEVLzvAbow==","shasum":"6b951c3d539b2250bbf5b06af2f9e1009d21195a","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-2.0.1-next.1701773766.bfd1ce07694efb78f43b52b3c043f0feee3d4706.tgz","fileCount":24,"unpackedSize":104312,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcHpkm0VZwCcPGttD7JT5gjk8igXCNEwm5eTw/5s7fRgIgUyYMUUECvh6cj5mBvprMUgUFGPTcpahyrX4EydtqNFw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_2.0.1-next.1701773766.bfd1ce07694efb78f43b52b3c043f0feee3d4706_1701773768191_0.5282817670947828"},"_hasShrinkwrap":false},"2.0.1":{"name":"make-deno-edition","version":"2.0.1","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"Artistic-2.0","keywords":["denoify","edition","editions","es2022","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=18"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"index.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"index.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false}],"bin":{"make-deno-edition":"bin.cjs"},"types":"edition-types/index.d.ts","type":"module","main":"edition-es2022/index.js","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","require":"./edition-es2022/index.js"}},"dependencies":{"@bevry/ansi":"^6.4.0","@bevry/fs-list":"^2.2.0","@bevry/fs-read":"^1.2.0","@bevry/fs-readable":"^2.1.0","@bevry/fs-remove":"^1.2.0","@bevry/fs-write":"^1.2.0","@bevry/json":"^2.0.0","await-spawn":"^4.0.2","errlop":"^7.3.0","get-cli-arg":"^8.2.0"},"devDependencies":{"@bevry/update-contributors":"^1.23.0","@types/node":"^20.10.0","@typescript-eslint/eslint-plugin":"^6.12.0","@typescript-eslint/parser":"^6.12.0","assert-helpers":"^11.5.0","eslint":"^8.54.0","eslint-config-bevry":"^5.1.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","kava":"^7.3.0","prettier":"^3.1.0","projectz":"^3.3.0","surge":"^0.23.1","typedoc":"^0.25.3","typescript":"5.2.2","valid-directory":"^4.5.0"},"scripts":{"our:bin":"node ./bin.cjs","our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-types","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-es2022/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all","endOfLine":"lf"},"boundation":{"maintainedNodeVersions":true,"expandNodeVersions":false},"_id":"make-deno-edition@2.0.1","gitHead":"bfd1ce07694efb78f43b52b3c043f0feee3d4706","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-JflMwb3prODWvenwY5kInUgbIyF5oyFnV3Cf6DyivyRFzajx3LU5Abmuz5PxzcuHkLjUcPJmyh8o/rK0RFuhkw==","shasum":"d435222e2649713e3d931b2d32c1a7548a358724","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-2.0.1.tgz","fileCount":24,"unpackedSize":104254,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE38iZPbe1naGpXTFQeBgYLo4CMFrZgxqHqPcy2zBfg1AiBEkORcxtIkksY6562t/eBRUdEA/tQcdbmYKtqfLLowLg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_2.0.1_1701774056255_0.5091607179678703"},"_hasShrinkwrap":false},"2.1.0-next.1701820492.1cb148750ff5151a6d46b75f48225428bddc9920":{"name":"make-deno-edition","version":"2.1.0-next.1701820492.1cb148750ff5151a6d46b75f48225428bddc9920","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"Artistic-2.0","keywords":["denoify","edition","editions","es2022","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=18"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for Node.js 21 with Require for modules","directory":"edition-es2022","entry":"index.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 21 with Import for modules","directory":"edition-es2022-esm","entry":"index.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false}],"bin":{"make-deno-edition":"bin.cjs"},"types":"edition-types/index.d.ts","type":"module","main":"edition-es2022/index.js","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","require":"./edition-es2022/index.js"}},"dependencies":{"@bevry/ansi":"^6.7.0","@bevry/fs-list":"^2.4.0","@bevry/fs-read":"^1.4.0","@bevry/fs-readable":"^2.3.0","@bevry/fs-remove":"^1.4.0","@bevry/fs-write":"^1.4.0","@bevry/json":"^2.2.0","await-spawn":"^4.0.2","errlop":"^8.2.0","get-cli-arg":"^8.4.0"},"devDependencies":{"@bevry/update-contributors":"^1.23.0","@types/node":"^20.10.3","@typescript-eslint/eslint-plugin":"^6.13.2","@typescript-eslint/parser":"^6.13.2","assert-helpers":"^11.9.0","eslint":"^8.55.0","eslint-config-bevry":"^5.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.0.1","kava":"^7.5.0","prettier":"^3.1.0","projectz":"^3.4.0","typedoc":"^0.25.4","typescript":"5.3.2","valid-directory":"^4.6.0"},"scripts":{"our:bin":"node ./bin.cjs","our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-types","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-es2022/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all","endOfLine":"lf"},"boundation":{"maintainedNodeVersions":true,"expandNodeVersions":false},"_id":"make-deno-edition@2.1.0-next.1701820492.1cb148750ff5151a6d46b75f48225428bddc9920","readme":"<!-- TITLE/ -->\n\n<h1>make-deno-edition</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/make-deno-edition/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/make-deno-edition/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-discord\"><a href=\"https://discord.gg/nQuXddV7VP\" title=\"Join this project's community on Discord\"><img src=\"https://img.shields.io/discord/1147436445783560193?logo=discord&amp;label=discord\" alt=\"Discord server badge\" /></a></span>\n<span class=\"badge-twitch\"><a href=\"https://www.twitch.tv/balupton\" title=\"Join this project's community on Twitch\"><img src=\"https://img.shields.io/twitch/status/balupton?logo=twitch\" alt=\"Twitch community badge\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `node:*` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported by:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file, then it's direct unpkg URL will be used.\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they are an installed dependency, their esm.sh URL will be used.\n\n    3. If they are an uninstalled dependency, the `npm:` prefix will be used.\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<h4>Install Globally</h4>\n<ul>\n<li>Install: <code>npm install --global make-deno-edition</code></li>\n<li>Executable: <code>make-deno-edition</code></li>\n</ul>\n<h4>Install Locally</h4>\n<ul>\n<li>Install: <code>npm install --save make-deno-edition</code></li>\n<li>Executable: <code>npx make-deno-edition</code></li>\n<li>Import: <code>import * as pkg from ('make-deno-edition')</code></li>\n<li>Require: <code>const pkg = require('make-deno-edition')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>make-deno-edition/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition</code> aliases <code>make-deno-edition/edition-es2022/index.js</code></li>\n<li><code>make-deno-edition/edition-es2022/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>make-deno-edition/edition-es2022-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 21 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>make-deno-edition/edition-types/index.d.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled Types with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/make-deno-edition/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/make-deno-edition/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2020+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/Artistic-2.0.html\">Artistic License 2.0</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"1cb148750ff5151a6d46b75f48225428bddc9920","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-41Q2QdcOsQHpdelbDgGeUhJK4sdXbV8KHMCo6lVygd5s+Fkq4H67FO1hOFeEYNfjzCN8LcYWupJNPTY0HrEI2Q==","shasum":"90a5badf9b60c0f7e316c3a861ce957522fb53b0","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-2.1.0-next.1701820492.1cb148750ff5151a6d46b75f48225428bddc9920.tgz","fileCount":24,"unpackedSize":104436,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcyZyQHYtl+rlBBVEVwPs+ycijALhqCznBdNsXHJkYGwIhAMXJ+FDXxQFUF1nFo6zxvuDlYl8Dzn63qP50fAAcsByX"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_2.1.0-next.1701820492.1cb148750ff5151a6d46b75f48225428bddc9920_1701820493592_0.1214648855594358"},"_hasShrinkwrap":false},"2.1.0":{"name":"make-deno-edition","version":"2.1.0","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","license":"Artistic-2.0","keywords":["denoify","edition","editions","es2022","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"funding":"https://bevry.me/fund","author":{"name":"2020+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"engines":{"node":">=18"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for Node.js 21 with Require for modules","directory":"edition-es2022","entry":"index.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 21 with Import for modules","directory":"edition-es2022-esm","entry":"index.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false}],"bin":{"make-deno-edition":"bin.cjs"},"types":"edition-types/index.d.ts","type":"module","main":"edition-es2022/index.js","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","require":"./edition-es2022/index.js"}},"dependencies":{"@bevry/ansi":"^6.7.0","@bevry/fs-list":"^2.4.0","@bevry/fs-read":"^1.4.0","@bevry/fs-readable":"^2.3.0","@bevry/fs-remove":"^1.4.0","@bevry/fs-write":"^1.4.0","@bevry/json":"^2.2.0","await-spawn":"^4.0.2","errlop":"^8.2.0","get-cli-arg":"^8.4.0"},"devDependencies":{"@bevry/update-contributors":"^1.23.0","@types/node":"^20.10.3","@typescript-eslint/eslint-plugin":"^6.13.2","@typescript-eslint/parser":"^6.13.2","assert-helpers":"^11.9.0","eslint":"^8.55.0","eslint-config-bevry":"^5.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.0.1","kava":"^7.5.0","prettier":"^3.1.0","projectz":"^3.4.0","typedoc":"^0.25.4","typescript":"5.3.2","valid-directory":"^4.6.0"},"scripts":{"our:bin":"node ./bin.cjs","our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-types","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-es2022/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all","endOfLine":"lf"},"boundation":{"maintainedNodeVersions":true,"expandNodeVersions":false},"_id":"make-deno-edition@2.1.0","gitHead":"1cb148750ff5151a6d46b75f48225428bddc9920","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-MNHn3nWVfyylYdabG0qPptAwF09Ln7zdEDMgmjyeGtv9ri1ToBkhvhhFiZkltsztNUwkoAVFmKR7aDKw6v9Gwg==","shasum":"093096cba24f7e96f4d1d559599ddcf6bf7101d0","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-2.1.0.tgz","fileCount":24,"unpackedSize":104378,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvmcKcQd/6RV39cimxnTs9mWVlHlR6jYUAX/JglPiK8AIgXUINE0rFjKnDrcNtZc4FmAZwJZIzb/epb7yX5K1/NLQ="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_2.1.0_1701820515880_0.417285022646638"},"_hasShrinkwrap":false},"2.2.0-next.1703696930.8bf83148bea3b04dde36798626c1774962bc0d40":{"name":"make-deno-edition","version":"2.2.0-next.1703696930.8bf83148bea3b04dde36798626c1774962bc0d40","license":"Artistic-2.0","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","funding":"https://bevry.me/fund","repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"keywords":["denoify","edition","editions","es2022","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"author":{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"authors":["Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."],"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"}],"sponsors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.","Codecov <hello-codecov@sentry.io> (https://codecov.io/) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast"],"donors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)","Chad (https://opencollective.com/chad8)","Codecov <hello-codecov@sentry.io> (https://codecov.io/) (https://github.com/codecov)","entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)","Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)","Michael Duane Mooring (https://bevry.me) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)","Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry)","ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)","Skunk Team (https://skunk.team) (https://github.com/skunkteam)","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)"],"engines":{"node":">=18"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"index.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"index.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false}],"bin":{"make-deno-edition":"bin.cjs"},"types":"edition-types/index.d.ts","type":"module","main":"edition-es2022/index.js","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","require":"./edition-es2022/index.js"}},"dependencies":{"@bevry/ansi":"^6.8.0","@bevry/fs-list":"^2.5.0","@bevry/fs-read":"^1.5.0","@bevry/fs-readable":"^2.4.0","@bevry/fs-remove":"^1.5.0","@bevry/fs-write":"^1.5.0","@bevry/json":"^2.3.0","await-spawn":"^4.0.2","errlop":"^8.3.0","get-cli-arg":"^8.5.0"},"devDependencies":{"@types/node":"^20.10.5","@typescript-eslint/eslint-plugin":"^6.16.0","@typescript-eslint/parser":"^6.16.0","assert-helpers":"^11.11.0","eslint":"^8.56.0","eslint-config-bevry":"^5.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.2","kava":"^7.6.0","prettier":"^3.1.1","projectz":"^4.0.0","typedoc":"^0.25.4","typescript":"5.3.3","valid-directory":"^4.7.0"},"scripts":{"our:bin":"node ./bin.cjs","our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-types","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:eslint && npm run our:verify:prettier","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-es2022/test.js"},"boundation":{"maintainedNodeVersions":true,"expandNodeVersions":false},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all","endOfLine":"lf"},"_id":"make-deno-edition@2.2.0-next.1703696930.8bf83148bea3b04dde36798626c1774962bc0d40","readme":"<!-- TITLE/ -->\n\n# make-deno-edition\n\n<!-- /TITLE -->\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/make-deno-edition/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/make-deno-edition/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-discord\"><a href=\"https://discord.gg/nQuXddV7VP\" title=\"Join this project's community on Discord\"><img src=\"https://img.shields.io/discord/1147436445783560193?logo=discord&amp;label=discord\" alt=\"Discord server badge\" /></a></span>\n<span class=\"badge-twitch\"><a href=\"https://www.twitch.tv/balupton\" title=\"Join this project's community on Twitch\"><img src=\"https://img.shields.io/twitch/status/balupton?logo=twitch\" alt=\"Twitch community badge\" /></a></span>\n\n<!-- /BADGES -->\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `node:*` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported by:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file, then it's direct unpkg URL will be used.\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they are an installed dependency, their esm.sh URL will be used.\n\n    3. If they are an uninstalled dependency, the `npm:` prefix will be used.\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n## Install\n\n### [npm](https://npmjs.com \"npm is a package manager for javascript\")\n\n#### Install Globally\n\n-   Install: `npm install --global make-deno-edition`\n-   Executable: `make-deno-edition`\n\n#### Install Locally\n\n-   Install: `npm install --save make-deno-edition`\n-   Executable: `npx make-deno-edition`\n-   Import: `import * as pkg from ('make-deno-edition')`\n-   Require: `const pkg = require('make-deno-edition')`\n\n### [Editions](https://editions.bevry.me \"Editions are the best way to produce and consume packages you care about.\")\n\nThis package is published with the following editions:\n-   `make-deno-edition/source/index.ts` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") source code with [Import](https://babeljs.io/docs/learn-es2015/#modules \"ECMAScript Modules\") for modules\n-   `make-deno-edition` aliases `make-deno-edition/edition-es2022/index.js`\n-   `make-deno-edition/edition-es2022/index.js` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled against [ES2022](https://en.wikipedia.org/wiki/ES2022 \"ECMAScript 2022\") for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 18 || 20 || 21 with [Require](https://nodejs.org/dist/latest-v5.x/docs/api/modules.html \"Node/CJS Modules\") for modules\n-   `make-deno-edition/edition-es2022-esm/index.js` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled against [ES2022](https://en.wikipedia.org/wiki/ES2022 \"ECMAScript 2022\") for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 18 || 20 || 21 with [Import](https://babeljs.io/docs/learn-es2015/#modules \"ECMAScript Modules\") for modules\n-   `make-deno-edition/edition-types/index.d.ts` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled Types with [Import](https://babeljs.io/docs/learn-es2015/#modules \"ECMAScript Modules\") for modules\n\n<!-- /INSTALL -->\n\n<!-- HISTORY/ -->\n\n## History\n\n[Discover the release history by heading on over to the `HISTORY.md` file.](https://github.com/bevry/make-deno-edition/blob/HEAD/HISTORY.md#files)\n\n<!-- /HISTORY -->\n\n<!-- BACKERS/ -->\n\n## Backers\n\n### Code\n\n[Discover how to contribute via the `CONTRIBUTING.md` file.](https://github.com/bevry/make-deno-edition/blob/HEAD/CONTRIBUTING.md#files)\n\n#### Authors\n\n-   [Benjamin Lupton](https://balupton.com) — Accelerating collaborative wisdom.\n\n#### Maintainers\n\n-   [Benjamin Lupton](https://github.com/balupton) — Accelerating collaborative wisdom.\n\n#### Contributors\n\n-   [Benjamin Lupton](https://github.com/balupton) — [view contributions](https://github.com/bevry/make-deno-edition/commits?author=balupton \"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\")\n\n### Finances\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n\n#### Sponsors\n\n-   [Andrew Nesbitt](https://nesbitt.io) — Software engineer and researcher\n-   [Balsa](https://balsa.com) — We're Balsa, and we're building tools for builders.\n-   [Codecov](https://codecov.io/) — Empower developers with tools to improve code quality and testing.\n-   [Poonacha Medappa](https://poonachamedappa.com)\n-   [Rob Morris](https://github.com/Rob-Morris)\n-   [Sentry](https://sentry.io) — Real-time crash reporting for your web apps, mobile apps, and games.\n-   [Syntax](https://syntax.fm) — Syntax Podcast\n\n#### Donors\n\n-   [Andrew Nesbitt](https://nesbitt.io)\n-   [Balsa](https://balsa.com)\n-   [Chad](https://opencollective.com/chad8)\n-   [Codecov](https://codecov.io/)\n-   [entroniq](https://gitlab.com/entroniq)\n-   [Jean-Luc Geering](https://github.com/jlgeering)\n-   [Michael Duane Mooring](https://bevry.me)\n-   [Mohammed Shah](https://github.com/smashah)\n-   [Poonacha Medappa](https://poonachamedappa.com)\n-   [Rob Morris](https://github.com/Rob-Morris)\n-   [Sentry](https://sentry.io)\n-   [ServieJS](https://github.com/serviejs)\n-   [Skunk Team](https://skunk.team)\n-   [Syntax](https://syntax.fm)\n\n<!-- /BACKERS -->\n\n<!-- LICENSE/ -->\n\n## License\n\nUnless stated otherwise all works are:\n\n-   Copyright &copy; [Benjamin Lupton](https://balupton.com)\n\nand licensed under:\n\n-   [Artistic License 2.0](http://spdx.org/licenses/Artistic-2.0.html)\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"8bf83148bea3b04dde36798626c1774962bc0d40","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-XmR8DymYLH6kzQtPvWo6KAfdoGy4MuinY9vj2kI8V72PwuVb0vf/NWzntAPPCKlt9ry+wcEDkb2faPnDRSe4zA==","shasum":"5c0cddb4a67ce7d7071797bb545541bdf8160fd6","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-2.2.0-next.1703696930.8bf83148bea3b04dde36798626c1774962bc0d40.tgz","fileCount":24,"unpackedSize":106633,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKHrLoEvW9bo+EepFANvdL4NBgWD8Qe1u/o5gHLVjHFQIgaOk4XKW4NfH9o1qjiI/Zvp+n09XFfcyQzh6V+kQngWE="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_2.2.0-next.1703696930.8bf83148bea3b04dde36798626c1774962bc0d40_1703696932204_0.9637169255058178"},"_hasShrinkwrap":false},"2.2.0":{"name":"make-deno-edition","version":"2.2.0","license":"Artistic-2.0","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","funding":"https://bevry.me/fund","repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"keywords":["denoify","edition","editions","es2022","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"author":{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"authors":["Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."],"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"}],"sponsors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.","Codecov <hello-codecov@sentry.io> (https://codecov.io/) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast"],"donors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)","Chad (https://opencollective.com/chad8)","Codecov <hello-codecov@sentry.io> (https://codecov.io/) (https://github.com/codecov)","entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)","Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)","Michael Duane Mooring (https://bevry.me) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)","Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry)","ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)","Skunk Team (https://skunk.team) (https://github.com/skunkteam)","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)"],"engines":{"node":">=18"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"index.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"index.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false}],"bin":{"make-deno-edition":"bin.cjs"},"types":"edition-types/index.d.ts","type":"module","main":"edition-es2022/index.js","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","require":"./edition-es2022/index.js"}},"dependencies":{"@bevry/ansi":"^6.8.0","@bevry/fs-list":"^2.5.0","@bevry/fs-read":"^1.5.0","@bevry/fs-readable":"^2.4.0","@bevry/fs-remove":"^1.5.0","@bevry/fs-write":"^1.5.0","@bevry/json":"^2.3.0","await-spawn":"^4.0.2","errlop":"^8.3.0","get-cli-arg":"^8.5.0"},"devDependencies":{"@types/node":"^20.10.5","@typescript-eslint/eslint-plugin":"^6.16.0","@typescript-eslint/parser":"^6.16.0","assert-helpers":"^11.11.0","eslint":"^8.56.0","eslint-config-bevry":"^5.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.2","kava":"^7.6.0","prettier":"^3.1.1","projectz":"^4.0.0","typedoc":"^0.25.4","typescript":"5.3.3","valid-directory":"^4.7.0"},"scripts":{"our:bin":"node ./bin.cjs","our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-types","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:eslint && npm run our:verify:prettier","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-es2022/test.js"},"boundation":{"maintainedNodeVersions":true,"expandNodeVersions":false},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all","endOfLine":"lf"},"_id":"make-deno-edition@2.2.0","gitHead":"8bf83148bea3b04dde36798626c1774962bc0d40","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-rGK6tXWOs62Yjmsa3RWISqrIhsWJ7/JihBqidi2ytsrQbNi5DdSmfx29GaNlrYTBJzs0CXc4CmfzgSwQhbP2YQ==","shasum":"f3cd38b8e771e59076b81047aebc328d52fe3c40","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-2.2.0.tgz","fileCount":24,"unpackedSize":106576,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEtPccdHK+tiFrBMoW6yXmf4e8GxHxtjBoWV+4rfeBNSAiEAx0eKh33O9LVEd4NU/dkPU6aoYiJBXTNwkfvbpkBeqRA="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_2.2.0_1703696934784_0.9831590524768321"},"_hasShrinkwrap":false},"2.3.0":{"name":"make-deno-edition","version":"2.3.0","license":"Artistic-2.0","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","funding":"https://bevry.me/fund","repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"keywords":["denoify","edition","editions","es2022","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"author":{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"authors":["Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."],"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"}],"sponsors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.","Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast"],"donors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)","Armen Mkrtchian (https://mogoni.dev) (https://github.com/Armenm)","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)","Chad (https://opencollective.com/chad8)","Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov)","dr.dimitru (https://veliovgroup.com) (https://github.com/dr-dimitru)","Elliott Ditman (https://elliottditman.com) (https://github.com/elliottditman)","entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)","GitHub (https://github.com/about) (https://github.com/github)","Hunter Beast (https://cryptoquick.com) (https://github.com/cryptoquick)","Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)","Michael Duane Mooring (https://mdm.cc) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)","Michael Harry Scepaniak <mhs1.sys@gmail.com> (https://michaelscepaniak.com) (https://github.com/hispanic)","Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)","Mr. Henry <hello@mrhenry.be> (https://mrhenry.be) (https://github.com/mrhenry)","Nermal <nermalcat69@skiff.com> (https://arjunaditya.vercel.app) (https://github.com/nermalcat69)","Pleo (https://pleo.io) (https://github.com/pleo-io)","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Robert de Forest <guitar.robot@gmail.com> (https://github.com/rdeforest)","Sentry (https://sentry.io) (https://github.com/getsentry)","ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)","Skunk Team (https://skunk.team) (https://github.com/skunkteam)","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)","WriterJohnBuck (https://github.com/WriterJohnBuck)"],"engines":{"node":">=18"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"index.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"index.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false}],"bin":{"make-deno-edition":"bin.cjs"},"types":"edition-types/index.d.ts","type":"module","main":"edition-es2022/index.js","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","require":"./edition-es2022/index.js"}},"dependencies":{"@bevry/ansi":"^6.9.0","@bevry/fs-list":"^2.6.0","@bevry/fs-read":"^1.6.0","@bevry/fs-readable":"^2.5.0","@bevry/fs-remove":"^1.6.0","@bevry/fs-write":"^1.6.0","@bevry/json":"^2.4.0","await-spawn":"^4.0.2","errlop":"^8.4.0","get-cli-arg":"^8.6.0"},"devDependencies":{"@types/node":"^20.10.5","@typescript-eslint/eslint-plugin":"^6.16.0","@typescript-eslint/parser":"^6.16.0","assert-helpers":"^11.12.0","eslint":"^8.56.0","eslint-config-bevry":"^5.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.2","kava":"^7.8.0","prettier":"^3.1.1","projectz":"^4.1.1","typedoc":"^0.25.4","typescript":"5.3.3","valid-directory":"^4.8.0"},"scripts":{"our:bin":"node ./bin.cjs","our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-types","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz --offline","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:eslint && npm run our:verify:prettier","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-es2022/test.js"},"boundation":{"maintainedNodeVersions":true,"expandNodeVersions":false},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all","endOfLine":"lf"},"_id":"make-deno-edition@2.3.0","gitHead":"9ecfb4926ad07e9f2a701cb8457ec3b2809d3e7d","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-cMY/Rgn1YUGJ9A+ldEB+qOsHQQP8CKyWOKqtVUUE+TDg04lbvugZcmbEZhLeptz5LdRS6fmGUXg7lGsp0IlEGg==","shasum":"7dd7dbc5933e3df3035a10d9af10daa926109fab","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-2.3.0.tgz","fileCount":24,"unpackedSize":107949,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGnF0TRZTwB6I7JK/g6qHYambq3JuZz+g9vpCSrk/FR3AiAXZYlzseD2DclrKjd+pZCXmGSm+bNNFc78Gruw6OzpiQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_2.3.0_1703871233512_0.1269868298023331"},"_hasShrinkwrap":false},"2.3.0-next.1703871236.9ecfb4926ad07e9f2a701cb8457ec3b2809d3e7d":{"name":"make-deno-edition","version":"2.3.0-next.1703871236.9ecfb4926ad07e9f2a701cb8457ec3b2809d3e7d","license":"Artistic-2.0","description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","funding":"https://bevry.me/fund","repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"keywords":["denoify","edition","editions","es2022","node","npm","transpile","typed","types","typescript","unpkg"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"make-deno-edition","githubSlug":"bevry/make-deno-edition","npmPackageName":"make-deno-edition"}},"author":{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"authors":["Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."],"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"}],"sponsors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.","Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast"],"donors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)","Armen Mkrtchian (https://mogoni.dev) (https://github.com/Armenm)","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)","Chad (https://opencollective.com/chad8)","Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov)","dr.dimitru (https://veliovgroup.com) (https://github.com/dr-dimitru)","Elliott Ditman (https://elliottditman.com) (https://github.com/elliottditman)","entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)","GitHub (https://github.com/about) (https://github.com/github)","Hunter Beast (https://cryptoquick.com) (https://github.com/cryptoquick)","Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)","Michael Duane Mooring (https://mdm.cc) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)","Michael Harry Scepaniak <mhs1.sys@gmail.com> (https://michaelscepaniak.com) (https://github.com/hispanic)","Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)","Mr. Henry <hello@mrhenry.be> (https://mrhenry.be) (https://github.com/mrhenry)","Nermal <nermalcat69@skiff.com> (https://arjunaditya.vercel.app) (https://github.com/nermalcat69)","Pleo (https://pleo.io) (https://github.com/pleo-io)","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Robert de Forest <guitar.robot@gmail.com> (https://github.com/rdeforest)","Sentry (https://sentry.io) (https://github.com/getsentry)","ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)","Skunk Team (https://skunk.team) (https://github.com/skunkteam)","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)","WriterJohnBuck (https://github.com/WriterJohnBuck)"],"engines":{"node":">=18"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"index.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"index.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false}],"bin":{"make-deno-edition":"bin.cjs"},"types":"edition-types/index.d.ts","type":"module","main":"edition-es2022/index.js","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","require":"./edition-es2022/index.js"}},"dependencies":{"@bevry/ansi":"^6.9.0","@bevry/fs-list":"^2.6.0","@bevry/fs-read":"^1.6.0","@bevry/fs-readable":"^2.5.0","@bevry/fs-remove":"^1.6.0","@bevry/fs-write":"^1.6.0","@bevry/json":"^2.4.0","await-spawn":"^4.0.2","errlop":"^8.4.0","get-cli-arg":"^8.6.0"},"devDependencies":{"@types/node":"^20.10.5","@typescript-eslint/eslint-plugin":"^6.16.0","@typescript-eslint/parser":"^6.16.0","assert-helpers":"^11.12.0","eslint":"^8.56.0","eslint-config-bevry":"^5.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.2","kava":"^7.8.0","prettier":"^3.1.1","projectz":"^4.1.1","typedoc":"^0.25.4","typescript":"5.3.3","valid-directory":"^4.8.0"},"scripts":{"our:bin":"node ./bin.cjs","our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-types","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz --offline","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:eslint && npm run our:verify:prettier","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./edition-es2022/test.js"},"boundation":{"maintainedNodeVersions":true,"expandNodeVersions":false},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all","endOfLine":"lf"},"_id":"make-deno-edition@2.3.0-next.1703871236.9ecfb4926ad07e9f2a701cb8457ec3b2809d3e7d","readme":"<!-- TITLE/ -->\n\n# make-deno-edition\n\n<!-- /TITLE -->\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/make-deno-edition/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/make-deno-edition/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/make-deno-edition.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/make-deno-edition\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/make-deno-edition.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-discord\"><a href=\"https://discord.gg/nQuXddV7VP\" title=\"Join this project's community on Discord\"><img src=\"https://img.shields.io/discord/1147436445783560193?logo=discord&amp;label=discord\" alt=\"Discord server badge\" /></a></span>\n<span class=\"badge-twitch\"><a href=\"https://www.twitch.tv/balupton\" title=\"Join this project's community on Twitch\"><img src=\"https://img.shields.io/twitch/status/balupton?logo=twitch\" alt=\"Twitch community badge\" /></a></span>\n\n<!-- /BADGES -->\n\n<!-- DESCRIPTION/ -->\n\nAutomatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.\n\n<!-- /DESCRIPTION -->\n\n\n## Overview\n\n### Examples\n\n[Here is the growing list of all the packages that make-deno-edition has made compatible with Deno.](https://www.npmjs.com/search?q=keywords:deno-entry)\n\n### The Need\n\n**Node.js and TypeScript support unresolved paths**, e.g. `import thing from './file'` and `import thing from './'`. **Deno however, only supports resolved paths**, e.g. `import thing from './file.ts'` and `import thing from 'https://unpkg.com/badges@^4.13.0/edition-deno/index.ts'`. This means that anything imported into Deno must be directly resolvable and must use ECMAScript Modules (ESM).\n\n**Node.js and TypeScript support `package.json` files** to specify dependency versions, which enables code like `import dep from 'dep'`. **Deno however, has no conception of `package.json`**, so all dependencies must be imported via a directly resolvable CDN URL, e.g. `import dep from 'https://unpkg.com/dep@^1.0.0/file.ts'`.\n\n**Deno and Node.js different on their APIs**. Node.js builtins can be converted to Deno's `std/node` builtins, however several things such as `__filename`, `__dirname` require a polyfill, and other things have no direct compatibility so require different entries.\n\nIn the end, **you must hope your dependencies are also compatible with Deno.**\n\n### The Solution\n\nmake-deno-edition is a CLI tool that takes your source edition (whichever directory contains your package's typescript source files) and creates a compatible deno edition in a `edition-deno` directory.\n\nIt provides this compatibility by providing the following transformations:\n\n1. bultin imports (e.g. `fs`) are mapped to their corresponding deno `node:*` polyfill\n\n1. certain globals (e.g. `__filename` and `__dirname`) are mapped to their corresponding deno userland polyfilll\n\n1. internal imports (any relative path to another file inside your source edition) are mapped to their typescript file, e.g. `import thing from './file'` and `import thing from './file.js'` becomes `import thing from './file.ts`\n\n1. remote imports (e.g. any URL) are assumed to be compatible, as node.js doesn't support them, so it is assumed they are already deno compatible\n\n1. dependency imports (e.g. any package you install into node_modules) are supported by:\n\n    1. If they have a `deno` field in their `package.json`, which will denote where to look for the deno compatible entry file, then it's direct unpkg URL will be used.\n\n        The more dependencies that `make-deno-edition` is run on, then the more dependencies will automatically have a `deno` entry field, and thus the more dependencies will be automatically compatible with Deno, enabling more dependents to be automatically compatible with Deno.\n\n    2. If they are an installed dependency, their esm.sh URL will be used.\n\n    3. If they are an uninstalled dependency, the `npm:` prefix will be used.\n\nmake-deno-edition will also intelligently ignore compatibility for files that are not essential, such as your test and utility files, but fail if compatibility for an essential file, such as an entry file and its required modules fail\n\nFinally, make-deno-edition will also update your `package.json` file with the details for the deno entry file, as well as the deno edition metadata, such that other packages and toolchains can make use of your deno compatibility.\n\n## Usage\n\n[Complete API Documentation.](http://master.make-deno-edition.bevry.surge.sh/docs/)\n\n### Preparation\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nIf you haven't already done so, add the following [editions](https://editions.bevry.me) metadata to your `package.json` file:\n\n```json\n  \"editions\": [\n    {\n      \"description\": \"TypeScript source code with Import for modules\",\n      \"directory\": \"source\",\n      \"entry\": \"index.ts\",\n      \"tags\": [\n        \"typescript\",\n        \"import\"\n      ],\n      \"engines\": false\n    }\n  ]\n```\n\nMake sure that the `directory` is where the source files are located, in the above example, they are located in a `source` directory, as it is with this repository.\n\nMake sure that the `entry` is where the entry file is located within the edition directory, in the above example, the entry is `index.ts`, as it is with this repository.\n\n### Executable\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate deno compatibility for your npm package, then you can skip this step.\n\nInstall `make-deno-edition` to your development dependencies using:\n\n```bash\nnpm install --save-dev make-deno-edition\n```\n\nThen add a `compile` npm script to your `package.json` containing:\n\n```\nmake-deno-edition --attempt\n```\n\nAlternatively, you can run it directly on your project via:\n\n```\nnpx make-deno-edition --attempt\n```\n\nThe `--attempt` flag will not emit a failure exit code if the deno edition generation was not successful. If you require a deno edition to be published, remove the `--attempt` flag.\n\n### Publishing\n\n> If you are using [`boundation`](https://github.com/bevry/boundation) to automatically generate compatible editions (web browsers, deno, multiple node.js versions) for your npm package, then you can skip this step.\n\n> If you are using [`projectz`](https://github.com/bevry/projectz) to automatically generate your `README.md` content, then you can skip this step.\n\nIf a deno edition was successfully created, it will be located in the `edition-deno` directory with the metadata added to the `editions` array in your `package.json` and a `deno` entry field also added to your `package.json`.\n\nConsumers of your package who use `make-deno-edition` on their own package, will now be able to use your package's deno edition to further their own deno compatibility.\n\nYou can also instruct consumers of your package to directly use your deno edition, by informing them of its presence in your `README.md` file. You can use [`projectz`](https://github.com/bevry/projectz) to automatically insert this information for them, or you can use the following template:\n\n    <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n    ``` typescript\n    import pkg from 'https://unpkg.com/YOURPACKAGENAME@^VERSION/edition-deno/ENTRY.ts'\n    ```\n\n<!-- INSTALL/ -->\n\n## Install\n\n### [npm](https://npmjs.com \"npm is a package manager for javascript\")\n\n#### Install Globally\n\n-   Install: `npm install --global make-deno-edition`\n-   Executable: `make-deno-edition`\n\n#### Install Locally\n\n-   Install: `npm install --save make-deno-edition`\n-   Executable: `npx make-deno-edition`\n-   Import: `import * as pkg from ('make-deno-edition')`\n-   Require: `const pkg = require('make-deno-edition')`\n\n### [Editions](https://editions.bevry.me \"Editions are the best way to produce and consume packages you care about.\")\n\nThis package is published with the following editions:\n-   `make-deno-edition/source/index.ts` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") source code with [Import](https://babeljs.io/docs/learn-es2015/#modules \"ECMAScript Modules\") for modules\n-   `make-deno-edition` aliases `make-deno-edition/edition-es2022/index.js`\n-   `make-deno-edition/edition-es2022/index.js` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled against [ES2022](https://en.wikipedia.org/wiki/ES2022 \"ECMAScript 2022\") for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 18 || 20 || 21 with [Require](https://nodejs.org/dist/latest-v5.x/docs/api/modules.html \"Node/CJS Modules\") for modules\n-   `make-deno-edition/edition-es2022-esm/index.js` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled against [ES2022](https://en.wikipedia.org/wiki/ES2022 \"ECMAScript 2022\") for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 18 || 20 || 21 with [Import](https://babeljs.io/docs/learn-es2015/#modules \"ECMAScript Modules\") for modules\n-   `make-deno-edition/edition-types/index.d.ts` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled Types with [Import](https://babeljs.io/docs/learn-es2015/#modules \"ECMAScript Modules\") for modules\n\n<!-- /INSTALL -->\n\n<!-- HISTORY/ -->\n\n## History\n\n[Discover the release history by heading on over to the `HISTORY.md` file.](https://github.com/bevry/make-deno-edition/blob/HEAD/HISTORY.md#files)\n\n<!-- /HISTORY -->\n\n<!-- BACKERS/ -->\n\n## Backers\n\n### Code\n\n[Discover how to contribute via the `CONTRIBUTING.md` file.](https://github.com/bevry/make-deno-edition/blob/HEAD/CONTRIBUTING.md#files)\n\n#### Authors\n\n-   [Benjamin Lupton](https://balupton.com) — Accelerating collaborative wisdom.\n\n#### Maintainers\n\n-   [Benjamin Lupton](https://balupton.com) — Accelerating collaborative wisdom.\n\n#### Contributors\n\n-   [Benjamin Lupton](https://github.com/balupton) — [view contributions](https://github.com/bevry/make-deno-edition/commits?author=balupton \"View the GitHub contributions of Benjamin Lupton on repository bevry/make-deno-edition\")\n\n### Finances\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n\n#### Sponsors\n\n-   [Andrew Nesbitt](https://nesbitt.io) — Software engineer and researcher\n-   [Balsa](https://balsa.com) — We're Balsa, and we're building tools for builders.\n-   [Codecov](https://codecov.io) — Empower developers with tools to improve code quality and testing.\n-   [Poonacha Medappa](https://poonachamedappa.com)\n-   [Rob Morris](https://github.com/Rob-Morris)\n-   [Sentry](https://sentry.io) — Real-time crash reporting for your web apps, mobile apps, and games.\n-   [Syntax](https://syntax.fm) — Syntax Podcast\n\n#### Donors\n\n-   [Andrew Nesbitt](https://nesbitt.io)\n-   [Armen Mkrtchian](https://mogoni.dev)\n-   [Balsa](https://balsa.com)\n-   [Chad](https://opencollective.com/chad8)\n-   [Codecov](https://codecov.io)\n-   [dr.dimitru](https://veliovgroup.com)\n-   [Elliott Ditman](https://elliottditman.com)\n-   [entroniq](https://gitlab.com/entroniq)\n-   [GitHub](https://github.com/about)\n-   [Hunter Beast](https://cryptoquick.com)\n-   [Jean-Luc Geering](https://github.com/jlgeering)\n-   [Michael Duane Mooring](https://mdm.cc)\n-   [Michael Harry Scepaniak](https://michaelscepaniak.com)\n-   [Mohammed Shah](https://github.com/smashah)\n-   [Mr. Henry](https://mrhenry.be)\n-   [Nermal](https://arjunaditya.vercel.app)\n-   [Pleo](https://pleo.io)\n-   [Poonacha Medappa](https://poonachamedappa.com)\n-   [Rob Morris](https://github.com/Rob-Morris)\n-   [Robert de Forest](https://github.com/rdeforest)\n-   [Sentry](https://sentry.io)\n-   [ServieJS](https://github.com/serviejs)\n-   [Skunk Team](https://skunk.team)\n-   [Syntax](https://syntax.fm)\n-   [WriterJohnBuck](https://github.com/WriterJohnBuck)\n\n<!-- /BACKERS -->\n\n<!-- LICENSE/ -->\n\n## License\n\nUnless stated otherwise all works are:\n\n-   Copyright &copy; [Benjamin Lupton](https://balupton.com)\n\nand licensed under:\n\n-   [Artistic License 2.0](http://spdx.org/licenses/Artistic-2.0.html)\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"9ecfb4926ad07e9f2a701cb8457ec3b2809d3e7d","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-KqH9cwePJDMjPmsaHAXesTtKwqZi9pdsVgo8DhIkXmZamMTYVLjJD6uNDqDI9rXPn8HRy1PG5x2TWuvbIf182w==","shasum":"6cf40b5b028df0fb2122c8b252c152566c02ad15","tarball":"https://registry.npmjs.org/make-deno-edition/-/make-deno-edition-2.3.0-next.1703871236.9ecfb4926ad07e9f2a701cb8457ec3b2809d3e7d.tgz","fileCount":24,"unpackedSize":108006,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICz4SubzxHhx/rNWhzRBYplUAa180SURIVgcuVaExCn2AiArNMbtFKzaQMRz+9TSGp2j8GfOuqfDk5AJ36cjTIQjNA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-deno-edition_2.3.0-next.1703871236.9ecfb4926ad07e9f2a701cb8457ec3b2809d3e7d_1703871286853_0.8046487737000716"},"_hasShrinkwrap":false}},"time":{"created":"2020-06-10T04:35:16.300Z","0.1.0-next.1591763714.5d9046016e6453793c3b55701cbe7e8e09bc935b":"2020-06-10T04:35:16.460Z","modified":"2023-12-29T17:34:47.184Z","0.1.0-next.1591768661.e07f9a2c4e0a7cfe6fc06b0a4975aeb8ed432d7a":"2020-06-10T05:57:43.063Z","0.1.0-next.1591768699.02af05056c1432abd67db513ec36a57325cd24b0":"2020-06-10T05:58:20.541Z","0.1.0":"2020-06-10T05:59:00.012Z","0.1.1-next.1591768933.14a9478256117f828c40bab1abb8f1d974c65e22":"2020-06-10T06:02:14.659Z","0.1.1":"2020-06-10T06:02:28.482Z","0.1.2-next.1591769738.c3923afe76b72d2deaca01c3ed11942e3be09907":"2020-06-10T06:15:39.286Z","0.1.2":"2020-06-10T06:15:50.427Z","0.1.2-next.1591771040.2e9e2d069cad4f2b4b4474e844284b0a93aa78f0":"2020-06-10T06:37:22.064Z","0.1.2-next.1591772714.3735c8b511eae5482e273e901ed267b45d5910f7":"2020-06-10T07:05:15.588Z","0.1.2-next.1591773631.c78a1fb276f5c0a071c76292f8b105fbe29b756e":"2020-06-10T07:20:33.227Z","0.1.2-next.1591776134.05c122c6aa3fae72f360cc7ed72b504fa3cc7c4c":"2020-06-10T08:02:15.598Z","0.1.2-next.1591776398.bb87d13056e7f7a5ed8250400a48e07e9c726034":"2020-06-10T08:06:40.229Z","0.1.2-next.1591777457.28a5d9be482513aecc6ff5112b81b68a4de387b0":"2020-06-10T08:24:21.020Z","0.1.2-next.1591777792.88b7d06436eef3283e2292b4b8cff34ef38b7096":"2020-06-10T08:29:53.952Z","0.1.2-next.1591780704.782f43b3bfe367099fe6e5aba2f7834ed7093bd7":"2020-06-10T09:18:26.080Z","0.2.0-next.1591781692.613886e803034dc88b844b6275d755581e2dd0f4":"2020-06-10T09:34:54.389Z","0.2.0":"2020-06-10T09:35:00.336Z","0.2.1-next.1591782452.8ea203f189c45c15811e840338cce0b92da541df":"2020-06-10T09:47:34.176Z","0.2.1":"2020-06-10T09:47:45.914Z","0.2.1-next.1591783149.fb9e5a7f3598bb7221b981932cf5046769572646":"2020-06-10T09:59:10.679Z","0.2.2-next.1591784029.bca9a2437b04681001d8eac28f38e9c836c0dfae":"2020-06-10T10:13:50.787Z","0.2.2":"2020-06-10T10:13:57.933Z","0.2.2-next.1591784799.e99ce476dab8e42ec3ccc82a9f3bb6b3777af53c":"2020-06-10T10:26:41.372Z","0.2.2-next.1591785235.ca7faa3afb8ad02065a73d34506575e43b65ef24":"2020-06-10T10:33:56.717Z","0.2.2-next.1591786549.ca5b3eb8afc1f6b9aec0cab886faaba35728792c":"2020-06-10T10:55:51.202Z","0.2.2-next.1591786573.de317065e0f114c79af385efb955f2c68b45af88":"2020-06-10T10:56:15.041Z","0.2.2-next.1591786626.f3b129534d468ee3ec705407c1ed814d784769ac":"2020-06-10T10:57:07.937Z","0.2.2-next.1591786678.9303696dc77ce47fbbcc4340f302ef2434c6fd13":"2020-06-10T10:57:59.815Z","0.2.2-next.1591787154.73f6e782f6e2da542b06fc859945865041254489":"2020-06-10T11:05:56.353Z","0.2.2-next.1591788574.26fd89fa778cf9f61222f7b1f9eb8daa00328956":"2020-06-10T11:29:35.904Z","0.2.2-next.1591797913.843774d7ffce557e942485d68f2cfd53f8a078b8":"2020-06-10T14:05:14.760Z","0.3.0-next.1591798837.36e2648b411bf79f5e312fed5b9c9892c884b7e3":"2020-06-10T14:20:39.391Z","0.3.0":"2020-06-10T14:20:47.680Z","0.4.0-next.1592596058.e581edc8f07a0c65d497bbd0a962f302946cd26c":"2020-06-19T19:47:39.978Z","0.4.0":"2020-06-19T19:47:43.018Z","0.4.1-next.1592596307.1b18f3334de9d7d4526b27ef6ecfc1bfa7c06820":"2020-06-19T19:51:49.175Z","0.4.1":"2020-06-19T19:52:04.323Z","0.4.2-next.1592596401.86aaf7ad277889ea39d2bc2c91547dd069d7736e":"2020-06-19T19:53:23.615Z","0.4.2":"2020-06-19T19:53:38.896Z","0.5.1":"2020-06-19T20:10:50.701Z","0.5.1-next.1592597450.19f0dcf11f4ec98334cc05a629bdc1642f0b285c":"2020-06-19T20:11:11.467Z","0.6.0-next.1592598062.cb17d2b97c2c47a7fb25524e112f6354bcd42d33":"2020-06-19T20:21:04.211Z","0.6.0":"2020-06-19T20:21:08.351Z","0.6.1-next.1592599251.f23b666a8e9cdf07f8e139525931f121d2ebe969":"2020-06-19T20:40:52.757Z","0.6.1":"2020-06-19T20:41:02.774Z","0.7.0-next.1592606758.8b74ba681234d57cba6c77c663f720e41face75f":"2020-06-19T22:45:59.559Z","0.7.0":"2020-06-19T22:46:23.843Z","0.7.0-next.1592611911.e6ddd382e68d0ac3faebf1a19f892b80e5d3008f":"2020-06-20T00:11:53.263Z","0.8.0-next.1592613105.54e21793f099409e69e0923b45a9e7af0d54389e":"2020-06-20T00:31:46.510Z","0.8.0":"2020-06-20T00:31:55.477Z","0.8.1-next.1592615612.63555d353898c7931c148d0d4091fd4ad88872c4":"2020-06-20T01:13:33.794Z","0.8.1":"2020-06-20T01:13:42.847Z","0.8.1-next.1592617734.cd428e2af86e1d5e57bef8bd4a3d15cd3604d478":"2020-06-20T01:48:55.463Z","0.8.1-next.1592626969.9841650c59607880cd9cd2770da594568815d6cb":"2020-06-20T04:22:50.752Z","0.9.0-next.1592628745.b5a825f71cd4f09125bb04f55d0d46d256fc3591":"2020-06-20T04:52:27.209Z","0.9.0":"2020-06-20T04:52:31.208Z","0.9.1-next.1592684928.d7383900c037314557caf0986d011ef6fbbf314a":"2020-06-20T20:28:50.192Z","0.9.1":"2020-06-20T20:29:09.895Z","0.10.0-next.1592761348.537a3e0d45bee69f016a2f7e78efba8216ada164":"2020-06-21T17:42:29.939Z","0.10.0":"2020-06-21T17:42:40.185Z","0.11.0-next.1593019496.73997fbaecb71341b230f2d6dd017cda293b2c4f":"2020-06-24T17:24:57.735Z","0.11.0":"2020-06-24T17:25:10.911Z","0.11.0-next.1593019810.536558f3c711ed453e36e37fd588b86f558cd314":"2020-06-24T17:30:11.446Z","0.11.0-next.1593022025.38132cbf44c4a8671f8ebd084699e6815e76d9c8":"2020-06-24T18:07:06.792Z","0.11.0-next.1593022731.4007477998f5de593e52dd0aa0c7ce1337b0a915":"2020-06-24T18:18:52.857Z","0.11.1-next.1593023852.e09600f2ec4fe05380f0e1090325407cc5224585":"2020-06-24T18:37:34.578Z","0.11.1":"2020-06-24T18:38:16.777Z","0.12.0":"2020-06-24T23:04:33.491Z","0.13.0":"2020-06-24T23:54:10.551Z","0.13.0-next.1593042892.a4ce04b999dae63334bf1eeb59fae70fec51485d":"2020-06-24T23:54:54.214Z","0.13.0-next.1593052023.2d969013d2b924b762f64d624a2962cc9166b9b1":"2020-06-25T02:27:05.285Z","0.14.0":"2020-06-25T03:53:16.807Z","0.14.0-next.1593057187.971555b61dd11eeff2d670b4fb0d8ec5f9a31c65":"2020-06-25T03:54:25.277Z","0.14.0-next.1595337353.40e2f34e9f0ef30c8ce53375e13cfd7467f4bbf1":"2020-07-21T13:15:55.569Z","0.14.0-next.1595381393.14a05906a707c420dbfef5908f76aef702c6569f":"2020-07-22T01:29:54.478Z","0.14.0-next.1595381421.78d81cc97e109d5f44a6db5b924d705381e07b14":"2020-07-22T01:30:23.293Z","0.14.0-next.1595381916.431416ebe6a0caa455f2ac9551b76f8cf5fc4ca7":"2020-07-22T01:38:37.766Z","0.15.0-next.1595383280.f4a7638842dacefbb0f9ddefc5ba4ae056264c18":"2020-07-22T02:01:21.985Z","0.15.0":"2020-07-22T02:01:42.347Z","0.15.0-next.1595543405.07ad14dfcf99a67a09cb7a65ff80f6b698f363fb":"2020-07-23T22:30:06.752Z","0.15.0-next.1595543510.406e9ab96087ea427604faea0e236172e467add1":"2020-07-23T22:31:52.372Z","0.15.0-next.1595543534.2440e609391f4a78f18c661dbb8b2280df38e1c2":"2020-07-23T22:32:16.119Z","0.15.0-next.1595543877.b86fcb9f1082c36aacdc16db23bfdfef5da2d5e7":"2020-07-23T22:37:59.088Z","0.15.0-next.1595543904.19c08022d07342877caa61e28559fead3275ae95":"2020-07-23T22:38:25.664Z","0.15.0-next.1595544405.67f1642dda9043a09fbe6dfa0b17bf846584879f":"2020-07-23T22:46:46.890Z","0.15.0-next.1595544424.60195b2821deb5abbf983022dd2219d09b117569":"2020-07-23T22:47:06.067Z","0.15.0-next.1596504687.441de68344d58735361699d98c31f00fa69728ed":"2020-08-04T01:31:29.824Z","0.15.0-next.1596504986.f7838ee42abe62c3fcb8debfb61139e03fdcf76b":"2020-08-04T01:36:28.556Z","0.15.0-next.1597642926.ff88fba7e6ff073b7d9bdd748973b76b642a9676":"2020-08-17T05:42:07.898Z","1.0.0-next.1597643355.1939e1a422a66f9e338ebd39fa210598e258fcb2":"2020-08-17T05:49:16.847Z","1.0.0":"2020-08-17T05:49:27.060Z","1.0.0-next.1597643634.28a9bd533fc6e5c05d9ea16d16b929c75b112366":"2020-08-17T05:53:56.311Z","1.0.0-next.1597658596.b10e8e299573d109ecd6d96c6d345385c145be3c":"2020-08-17T10:03:18.432Z","1.0.1-next.1597707212.6f8d7eddcfa659b54222c38cf5aff297a9be22ec":"2020-08-17T23:33:34.518Z","1.0.1":"2020-08-17T23:33:47.685Z","1.0.2-next.1597707332.b839d2f904275a5b76585556b9c5d44b3f182f7c":"2020-08-17T23:35:34.299Z","1.0.2":"2020-08-17T23:35:44.701Z","1.0.3-next.1597775363.101863cd8e040451e26c1542979faafd021e13a0":"2020-08-18T18:29:25.081Z","1.0.3":"2020-08-18T18:29:29.992Z","1.0.3-next.1597776061.d3b234c7af1de0f8be4a783779c3b86f9631c907":"2020-08-18T18:41:02.904Z","1.1.0-next.1599107309.13e6245c58b879c60fcb21033d0d783a7fa728a7":"2020-09-03T04:28:31.363Z","1.1.0":"2020-09-03T04:28:47.830Z","1.1.1-next.1599201156.eb7229966ff4f7ec22df43465b22e904be0694c2":"2020-09-04T06:32:38.646Z","1.1.1":"2020-09-04T06:32:51.864Z","1.2.0-next.1603916556.050074421120cc0deaa07f34de8effbc4a496624":"2020-10-28T20:22:37.556Z","1.2.0":"2020-10-28T20:22:45.980Z","1.2.0-next.1603916642.257ccdadbb4456f19159176b6b7ca187840ebfa6":"2020-10-28T20:24:04.578Z","1.2.0-next.1604236622.7c588be18d4fae04e981190fa47b698a600164ca":"2020-11-01T13:17:03.636Z","1.2.0-next.1604237149.5a0612a057690cc4184ed095c7b5d2ea465d17e4":"2020-11-01T13:25:51.102Z","1.2.0-next.1604237725.60ef5bcfb35c66628007f062cd982151f56f727e":"2020-11-01T13:35:27.407Z","1.2.0-next.1604238446.cb487894694c6a16e6f1bde27c85dfff1f2b6c03":"2020-11-01T13:47:27.701Z","1.2.0-next.1604238645.63afafa14feea343812867de08683d0475f99985":"2020-11-01T13:50:47.147Z","1.3.0":"2021-06-14T06:55:43.645Z","1.3.0-next.1623653803.41fe7f9f85f49263e22074da19c184c2bbb90397":"2021-06-14T06:56:45.283Z","2.0.0":"2023-11-24T12:02:12.257Z","2.0.0-next.1700827330.c63909eb3f7216f6381862ac26b5c9d57ce9ec82":"2023-11-24T12:03:15.695Z","2.0.1-next.1701773766.bfd1ce07694efb78f43b52b3c043f0feee3d4706":"2023-12-05T10:56:08.422Z","2.0.1":"2023-12-05T11:00:56.482Z","2.1.0-next.1701820492.1cb148750ff5151a6d46b75f48225428bddc9920":"2023-12-05T23:54:53.869Z","2.1.0":"2023-12-05T23:55:16.115Z","2.2.0-next.1703696930.8bf83148bea3b04dde36798626c1774962bc0d40":"2023-12-27T17:08:52.465Z","2.2.0":"2023-12-27T17:08:54.980Z","2.3.0":"2023-12-29T17:33:53.686Z","2.3.0-next.1703871236.9ecfb4926ad07e9f2a701cb8457ec3b2809d3e7d":"2023-12-29T17:34:47.008Z"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"description":"Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.","homepage":"https://github.com/bevry/make-deno-edition","keywords":["denoify","edition","editions","es2022","node","npm","transpile","typed","types","typescript","unpkg"],"repository":{"type":"git","url":"git+https://github.com/bevry/make-deno-edition.git"},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"}],"author":{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"bugs":{"url":"https://github.com/bevry/make-deno-edition/issues"},"license":"Artistic-2.0","readme":"","readmeFilename":""}