{"_id":"aws-cli-util-logger","_rev":"2-9ec90bbae1a13ef6a065450ffb4031e0","name":"aws-cli-util-logger","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"aws-cli-util-logger","version":"1.0.0","description":"Simple logging library for use with AWS CLI utilities","main":"./lib/index.js","scripts":{"build":"tsc --project tsconfig.build.json","clean":"rm -rf ./lib/","cm":"cz","lint":"eslint ./src/ --fix","prepare":"husky install","semantic-release":"semantic-release","test:watch":"jest --watch","test":"jest --coverage","typecheck":"tsc --noEmit"},"repository":{"type":"git","url":"git+https://github.com/ryansonshine/aws-cli-util-logger.git"},"license":"MIT","author":{"name":"Ryan Sonshine","email":"ryansonshine@users.noreply.github.com","url":"https://github.com/ryansonshine"},"engines":{"node":">=12.0"},"keywords":["aws-cli","logger"],"bugs":{"url":"https://github.com/ryansonshine/aws-cli-util-logger/issues"},"homepage":"https://github.com/ryansonshine/aws-cli-util-logger#readme","devDependencies":{"@ryansonshine/commitizen":"^4.2.8","@ryansonshine/cz-conventional-changelog":"^3.3.4","@types/jest":"^27.5.2","@types/node":"^12.20.11","@typescript-eslint/eslint-plugin":"^4.22.0","@typescript-eslint/parser":"^4.22.0","conventional-changelog-conventionalcommits":"^5.0.0","eslint":"^7.25.0","eslint-config-prettier":"^8.3.0","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.4.0","husky":"^6.0.0","jest":"^27.2.0","lint-staged":"^10.5.4","prettier":"^2.2.1","semantic-release":"^19.0.2","ts-jest":"^27.0.5","ts-node":"^10.2.1","typescript":"^4.2.4"},"config":{"commitizen":{"path":"./node_modules/@ryansonshine/cz-conventional-changelog"}},"lint-staged":{"*.ts":"eslint --cache --cache-location .eslintcache --fix"},"release":{"branches":["main"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits","releaseRules":[{"type":"build","scope":"deps","release":"patch"}]}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits","presetConfig":{"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"build","section":"Dependencies and Other Build Updates","hidden":false}]}}],"@semantic-release/npm","@semantic-release/github"]},"dependencies":{"chalk":"^4.1.2"},"types":"./lib/index.d.ts","gitHead":"0969f9f9f9091fd08d766202ea4b0f40e513c759","_id":"aws-cli-util-logger@1.0.0","_nodeVersion":"18.12.0","_npmVersion":"8.12.0","dist":{"integrity":"sha512-oPmVhFUavhjCrxHMM13QERXhzU6D331aQA8oR+cLGaomt79D5N8ii4psz6WJ22LfNqTZN0kpOdxpxwM0Jp6NZw==","shasum":"1e613e50ead6145c5153c5683bf1238f2f62af7a","tarball":"https://registry.npmjs.org/aws-cli-util-logger/-/aws-cli-util-logger-1.0.0.tgz","fileCount":7,"unpackedSize":14513,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChlcTi3gCoAce36ao/SQRzMJrd6QLfPFz7ar61Lt+KoAIhAMpb9lW95JmF+Nn1O3rQOoGhlBOfOgBEyD6oADhsYmvk"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdwWxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoo+g/9FPk4FkVNn/9SLPuDsr4Z8NydADgCkUGKt7bbH/FamUVrJ2b2\r\nwpSgVTwj6riMvkQNXKCVDJ5fykzUHl4N8jlI41jaOkNZ7rS2GymEHMfX/hy7\r\nMRTO4InCi0Lm+W/91AaKGymBwVBzxyrDJ9bQDY7bH7BZlf5+qzpHPrh0L6d+\r\nCD/Bebg01F0EW4Y/gkGUEIkQvlrAj5cLMXQ/0VCP2TaixGbgZBuRScXt/EMV\r\nZ63EkF/KyncoLrsfd9EvytCqmzoL1R5jlkqbqdq5pu/ic9bAIKMRvpKP97DC\r\nAPDpadJkVFt9soXAbn4DuywVN25uPUHkmupVQbB0MPPM5bBOdqT09POWoZgb\r\ncFLNIh3J4qbtyi/A2wUrARLAD9i3BeurYVRhX+TPLb+pZU48LqOudsUvWDCS\r\nw8BndN6ZwfI3qkheH3ccItS5xEedBUbaQXAGRX/oTRQZLwGjb/CidO44XIYk\r\n+l0Bz1wRmQnGEyW5AcoKZsNnOlYAQKStE3rBnv/a3khLsrTh4AalTYj49/B2\r\nlDkd/Wp1dqeAYIw8OmHbhIlW0QfOVYlKlpz7xbGIWxuuIF/OwUEN902OizCP\r\nAN3M1CEhdW+Q5MTGQbv6JON0E0C6p7j7SrKO7m+5uf6sIwbdEhho0N3hXrcU\r\njfSXFjrEfI6NLm3n7RtsyqRFjOqwVkgiAHg=\r\n=f/q4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ryansonshine","email":"npm@ryansonshine.com"},"directories":{},"maintainers":[{"name":"ryansonshine","email":"npm@ryansonshine.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aws-cli-util-logger_1.0.0_1668744625532_0.6040876411310065"},"_hasShrinkwrap":false},"1.0.1":{"name":"aws-cli-util-logger","version":"1.0.1","description":"Simple logging library for use with AWS CLI utilities","main":"./lib/index.js","scripts":{"build":"tsc --project tsconfig.build.json","clean":"rm -rf ./lib/","cm":"cz","lint":"eslint ./src/ --fix","prepare":"husky install","semantic-release":"semantic-release","test:watch":"jest --watch","test":"jest --coverage","typecheck":"tsc --noEmit"},"repository":{"type":"git","url":"git+https://github.com/ryansonshine/aws-cli-util-logger.git"},"license":"MIT","author":{"name":"Ryan Sonshine","email":"ryansonshine@users.noreply.github.com","url":"https://github.com/ryansonshine"},"engines":{"node":">=12.0"},"keywords":["aws-cli","logger"],"bugs":{"url":"https://github.com/ryansonshine/aws-cli-util-logger/issues"},"homepage":"https://github.com/ryansonshine/aws-cli-util-logger#readme","devDependencies":{"@ryansonshine/commitizen":"^4.2.8","@ryansonshine/cz-conventional-changelog":"^3.3.4","@types/jest":"^27.5.2","@types/node":"^12.20.11","@typescript-eslint/eslint-plugin":"^4.22.0","@typescript-eslint/parser":"^4.22.0","conventional-changelog-conventionalcommits":"^5.0.0","eslint":"^7.25.0","eslint-config-prettier":"^8.3.0","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.4.0","husky":"^6.0.0","jest":"^27.2.0","lint-staged":"^10.5.4","prettier":"^2.2.1","semantic-release":"^19.0.2","ts-jest":"^27.0.5","ts-node":"^10.2.1","typescript":"^4.2.4"},"config":{"commitizen":{"path":"./node_modules/@ryansonshine/cz-conventional-changelog"}},"lint-staged":{"*.ts":"eslint --cache --cache-location .eslintcache --fix"},"release":{"branches":["main"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits","releaseRules":[{"type":"build","scope":"deps","release":"patch"}]}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits","presetConfig":{"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"build","section":"Dependencies and Other Build Updates","hidden":false}]}}],"@semantic-release/npm","@semantic-release/github"]},"dependencies":{"chalk":"^4.1.2"},"types":"./lib/index.d.ts","gitHead":"a03900131b524f6d46b2b6aeae642e6aa4798e65","_id":"aws-cli-util-logger@1.0.1","_nodeVersion":"18.12.0","_npmVersion":"8.12.0","dist":{"integrity":"sha512-KnS2q2btBDj2BnoNnaJoSpc4FNhZEJX/WwUZNSftkcxKYXjIQaT7K/vEbkbyVKdIsE+M/mNfzPmi3Po74f4ovw==","shasum":"322afc5f604884bb9b90af40e711948e4ba9fbd1","tarball":"https://registry.npmjs.org/aws-cli-util-logger/-/aws-cli-util-logger-1.0.1.tgz","fileCount":7,"unpackedSize":14684,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDD/rI49RoCK718QQA4tD3IondrHVZlLUN9RkNgEhFJcwIhAKtf3Z0OjzmbqH05tou43qE/A01cWkSZsDUoMYDApFF0"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdwgzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoO7g/9FKqs0m0TMYln1pNutq+y0CtnBjjqME5TgR91lOgZJpfK467b\r\nmQix1tU9kLk8T+pxH02AlTnAtZBoZyoqPETsxrSxhufeyM3uNgJrZ5MNZ+2o\r\njYfEvuLd2oYSfUJbZrx1codsd1gUxjmnW8lLWET1FCaz7ILndqX4BUT2rxWQ\r\nlL7vSgYMC3+Vx05RZU1QzQ84cV89fMsFI+YGqMLG0kYj/V8iMY+E1CqRtP3Z\r\n/aJ4kHVVwOkL61HLDbjREKILK0b/VUd2y7CUI0GaycfMuTIYxsENIGVE4u3l\r\nSN19vTjoFvcvrXOUxfFcaJl/AD6dGGIsfUHi7z3PtdHdLcYaXShWV0dVQmJf\r\npfE/BFuroe8ST/B9AyHyvfPsMg6een59ctIGZngWn6/vi9sDUBdShzOM4oLJ\r\n7rkbRsVSq8emAOy6puES3pJY9nboA/afB5AVszazdDzFDA5wqLu68FyfVvXY\r\nF/zEQKR/TnaY15AlnApHK5TAvEsVb8ClI9NVhVUCxIvQZAvp7JSUxBzjBeuf\r\nv6kdZGCu0WAypA2NDDj8kSCnGZplAx3rw8pMNMHHAdPwA0nDNTIFHqkffrRG\r\nbYld3CYqjh39tnehQGc/mb8iLTwQA1IqN9+JnjLFAvyNmX7naI4l6fMLgB+G\r\nvavnkI20FQcs38e/nVoKTKh/4ghWTyYu9kE=\r\n=izmJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ryansonshine","email":"npm@ryansonshine.com"},"directories":{},"maintainers":[{"name":"ryansonshine","email":"npm@ryansonshine.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aws-cli-util-logger_1.0.1_1668745267584_0.41523392529191216"},"_hasShrinkwrap":false},"1.0.2":{"name":"aws-cli-util-logger","version":"1.0.2","description":"Simple logging library for use with AWS CLI utilities","main":"./lib/index.js","scripts":{"build":"tsc --project tsconfig.build.json","clean":"rm -rf ./lib/","cm":"cz","lint":"eslint ./src/ --fix","prepare":"husky install","semantic-release":"semantic-release","test:watch":"jest --watch","test":"jest --coverage","typecheck":"tsc --noEmit"},"repository":{"type":"git","url":"git+https://github.com/ryansonshine/aws-cli-util-logger.git"},"license":"MIT","author":{"name":"Ryan Sonshine","email":"ryansonshine@users.noreply.github.com","url":"https://github.com/ryansonshine"},"engines":{"node":">=12.0"},"keywords":["aws-cli","logger"],"bugs":{"url":"https://github.com/ryansonshine/aws-cli-util-logger/issues"},"homepage":"https://github.com/ryansonshine/aws-cli-util-logger#readme","devDependencies":{"@ryansonshine/commitizen":"^4.2.8","@ryansonshine/cz-conventional-changelog":"^3.3.4","@types/jest":"^27.5.2","@types/node":"^12.20.11","@typescript-eslint/eslint-plugin":"^4.22.0","@typescript-eslint/parser":"^4.22.0","conventional-changelog-conventionalcommits":"^5.0.0","eslint":"^7.25.0","eslint-config-prettier":"^8.3.0","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.4.0","husky":"^6.0.0","jest":"^27.2.0","lint-staged":"^10.5.4","prettier":"^2.2.1","semantic-release":"^19.0.2","ts-jest":"^27.0.5","ts-node":"^10.2.1","typescript":"^4.2.4"},"config":{"commitizen":{"path":"./node_modules/@ryansonshine/cz-conventional-changelog"}},"lint-staged":{"*.ts":"eslint --cache --cache-location .eslintcache --fix"},"release":{"branches":["main"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits","releaseRules":[{"type":"build","scope":"deps","release":"patch"}]}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits","presetConfig":{"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"build","section":"Dependencies and Other Build Updates","hidden":false}]}}],"@semantic-release/npm","@semantic-release/github"]},"dependencies":{"chalk":"^4.1.2"},"types":"./lib/index.d.ts","gitHead":"1b49767fdc6d0940682dd924f385d5e15f4e7ebf","_id":"aws-cli-util-logger@1.0.2","_nodeVersion":"18.12.0","_npmVersion":"8.12.0","dist":{"integrity":"sha512-1S2voRTMDT6c2pvc6uNABJfZdDYSdrjHjSPjsrTsHwFImke0MySc/nN3ZW6gzwWuAznVo1tfbxXhxGrz+6qQLQ==","shasum":"3eba939de3450c2a2c47a386c779077b9b88f711","tarball":"https://registry.npmjs.org/aws-cli-util-logger/-/aws-cli-util-logger-1.0.2.tgz","fileCount":7,"unpackedSize":14680,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAJ1pGw/j2PjBdkvYdF2gUO+0lXGYFsYrmwcAk16gPUbAiBaxsDUiAGtM1EPlknadW9FkgC4WMRVXiawyWNlzw4Wng=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdwsGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrXsw//cw9iy3XWPG7XZ4F8v2lnIBilIsqRMIcPprUYL76ARXvyYpPo\r\n8h8iyLj0CwqJgx8P6kyrmswHnS+5FWILrg/gcIE7X/kbEtNKj/sbQN4+wLEv\r\nKn/XzHRSAxOHwtfvHaNrbN663spfjefY2PTQ7b/CjDn0LayExj1GMbdiU3Nh\r\nI0p6Q2fZFP6q13dZxCI/VPSTVzHstyeAoCBSqLE1flt1nJmuzuFGMgiOxa7W\r\nbXyhsmpR3xCzg4lYnEQi1Pwnc5vD9q5OKa4htNDLDnHq8K3CnJcJMmVpT9QV\r\nUjPaMK9/LItetCh83L0J5ur2fTOIlp7EMjIC//sdDQ6a3j4ghfuIZoRCYd5L\r\nbJ5mv4oFO+drU0W2Eqz5eM7HxBJWEoV0V9BTpVAKKMNLdbhW+0aKDYC4sp6q\r\nO8gzsjQ/A42x1VcDnCLLv0qwrUcuBFCqt+rZ4NU/CEohVKSAgMOwxfS57Ny4\r\nuJegvPXvjedTUrrC7Hm9HbY4NkIe3p9jL98iW9OJ5FYl+/XyT/LxHV2ArUiz\r\nuFmb7B5mtIsTGv5mj1kii8fnY4bT2U7i+Q1XTlHE4LodQIdrke3wnMshvRIm\r\nzNmQ+xNd8HIm65kjfSE+gJuX4Nem3xF1lptMzKe8g8kS2l88Xxu8H0US0c+K\r\nU+YuwnULR8o0WhbA4+WfOCcp0Oh2gAmONgI=\r\n=Qivo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ryansonshine","email":"npm@ryansonshine.com"},"directories":{},"maintainers":[{"name":"ryansonshine","email":"npm@ryansonshine.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aws-cli-util-logger_1.0.2_1668745989778_0.7621031928003263"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-18T04:10:25.531Z","1.0.0":"2022-11-18T04:10:25.722Z","modified":"2022-11-18T04:33:10.056Z","1.0.1":"2022-11-18T04:21:07.775Z","1.0.2":"2022-11-18T04:33:09.985Z"},"maintainers":[{"name":"ryansonshine","email":"npm@ryansonshine.com"}],"description":"Simple logging library for use with AWS CLI utilities","homepage":"https://github.com/ryansonshine/aws-cli-util-logger#readme","keywords":["aws-cli","logger"],"repository":{"type":"git","url":"git+https://github.com/ryansonshine/aws-cli-util-logger.git"},"author":{"name":"Ryan Sonshine","email":"ryansonshine@users.noreply.github.com","url":"https://github.com/ryansonshine"},"bugs":{"url":"https://github.com/ryansonshine/aws-cli-util-logger/issues"},"license":"MIT","readme":"# aws-cli-util-logger\n\n[![npm package][npm-img]][npm-url]\n[![Build Status][build-img]][build-url]\n[![Downloads][downloads-img]][downloads-url]\n[![Issues][issues-img]][issues-url]\n[![Code Coverage][codecov-img]][codecov-url]\n[![Commitizen Friendly][commitizen-img]][commitizen-url]\n[![Semantic Release][semantic-release-img]][semantic-release-url]\n\n> Lightweight logger for use in CLI utilities for AWS\n\nThis is the logger I use in my AWS related command line utils (i.e.\n[aws-sso-creds-helper][sso-creds-helper-url]).\n\n## Install\n\n```bash\nnpm install aws-cli-util-logger\n```\n\n## Usage\n\n```ts\nimport { AwsCliUtilLogger } from 'aws-cli-util-logger';\n\nconst logger = new AwsCliUtilLogger({\n  packageName: 'aws-sso-creds-helper',\n});\n\nlogger.logSystemInfo('sso');\n/*\n[aws-sso-creds-helper]: ===========\n[aws-sso-creds-helper]: SYSTEM INFO\n[aws-sso-creds-helper]: ===========\n[aws-sso-creds-helper]: AWS CLI Version aws-cli/2.7.20 Python/3.9.11 Linux/5.15.0-52-generic exe/x86_64.ubuntu.20 prompt/off\n[aws-sso-creds-helper]: OS linux 5.15.0-52-generic\n[aws-sso-creds-helper]: Node v18.12.1\n[aws-sso-creds-helper]: ==============\n[aws-sso-creds-helper]: PROFILE CONFIG\n[aws-sso-creds-helper]: ==============\n[aws-sso-creds-helper]:\n      Name                    Value             Type    Location\n      ----                    -----             ----    --------\n   profile                      sso           manual    --profile\naccess_key     ****************ZABC              sso\nsecret_key     ****************5ABC              sso\n    region                us-east-1      config-file    ~/.aws/config\n*/\n```\n\n## API\n\n### AwsCliUtilLogger(options)\n\n#### options\n\nType: `object`\n\n##### packageName\n\nType: `string`\n\nName of the npm package.\n\n##### binCommand\n\nType: `string`\n\nName of the bin command.\n\n##### verbose\n\nType: `boolean`\n\nEnables verbose logging.\n\n##### disabled\n\nType: `boolean`\n\nWhen true, disables **ALL** logging output\n\n##### debugFlag\n\nType: `string`\n\nDefault: `'--debug'`\n\nDebug flag for your CLI.\n\n### instanceof AwsCliUtilLogger\n\n#### handleError(error, debug?)\n\n##### error\n\nType: `Error`\n\nError to log and generate a stack trace for.\n\n##### debug\n\nType: `boolean`\n\nWhen false, a log message instructing the user to run the `binCommand` with\nyour `debugFlag` set for additional info.\n\n#### logSystemInfo(profile)\n\nLogs various system information including the AWS CLI version and the AWS CLI\nprofile configuration.\n\n##### profile\n\nType: `string`\n\nDefault: `'default'`\n\nThe name of the AWS profile to get system info for.\n\n#### success(...messages)\n\n#### info(...messages)\n\n#### warn(...messages)\n\n#### error(...messages)\n\n#### debug(...messages)\n\n#### log(...messages)\n\n##### messages\n\nType: `string`\n\nLog messages passed to console log methods.\n\n[build-img]:https://github.com/ryansonshine/aws-cli-util-logger/actions/workflows/release.yml/badge.svg\n[build-url]:https://github.com/ryansonshine/aws-cli-util-logger/actions/workflows/release.yml\n[downloads-img]:https://img.shields.io/npm/dt/aws-cli-util-logger\n[downloads-url]:https://www.npmtrends.com/aws-cli-util-logger\n[npm-img]:https://img.shields.io/npm/v/aws-cli-util-logger\n[npm-url]:https://www.npmjs.com/package/aws-cli-util-logger\n[issues-img]:https://img.shields.io/github/issues/ryansonshine/aws-cli-util-logger\n[issues-url]:https://github.com/ryansonshine/aws-cli-util-logger/issues\n[codecov-img]:https://codecov.io/gh/ryansonshine/aws-cli-util-logger/branch/main/graph/badge.svg\n[codecov-url]:https://codecov.io/gh/ryansonshine/aws-cli-util-logger\n[semantic-release-img]:https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n[semantic-release-url]:https://github.com/semantic-release/semantic-release\n[commitizen-img]:https://img.shields.io/badge/commitizen-friendly-brightgreen.svg\n[commitizen-url]:http://commitizen.github.io/cz-cli/\n[sso-creds-helper-url]:https://github.com/ryansonshine/aws-sso-creds-helper\n","readmeFilename":"README.md"}