{"_id":"@3xpedia/library-boilerplate","_rev":"3-6483e8aeebb706be3947cf40b9ea8f46","name":"@3xpedia/library-boilerplate","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@3xpedia/library-boilerplate","version":"0.1.0","description":"simple boilerplate for JavaScript libraries","main":"index.js","license":"MIT","scripts":{"build":"rollup -c --bundleConfigAsCjs","pre-publish":"copy CHANGELOG.md LICENSE package.json README.md ./dist"},"author":{"name":"Coclet Clément","url":"https://github.com/3xpedia"},"keywords":["javascript","library","boilerplate"],"repository":{"type":"git","url":"git+https://github.com/3xpedia/library-boilerplate.git"},"bugs":{"url":"https://github.com/3xpedia/library-boilerplate/issues"},"devDependencies":{"@babel/preset-env":"^7.20.2","@rollup/plugin-babel":"^6.0.3","copy":"^0.3.2","eslint":"^8.32.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.27.4","eslint-plugin-prettier":"^4.2.1","glob":"^8.1.0","prettier":"^2.8.3","rollup":"^3.10.0"},"gitHead":"54c59d3c70eb062bba72cbbe28d41223589c7881","homepage":"https://github.com/3xpedia/library-boilerplate#readme","_id":"@3xpedia/library-boilerplate@0.1.0","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-2CFeSql+NQX74ytqjzRVj76r0C5LLLkAXfPCYXa8wtzJAAqVz7qcPrNQEML5bM4gElnwKU4BmNMppfUORL/CXw==","shasum":"53b0042cb014818e9b453022ea928df3281fde89","tarball":"https://registry.npmjs.org/@3xpedia/library-boilerplate/-/library-boilerplate-0.1.0.tgz","fileCount":11,"unpackedSize":4044,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBXF3HjPJ57yyQPL/57+ZBNjpC5DuXi7Nt5pti2pGgfKAiEAwuY2ogsWqy6ScG/HU3P2KIrK5qPIZjhGjrc9nA6DiX0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw/4KACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmohzA//a2yqeMZnYGDkt/lcO5UOQZQDr5MlpQ/kFH4Qnqe3IIRjZsHA\r\nAqfTELF+s3g2asVCMeJjaBXxXu8Ea/w5yZg5/1Np3+fXzbvJ5QmAfyrUvNjA\r\ndBGJhoTIYpILWQPD7BCcW6n3CSIx0Z3rf27qCMFepSfMRkgOpNHJeOeaRoBl\r\nNJI3iywC+GrpsBgTz0HUWD9hLQVP7apDukqT8OTJgO+4XHEIcr6zsS2gP1vT\r\nJetIDGWTak1c5EY8SfTSUbFgPEezhCBslqPf0EWhwckK8tIyGeLyfTax9y4l\r\nSPy1V9S54c+4l34Qf4nFAdLcC5HX27kMdeDjGOFLdBgw+6rfGXjsswQQKRMg\r\nqIevnRmpwGN/Humd8kgUWxDcSPOSktMPnXNSf4GWHrQUc49ZWADlcgi5HUcH\r\nb4+AMy2lpjvRM0NaBfQxakoYeITjsWXwREZAEhpQqhDJ6MS+/TtayudJQ8cb\r\n08vtj4S3v1oAP33MbSgaE1LfxVSc77uDUqNH/srKRkth9dGApXJae688Q/5d\r\n64ydQekwZImpggzRHPTO5JD3T1XDvGdF/XIvlM7ctKKO5/pwfUKoBxyWyzlh\r\nFWPst7rdJiVGUvbfBk5LBqa5Vxx7IvGnqsa/Z3eAFa6TW5gTxjXMWdnEccTY\r\np/wIpyoH5Z2Yg+GjOcjKQwzY3E3jg+5RiZU=\r\n=4K5O\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"3xpedia","email":"coclet.clement@gmail.com"},"directories":{},"maintainers":[{"name":"3xpedia","email":"coclet.clement@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/library-boilerplate_0.1.0_1673788938199_0.9716275468187292"},"_hasShrinkwrap":false},"0.1.1":{"name":"@3xpedia/library-boilerplate","version":"0.1.1","description":"simple boilerplate for JavaScript libraries","main":"index.js","license":"MIT","scripts":{"build":"rollup -c --bundleConfigAsCjs","pre-publish":"copy CHANGELOG.md LICENSE package.json README.md ./dist"},"author":{"name":"Coclet Clément","url":"https://github.com/3xpedia"},"keywords":["javascript","library","boilerplate"],"repository":{"type":"git","url":"git+https://github.com/3xpedia/library-boilerplate.git"},"bugs":{"url":"https://github.com/3xpedia/library-boilerplate/issues"},"devDependencies":{"@babel/preset-env":"^7.20.2","@rollup/plugin-babel":"^6.0.3","copy":"^0.3.2","eslint":"^8.32.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.27.4","eslint-plugin-prettier":"^4.2.1","glob":"^8.1.0","prettier":"^2.8.3","rollup":"^3.10.0"},"gitHead":"54c59d3c70eb062bba72cbbe28d41223589c7881","homepage":"https://github.com/3xpedia/library-boilerplate#readme","_id":"@3xpedia/library-boilerplate@0.1.1","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-wdnd7n6fxtqrNkVLxlDb3KEjVGGPrDy64PhNf45zI0inwLwYKyDfAhQXlN9IEHCr/I9NbG7PN+vwnMLZPUuy9w==","shasum":"02ffded5dce8b17f76360ceb95a088e5eca6982b","tarball":"https://registry.npmjs.org/@3xpedia/library-boilerplate/-/library-boilerplate-0.1.1.tgz","fileCount":11,"unpackedSize":4695,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDU/te9lfeP6uLQvRACBxn9GDDfh1gtgYHA3vSirNwU8wIgFqPpSY6wN6ApT2ad8qf46JZMr7C2lw28IAVBCYd5EnU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxADPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/ww/9HHZnX+622WgJu8dftJLgSLR93sLQcEfF0jfUKUUjGnOeflph\r\ncwNvWpj2DY5Dn8wZur/uG8BjtPGN0HFCQygNpnp3W7HAeE5+lpgrsOuMWKOP\r\nWefbWx9CGBh3bhASANv48Yf4iP8IDnDX0lHL9XHkgWT/i6XaDJeSEFXjbXdR\r\nKBupc5780zslLx9d6EN2TO5KDz5uMz2TXQbjL+Dk9G2DCVmMrJzVl8SrsK1F\r\n8JHTHkjSDqCM8NJc2ZYbMXkSthMhGYYkBV2fayYKjlC84Ll68lvgWwkql4St\r\nTyCayGdP50uJuMbv9v/HbG+0I7y3xHjpwlsu+NVTmP70NlcE0mmawTXtFfnk\r\nfFBHptj65LoOAZK8+FTePW/hOVXEg2vU4yNo4vMPctHrjNyTw31EBXi6Ee9f\r\noOO1CRfhHIswfFEN3siesuejbrgJRbj3+xircTjRqx3F5YyjYMWttPrTBrOA\r\n4S36Gfd20xr9f+QNQwzW3EfVFYch0zabZ/ijtOKsYD3mVipqGoJBaBYBQ6Sr\r\nR8NYr/HyP6R/N+GrAPE2gj774nW3ZpXzW89L9DJ3PZesMOlkS0lsYCL74OsT\r\nNDpa/Vfq3JVJC4b9djbRRhUdFy02ABnnX52JjNKbZzqci/9RFTmndSJgGlcy\r\n5n212Az9uB+JsGvdVN7+0cEl/iopeXBFKiA=\r\n=BmzG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"3xpedia","email":"coclet.clement@gmail.com"},"directories":{},"maintainers":[{"name":"3xpedia","email":"coclet.clement@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/library-boilerplate_0.1.1_1673789647744_0.9221113218767851"},"_hasShrinkwrap":false},"0.1.2":{"name":"@3xpedia/library-boilerplate","version":"0.1.2","description":"simple boilerplate for JavaScript libraries","main":"index.js","license":"MIT","scripts":{"prebuild":"del-cli ./dist","build":"rollup -c --bundleConfigAsCjs","postbuild":"copy CHANGELOG.md LICENSE package.json README.md ./dist"},"author":{"name":"Coclet Clément","url":"https://github.com/3xpedia"},"keywords":["javascript","library","boilerplate"],"repository":{"type":"git","url":"git+https://github.com/3xpedia/library-boilerplate.git"},"bugs":{"url":"https://github.com/3xpedia/library-boilerplate/issues"},"devDependencies":{"@babel/preset-env":"^7.20.2","@rollup/plugin-babel":"^6.0.3","copy":"^0.3.2","del-cli":"^5.0.0","eslint":"^8.32.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.27.4","eslint-plugin-prettier":"^4.2.1","glob":"^8.1.0","prettier":"^2.8.3","rollup":"^3.10.0"},"gitHead":"2e2ee0faa526131ca69141f04b5f01b2fcb51cab","homepage":"https://github.com/3xpedia/library-boilerplate#readme","_id":"@3xpedia/library-boilerplate@0.1.2","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-HYeUklwHU/nF2cU15hYjMisuxJ6tZOkCXUFehCeX2+V1Naaq9zA1Tyz4zSuT6tf4fMY39M8ty3ZP8iqQ+HIpZw==","shasum":"1a5e08b22da93a388b0b3e6cb2514ccdc335e55c","tarball":"https://registry.npmjs.org/@3xpedia/library-boilerplate/-/library-boilerplate-0.1.2.tgz","fileCount":11,"unpackedSize":5177,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBDuVQIvil8eGWwrF5nVltlrhbtNMReaxsjKyChyU9c0AiA0tu+zu881c/Ji2puOa7BODy7E/Ax4+musJhTs1KiHMA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxAYIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoufA//SmIg79ZEEt3U85o9yAGbCGqCTu2Ehw1QgyYENIoC5IpggU6L\r\nWYqPJpWJww42PqgGqshMriSiS+JJabktVMisPTJibby70TZMqvMxBXEjLRL+\r\nF+jVLgwfvzqLTgenoiSIjg6TvHfaofAfIXWornPxZ1+HKkGSPiPA4vbihsnn\r\ns8bH2HWQ/uyChSqF8pbnbUfjTv8ySzth2VGcuG5mCdnxALPbfG6MXLvxY5If\r\nsA/9Ufvg7afHS2CQv6yh81TIVqPuwUgE0Svs82Q41koK78SgRD9CndSk8Ihc\r\nJQDpAeyQzMpe142CnGgLr9v/vpCZOrt944TvhHPJWN7+GMNh6D0y9RiCQjWf\r\nkoIU5yySB525KY3rk+hG6X7+k6L0fBtC2yY5R8fhIFB89TJPA0onql0tUav9\r\n8MOirbGYpYX/kaaw/YMOPxSEZh9F4PQMO6DyV/CdNgbBnxwsOHO2IRx2ThjL\r\nQWcycCNxFB2Ahhyak6BTt+nWE2ZmeDzm0kZ+JlgfJm0tQgnyVjr1vyG575Jx\r\nvq/ZnB5ZvkTKyQQRi+Ut31xS0mrwz0TfW1aZCipW3OH/bZ6ESlepYKZouRvg\r\nzKCpHEac9EGFW7cfs3qcLwdAKjChJVfY3lR4fEsQaHdghgxSxWwglkIg7J4/\r\nP7FMbORKYaOTFdWZQjW/e5LNauGcn4r+wSo=\r\n=bNuV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"3xpedia","email":"coclet.clement@gmail.com"},"directories":{},"maintainers":[{"name":"3xpedia","email":"coclet.clement@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/library-boilerplate_0.1.2_1673790984454_0.031110550833224337"},"_hasShrinkwrap":false},"0.2.0":{"name":"@3xpedia/library-boilerplate","version":"0.2.0","description":"Simple NodeJs library boilerplate. ESM to anything else.","license":"MIT","type":"module","main":"./dist/index.cjs","module":"./dist/index.mjs","targets":{"main":{"source":"./index.cjs","includeNodeModules":false},"module":{"source":"./index.mjs","includeNodeModules":false},"global":{"source":"./index.browser.js","context":"browser","outputFormat":"global","includeNodeModules":true,"optimize":true}},"exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs"}},"browserslist":["> 0.25%","not dead"],"scripts":{"prebuild":"del-cli ./dist","build":"parcel build","watch":"parcel watch"},"author":{"name":"Coclet Clément","url":"https://github.com/3xpedia"},"keywords":["javascript","library","boilerplate","esm","parcel"],"repository":{"type":"git","url":"git+https://github.com/3xpedia/library-boilerplate.git"},"bugs":{"url":"https://github.com/3xpedia/library-boilerplate/issues"},"devDependencies":{"del-cli":"^5.0.0","eslint":"^8.32.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.27.4","eslint-plugin-prettier":"^4.2.1","parcel":"^2.8.2","prettier":"^2.8.3"},"gitHead":"b7fb2357153bdb205ace54b31c98ff70ae8272d0","homepage":"https://github.com/3xpedia/library-boilerplate#readme","_id":"@3xpedia/library-boilerplate@0.2.0","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-txFuwdgI5mXeV9I7q47FXnYD0F4Y9m7WDN4wmAHzOFFL1kHleB0Ge/o0t2lN1YsOQ5uHo93Knc10SyvdUqp/OQ==","shasum":"d39194c0ca34517f1bbfcb6a3977530a58936a27","tarball":"https://registry.npmjs.org/@3xpedia/library-boilerplate/-/library-boilerplate-0.2.0.tgz","fileCount":10,"unpackedSize":5691,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOJlLR/W8xGp+FaP0titCKBhNO4NzP1diEeORuPw57IwIhANkYF1aeTvCVPPNLzjOndFC3N0YNd1JPyIFsUu5PwyM4"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxbpmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoOxA/8DO1ytFxWdDLO9lo72vQugNyb4+uX2rPSg9/s0afRFDn+nzWU\r\n5vKPNVS7tBBpp9DfSSykTFg2Xsd1IQ3sEVNCjehafmPMbrDTngj3KZLojEa4\r\nbrL9yTYUrRCA+Wgo0V0Eep6sen8kbZslsAYJzUjgRWMoLhC1Dxx4WVYuv/M7\r\nFKWbL85muuT3U0iiJ+RCtYMRawasY7JfwmeAzGldv2kOIA7KyRqXhYSDmic9\r\nDYDYNg4+v029VlfeP8XSPP/TxGc1xzrA/ylqh7ZtWyEC84gWjObxlaTot9dI\r\naRSDr0xjavMmDTOZV51ywsOLB09yaFoGZrbRnwBdSHWXZY5XoUE14j5k710w\r\n0z2y4LvmOQbyfEueHUcaLMHye9wlbtt7d8v+Y/n6OA6HngpQzoZiDXpkgNfA\r\nyHB4s0zzCOlRSPOnRHaxJ+lJSBIaH68dG2QPageaKqR4HXU8C96mObLgspbx\r\n4xLTxo+niPVYSt7yDCksd1ukzOhzcuRfnge2ATG/jGUxvRzA7307JtHsyRL8\r\n7kXB3L9CuNK8+NyQpiRdPIA2bUeYR70+fNoZWSQOhNbai5gOB0QOSZlvll1P\r\nBpF80WlbS45nSrKTxaSnwiP2JnHVyGnstaDyCstuhmbWgIMIF3GDZfdWlSRj\r\n0Hf56L+18lfaLBruQ78fCXZlHCGBEEP9hog=\r\n=2sPN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"3xpedia","email":"coclet.clement@gmail.com"},"directories":{},"maintainers":[{"name":"3xpedia","email":"coclet.clement@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/library-boilerplate_0.2.0_1673902694465_0.5196658953953113"},"_hasShrinkwrap":false}},"time":{"created":"2023-01-15T13:22:18.135Z","0.1.0":"2023-01-15T13:22:18.357Z","modified":"2023-01-16T20:58:14.749Z","0.1.1":"2023-01-15T13:34:07.945Z","0.1.2":"2023-01-15T13:56:24.666Z","0.2.0":"2023-01-16T20:58:14.626Z"},"maintainers":[{"name":"3xpedia","email":"coclet.clement@gmail.com"}],"description":"Simple NodeJs library boilerplate. ESM to anything else.","homepage":"https://github.com/3xpedia/library-boilerplate#readme","keywords":["javascript","library","boilerplate","esm","parcel"],"repository":{"type":"git","url":"git+https://github.com/3xpedia/library-boilerplate.git"},"author":{"name":"Coclet Clément","url":"https://github.com/3xpedia"},"bugs":{"url":"https://github.com/3xpedia/library-boilerplate/issues"},"license":"MIT","readme":"# Simple boilerplate for JavaScript libraries\n\n### Included with this boilerplate\n\n- Eslint and prettier config\n- Build scripts that output ESM, CJS and browser standalone. Write your code in ESM, export it anywhere\n- As parcel does support TypeScript (among other stuff) out of the box, this library boilerplate does also support TypeScript.\n\n### How to use\n\n- Clone this repo\n- Update relevant information (license, author, ...) in the `package.json`\n- Write your code in `./src`. You can also change the exports in the `index.*` files to match your needs.\n- You are good to publish\n\n### How to build and publish\n\n- `npm run build` to build your library\n- `npm publish` to publish it on NPM\n- There is also a `npm run watch` script that will watch and rebuild for local development.\n\n### What is in the build\n\n- `./dist/index.cjs` and `./dist/index.mjs` respectively contains CJS and ESM build. The host environment should be able to pick the right build automatically.\n- `./dist/index.browser.js` provide a static build for web-browsers. It exposes you library on the global object. It also packages all the required modules from the `node_modules`\n\n### How to import the lib\n\n- CJS\n\n```javascript\nconst myLib = require(\"myLib\");\n\n// OR (depends on how you export the lib in index.cjs)\n\nconst { foo, bar } = require(\"myLib\");\n```\n\n- ESM\n```javascript\nimport myLib from \"myLib\";\n\n// OR (depends on how you export the lib in index.mjs)\n\nimport { foo, bar } from \"myLib\"\n```\n\n- Browser\n```javascript\n<script src=\"myLib.js\"></script>\n<script>\n  myLib.foo();\n  \n  // OR\n  \n  myLib();\n</script>\n```\n\n### Known issues\n\n- No babel config is provided. Parcel does already ensure compatibility via the `browserList` key in the `package.json`. But it should be easy to add any required babel config see [parcel doc](https://parceljs.org/languages/javascript/#babel)\n- Host using a Node version prior to 12.17.0 may have troubles finding the right module system as they do not recognise the `exports` key in the `package.json`. As Node 12.x has reached EOL in April 2022, I decided this is a non-issue even if easily fixable.\n","readmeFilename":"README.md"}