{"_id":"@arenamovediza/modern","_rev":"3-8688c24383115752ece84a43fcfc439d","name":"@arenamovediza/modern","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@arenamovediza/modern","version":"1.0.0","description":"Another testing npm package used to learn how to do it","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["useless","modern"],"author":{"name":"Carlos Arena","email":"carlostata.ca@gmail.com"},"license":"MIT","gitHead":"fe3d1de58750d234690ee5e92a6a2c35ce47367b","_id":"@arenamovediza/modern@1.0.0","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-EzyDFhJIoJQ6SOEHNcZ44DluLGZqMRjbSxtav7jDJxEuaBAEDO+N9/LvVxr5nQz5aG0e5ZS/FzVnbvhl6f/YXA==","shasum":"df182a42148415a5bf89e2929dff086f8375e33f","tarball":"https://registry.npmjs.org/@arenamovediza/modern/-/modern-1.0.0.tgz","fileCount":4,"unpackedSize":2430,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFB7/WbI7CG3jww9MHsFB1O9fcgncxiRVBR4HgFqTkg5AiBpoYiqUhpdBKwzqKbTYj2j+XUhDamqxNXGklyZiB/+jg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOC58ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/WxAAgS4Nzjsec49oeA4c3SUBR2YQR6+CnebW23FVhbiqr2hOk5tH\r\nHSjCrvUl4ypWjAeI6rL3B/KanWk8iOJ4fflaTEIS1xGEUctpLfgibATAs0Ks\r\nAfwNc7rVZPnWoU2zm6nPe/0mH9KSa8xrVDEwV03pAGzP8y6hbrnxbJCfcwDt\r\nsUkARvPPZ/p3AuH55YwcnBjUjySRf749YHeNSVXdZ75e+0SZmV4XzWVctQwB\r\ngHsK0yhpmH4Tr24JTe7Ih3OonPugF0IqTJctNLxrp5Co5XhdFiS8eAA0Tgrn\r\niXuZ36nDGOyOGWaeNo9K3OVNPSqnKlI6voScLN6fpSOuCmLO0deZLoUy/xGR\r\nZPZfGQcSZbpKxxospDBVMcN9nJbFsu1csYA85HH35iEvX2uLe+CK0pyYXxBF\r\nrQUz8vi6X7w5IAw2Q2Vq/mHUKR8fXfDO+FvdUMtR4n7B6SyBXt2EiSTInTl9\r\nOPx7IBxbmxSP/eb1s4ghbcz72Acfux9U5m3H20OulQomg0yG2RzpwQqhDQzV\r\nE9Gg3MpNV4G97p2ZKmPcGafp7JsQHhtTG/SegGDszLqR/6F6oXrk1OpDCH6t\r\nLNZTUTtnonBlI8STDpBpUgY0CvC1nNgPku1Fn9B50RMnHP8HIGJMnBtLoyjU\r\nqgiByXaBVI2RzJVUeVB8PxkLuJlU+RKT6Oo=\r\n=CTwx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arenamovediza","email":"carlostata.ca@gmail.com"},"directories":{},"maintainers":[{"name":"arenamovediza","email":"carlostata.ca@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern_1.0.0_1681403516162_0.10142945924752067"},"_hasShrinkwrap":false},"1.0.1":{"name":"@arenamovediza/modern","version":"1.0.1","description":"Another testing npm package used to learn how to do it","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["useless","modern"],"author":{"name":"Carlos Arena","email":"carlostata.ca@gmail.com"},"license":"MIT","types":"./index.d.ts","gitHead":"e949637720f47285623547880c9de2d07698ff7a","_id":"@arenamovediza/modern@1.0.1","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-fiSnQvxHgtE9GPwsnaLUJAq/8q2JMKz1r6SFemAgT2h3RoGGVEDqWjHtuPvr5DJny/3FaFgygw7GU4prL6n4lQ==","shasum":"de2a94bfb449a1419f8b41a65e03ae176057802b","tarball":"https://registry.npmjs.org/@arenamovediza/modern/-/modern-1.0.1.tgz","fileCount":4,"unpackedSize":2898,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHaKTVGZail/dDKBCamW9Qvqt7hpsoaYeK4KQaY92a8MAiEAgPHSOTfjr1wAxdJ190lgi2ikpToAghAaKOHIBcJ+8g0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkODQnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJLg//a87itZonIBcPF2nq9gL78PtfhkyRo8vQHXs2bCbSyXx5HdJT\r\nesmlUvdqO6J2HLXs15RzaW8HdpqS2jFYypAAt7dKBKYLifJSHvKb8iOh++6R\r\n0gUK2k/s0zLmsAcN8OcIxeDrj01AKClF4sLKD2B3gy7Zp+SYPIrTIusxJGqX\r\nWeTjNiTs3S3n6MezEHII7t7Y6YwAoSNB3JuT7HO1R0C25xwzXveybEEdhssM\r\ncKalt4+t4UsQXBxbWdeFTyKQiCFyzfeKY5lOeaVb58lfbM+42p9Bzc+tzgIp\r\nNdhsoCZxvyIw2lhOLSQoxFQS0ChGF9OBHnQuzodr1G7NFh+r1DCaIdIZrjlm\r\ndSs0wKOq1RIvEzGQQk2wPDt430UJC1fKsWAamTf71U66d2JP2vk7fPmL0wgW\r\nMcdDl9HMbbE2Zi6jREsjvV0xwl5+C2IQjdO6ZlPePucNDpMaEGHHQOKm1ot3\r\nTWWNja1DlPKfa/Wp8jEVBYmbUsEoxPG6nkrhqCwNKwUfSM4dJWfCN3dlqvlh\r\nxP2pPqcCdUenheTsEO3NTw+T2Tpr5owWN9je38qjXCDQKrSiDUM9fjlERIjm\r\nWInEktEBE/q/z1AfLis2wUOQ4V6yDSMQVmiW4trsH70Pbn4hJraM3JmT9IA+\r\ndH+fewCAw6klYJqYNSsvXek4YnEzapZ+KgY=\r\n=QVhw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arenamovediza","email":"carlostata.ca@gmail.com"},"directories":{},"maintainers":[{"name":"arenamovediza","email":"carlostata.ca@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern_1.0.1_1681404967415_0.4444099564266404"},"_hasShrinkwrap":false},"1.0.3":{"name":"@arenamovediza/modern","version":"1.0.3","description":"Another testing npm package used to learn how to do it","keywords":["useless","modern"],"author":{"name":"Carlos Arena","email":"carlostata.ca@gmail.com"},"exports":{".":{"import":{"types":"./lib/esm/types/index.d.ts","default":"./lib/esm/index.js"},"require":{"types":"./lib/cjs/types/index.d.ts","default":"./lib/cjs/index.cjs"}}},"main":"./lib/cjs/index.cjs","types":"./lib/cjs/types/index.d.ts","license":"MIT","scripts":{"clean":"rm -rf ./lib","build":"npm run clean && npm run build:esm && npm run build:cjs","build:esm":"tsc --project ./tsconfig.esm.json","build:cjs":"tsc --project ./tsconfig.cjs.json && mv lib/cjs/index.js lib/cjs/index.cjs","prepack":"npm run build"},"gitHead":"8dd2aeac174f9bd10a1175702b23172451d2c945","_id":"@arenamovediza/modern@1.0.3","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-tH362AXEaxPMBPSkqlgkd592PhG2j3InO2bEZdHDxQIZOOZjjk5hJpJMxwP42VSZ/GkTDexcnwuRBkAoGXmmlA==","shasum":"24b71db7fbf33ac7c03f39ad4524f0c2cc153841","tarball":"https://registry.npmjs.org/@arenamovediza/modern/-/modern-1.0.3.tgz","fileCount":15,"unpackedSize":6196,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHkHQWAaGbN62LLl84IIifdDxOdWLVGOtebTTlDzO2VuAiEAydbJOtqrRkA9ZWtAqD6PsiY9fDke4buwr0yi2jwBSO8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOJJXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUlw//ccmncI/C88fNWkYdT+gB4qztUDWdA2CevHe9sxmUf+1RXwxU\r\nH/NfeqCTtJueEQk96i4Y5wL0iS9yYXWN6pAebj5YyfJ4UfKPYvNYczf/DTDW\r\nxYqjtOc2HyAMoR+mtmYRTm5lU1B2S/l5LJhhikkvFI3dVomRh1VFJXnz/trq\r\ntRSzvRJtVsYAf0VUafQEusHTn5ziC8qDJxJQipI6kJ0gzV5CUnb8jV65/Gvz\r\nCp6OHGpZcupAsHIhS00rAA3BETHX4d+1GRYqze9CjkD/xVmhy5cgX7X5yx72\r\nLF6gF+u5q693z11Dur3SLCkqRojPyTueWYTddbUJ8urjfDNpgTnn9gNH4luE\r\nlId7X0j66bloG3W9DeOfafpEix1mWdkfuPPUq4Hsn0JQviHbYN6z9xzQfk7D\r\n4YIO2i3dRPvlfYInd936d2YAagVCRKKrWN2jSAA2Zi5jCP8zbAnZ8G8mnnO5\r\noQbYC/dfGPUpqEZvdTH3bj4DDDOp9oflxFD9TbiMbgEhisEEfzXVMz68MKIL\r\n5kG299VuR2N12GUXfyQYDW5jIHJuWRwpivRtM7WsavtyCPp1UUSMyCnkHASb\r\nsplZOAwUA1zqFNOUPfpc7b86QnWg429tcIDmkvM/Gp2PKmI+mqoxRI2tsxxj\r\nz28oO0VpYEi7GXx8urf4PJoHZhpzucwn6c4=\r\n=NsGX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arenamovediza","email":"carlostata.ca@gmail.com"},"directories":{},"maintainers":[{"name":"arenamovediza","email":"carlostata.ca@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern_1.0.3_1681429079236_0.8719310413925117"},"_hasShrinkwrap":false},"1.0.4":{"name":"@arenamovediza/modern","version":"1.0.4","description":"Another testing npm package used to learn how to do it","keywords":["useless","modern"],"author":{"name":"Carlos Arena","email":"carlostata.ca@gmail.com"},"exports":{".":{"import":{"types":"./lib/esm/types/index.d.ts","default":"./lib/esm/index.js"},"require":{"types":"./lib/cjs/types/index.d.ts","default":"./lib/cjs/index.cjs"}}},"main":"./lib/cjs/index.cjs","types":"./lib/cjs/types/index.d.ts","license":"MIT","scripts":{"clean":"rm -rf ./lib","build":"npm run clean && npm run build:esm && npm run build:cjs","build:esm":"tsc --project ./tsconfig.esm.json","build:cjs":"tsc --project ./tsconfig.cjs.json && mv lib/cjs/index.js lib/cjs/index.cjs","prepack":"npm run build","test":"vitest"},"devDependencies":{"vitest":"^0.30.1"},"gitHead":"71267e6bac5e8aa500f1463e303fcd87765f4ebf","_id":"@arenamovediza/modern@1.0.4","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-q0JZm3PVdq6Qn7k37pd86QEAZJyb5Knp88MU8s8Xp/axFJTDcgLSmPXHkrHrEp8R5fSv+MsRHB4VuCwUNZjdPg==","shasum":"8ac8477694a1a035cfa607e252df1c7b96487d3a","tarball":"https://registry.npmjs.org/@arenamovediza/modern/-/modern-1.0.4.tgz","fileCount":15,"unpackedSize":7923,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE0oDTp+lZJXGrsUG2N8T4ZO3Z8fL1Yz6m8RnTLSoB+9AiEA/P3Xbvqh5z6dfT1cNHTF7pk+Y+A5gck+AABdXFt2hH4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOOYsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrSHw/+KaSNwTY/8+oGHkbaGP4eZEujv2VRlOE96mLh5SXB5BN5G6YR\r\nGVZcHh7RsuA51Y2HsKSSk3bDLgTLDAsCXOYS68SVqjfHCSCCZRgqaQj2Feql\r\nXWuaC8rtDvRf8ymz5FlGGByWVIOAvs7jB3AD1JmpBkYFetJchpwXwJPbXowe\r\nkzYZrWICohdqZ7PfgGCJtR9zCGgU1ChIkt6tadOrgl6aOu2/0y05qWlLqmEE\r\nwiNXoe59xxtj4Jhjnh2D1WFmZmSPX7Jk6t9QxSgn4sI89ncuJFIjm3FtSUnQ\r\nzpti3CjiP7Nthf/MmjZ/1q6OdX7WWQOjETsu4vY88SC5o05qzWfjDAxBDlw5\r\nebd2rif2iI2AbA2bm39k55UNNTI2KCfAjdpwAbQH4inx2CIGIR3YxeFIKbS+\r\n3Ogu6ESW1iLcrvUYQgJ8gP27/G27iuWNKRVtS3eA2V0/0KahdggQmMMTC7bE\r\nBNmYB3deYgRRm4CH5rhIg3A20lANinmbtJxoy89Bgvihyt4mTAXJn6OGy22a\r\n4BfwItX9O4mWCjlWFSa+M2pLiV8OkRAI1e3OXcGBk+5VVBhxheEsWN6EVO2A\r\nLXJMFj0mBobDoOTy8BDEUNh7YTpVZLM/pwj82PQ6jvAEbmn4lVQBamz3rVXZ\r\nY3yGryWhCt3X0sNRkpvJBiJs9h1W7ggUT9M=\r\n=tV/L\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arenamovediza","email":"carlostata.ca@gmail.com"},"directories":{},"maintainers":[{"name":"arenamovediza","email":"carlostata.ca@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern_1.0.4_1681450540742_0.03656806481407271"},"_hasShrinkwrap":false}},"time":{"created":"2023-04-13T16:31:56.057Z","1.0.0":"2023-04-13T16:31:56.330Z","modified":"2023-04-14T05:35:41.037Z","1.0.1":"2023-04-13T16:56:07.554Z","1.0.3":"2023-04-13T23:37:59.453Z","1.0.4":"2023-04-14T05:35:40.920Z"},"maintainers":[{"name":"arenamovediza","email":"carlostata.ca@gmail.com"}],"description":"Another testing npm package used to learn how to do it","keywords":["useless","modern"],"author":{"name":"Carlos Arena","email":"carlostata.ca@gmail.com"},"license":"MIT","readme":"# modern-simple-npm-package\r\nAnother testing npm package used to learn how to do it\r\n\r\nMade following [this tutorial](https://snyk.io/blog/best-practices-create-modern-npm-package/)\r\n\r\nSome of the things I want to remember about its content, thigs i've learned by myself, and from other sources:\r\n\r\n* `npx npm-packlist` to see the contents that will be included in the published version (DIDN'T WORK) -> use `npm publish --dry-run` instead.\r\n* When no `files` option is included in the `package.json`, it will include some unnecesary files, so be careful. \r\n* Even if it has a `files` option, it will still always include these files (which are very important):\r\n  * LICENSE\r\n  * README.md\r\n  * package.json\r\n* If we are using scoped names (e.g. @something/name) for the package we need to run the following command to publish our package: `npm publish --access=public`. We could also define that option inside our package.json (I don't remember how XD).\r\n* If you don't want or don't need to declare types for your package, you could create a .d.ts file with the following content: `declare module '@your/package_name'`. This way those using Typescript will still be able to use your library. \r\n  * As a side note, if you want to consume libraries without the types definition, you can create a .d.ts file to manually create the declaration, as stated by [this stackoverflow answer](https://stackoverflow.com/a/60304662)\r\n\r\n### about the usage of commonJS an ESM for our package \r\n*ESM = EcmaScript Modules*\r\n*I've read [this article](https://blog.logrocket.com/es-modules-in-node-today/) to understand some of these points*\r\n*Of course, it was more informative to read the [documentation about this topic](https://nodejs.org/api/packages.html#type)*\r\n* By default `.js` files are treated as **commonJS** by node (and I think they are interpreted like so by bundlers).\r\n* `.mjs` are always treated as ESM and `.cjs` as commonJS no matter what's inside the nearest `package.json` file\r\n* If we define `type=\"module\"` inside the `package.json` file all `.js` files will be treated as **ESM**. If we want to treat them as **CommonJS** we must change the extension to `.cjs`\r\n* If we define `type=\"commonjs\"` inside the package.json file or if we totally ignore that property at all `.js` files will be treated as **CommonJS**. If we want to treat them as **ESM** we must change the extension to `.mjs`\r\n* The above means that if we want to deliver to both **ESM** and **CommonJS** we have three options:\r\n  * Define `type=\"module\"` and use `.cjs` for thos **commonJS** files.\r\n  * Define `type=\"commonjs\"` and use `.mjs` for those **ESM** files.\r\n  * Not to define type property and use `.mjs` for those **ESM** files\r\n* As I prefer to use **ESM** I will use the former option, although the tutorial I'm following uses the third one.\r\n* The ESM files won't be directly imported by the browser. WE'll need a bundler to do so. If we want a way to use this library directly in the browser, we need to bundle the entire package.\r\n\r\n### About testing\r\nEven though we have various testing libraries, the one I'm using here is vitest. I didn't find good documentation about it, but was led by the hype. However, it's working fine with my minimal setup, which is being commited at the same time of these words.\r\n","readmeFilename":"README.md"}