{"_id":"@ao-framework/writer","_rev":"1-8da94f46b41e375e617363acb398b07c","name":"@ao-framework/writer","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@ao-framework/writer","version":"0.0.1","description":"The writer is a library that was created to assist in developing multi-line strings for such things as code generation, documentation and error handling with custom templates.","main":"dist/src/index","types":"dist/src/index.d.ts","scripts":{"test":"jest","dev":"tsc --watch","build":"tsc","doc":"typedoc --out docs src --theme markdown"},"author":{"name":"Josh Miller"},"license":"MIT","devDependencies":{"@types/jest":"^22.2.0","@types/node":"^10.12.12","jest":"^22.4.2","typedoc":"^0.14.2","typedoc-plugin-markdown":"^1.1.27","typescript":"^2.7.2"},"jest":{"testEnvironment":"node","collectCoverage":true,"collectCoverageFrom":["dist/src/**/*.js","!**dist/src/interfaces/**"],"verbose":true,"testURL":"http://localhost/"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/ao-framework/writer.git"},"bugs":{"url":"https://github.com/ao-framework/writer/issues"},"homepage":"https://github.com/ao-framework/writer#readme","gitHead":"fb5d4f14411039001901a03808ee158f7a3d6b91","_id":"@ao-framework/writer@0.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"josh-josh-miller","email":"wickedhillsmedia@gmail.com"},"dist":{"integrity":"sha512-Ffi/FOVECywMHIcgDqpuMoruruGcDWB7AsMSpvGK8QNowM/FzpSfqsVavlQaYfmwKvkep0TqIqoL9H/f2wSF/A==","shasum":"0d28184e9caf6dc8f7f0b7fea0c9d9e1af970de9","tarball":"https://registry.npmjs.org/@ao-framework/writer/-/writer-0.0.1.tgz","fileCount":66,"unpackedSize":34356,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcgeDUCRA9TVsSAnZWagAAsowP/38br/pSXGbtyNKyFa+I\nGGTliPDKnLi5/OIVg6ymFKD2MFyJC6U9Rk++kQXFiLZLLFlIah4MGyjL2Ias\nDHFqIJw6px6Pg81ge9xVkxX/EJGlaUUwWvpfB3052zScejw4GTIfKyPULWmU\nvxif4N1Zo2dy38dAW0xUFm2tWj0XgktOXlMa5FKWRiqUpqS3sDhhx4IbqHYH\nbYgKJsp3JjfIKFeJKUGXXqB4EEufd20eM0fGcLPhGPFuXB7stiJ+g9Sfece4\nWX4Jz7U8Ja8aIn1xoy9j11n0wbIfvlQkKe/GSjiOVwPS0n3sPf+RDb4sYuiP\nQC1hXj1Y2j8Cnpzg3jcxn939iMsQzagBDAXdQcaROlBwYkGeNgMW4bpE+7Nb\nPFHwbCbZ58ZklGDIJUFOyNh4XnJmCLKCffMo7OeS0x6WyTKPuJ6EraWDQzho\nua3ok5IDzOXkNzr1BE5X8UCOn4LZEy54RE7nLG2pRGIpnoUkPjG4pTqjLfm5\nAzVtGxiBNAwU/VdOGTMVUqYYPB0qQ7dtpo8eaRHZMZeOx8dHs2C+ezgD1D9K\n7DKlHKaMSn3a7aabEML0ENy1VH0QBmLSyOvtOBEw4gbQkpMNicL9/5vkIAk9\nItGMtY7r/QC4+/4MSIzx3cEtCDsgaeDRqYSr45nWZeadL0VFQ9tmKS6BUpSB\nJyZQ\r\n=2nwH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAl7gk/PZvGFBAAgVX/Zh/72vUpwRl8rlXJQWZbz4KosAiAQ8m3lZTguAbsJq9Kj4Ko5pg4HAmaYEnT+KVpuAPAtFw=="}]},"maintainers":[{"name":"josh-josh-miller","email":"wickedhillsmedia@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/writer_0.0.1_1552015571813_0.7820126666600897"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-08T03:26:11.635Z","0.0.1":"2019-03-08T03:26:11.951Z","modified":"2022-04-04T14:28:27.608Z"},"maintainers":[{"name":"josh-josh-miller","email":"wickedhillsmedia@gmail.com"}],"description":"The writer is a library that was created to assist in developing multi-line strings for such things as code generation, documentation and error handling with custom templates.","homepage":"https://github.com/ao-framework/writer#readme","repository":{"type":"git","url":"git+https://github.com/ao-framework/writer.git"},"author":{"name":"Josh Miller"},"bugs":{"url":"https://github.com/ao-framework/writer/issues"},"license":"MIT","readme":"<p align=\"center\">\n<img width=\"150\" src=\"./assets/ao.logo.svg\"><br>\n<b>Writer</b>\n</p>\n\nThe **writer** is a library that was created to assist in developing multi-line strings for such things as code generation, documentation and error handling with custom templates.\n\nInstallation\n```bash\nnpm install @ao-framework/writer\n```\n\nImport\n```ts\nimport Writer from \"@ao-framework/writer\";\n```\nUsage\n```ts\nimport Writer from \"@ao-framework/writer\";\n\nlet str = new Writer()\n    .align(\"left\")\n    .indent(2)\n    .line(\"I should be right against edge.\")\n    .line(\"So should I.\", () => {\n        writer.line(\"I should be indented 2 spaces\", () => {\n            writer.line(\"I should be indented 4 spaces\")\n        })\n    }).getString()\n\nconsole.log(str)\n```\n\nOutputs\n```txt\nI should be right against edge.\nSo should I.\n  I should be indented 2 spaces\n    I should be indented 4 spaces\n```\n","readmeFilename":"README.md"}