{"_id":"gluegun-print","_rev":"6-5c6f0acd8ea8caee3e87c90a9463e53f","name":"gluegun-print","dist-tags":{"latest":"1.0.1"},"versions":{"0.1.0":{"name":"gluegun-print","version":"0.1.0","description":"Simple Gluegun Print Toolbox export","license":"MIT","repository":{"type":"git","url":"git+https://github.com/greguintow/gluegun-print.git"},"engines":{"node":">=12"},"scripts":{"build":"tsc -p tsconfig.json","prepublish:npm":"npm run build","publish:npm":"npm publish --access public"},"keywords":["print","gluegun","toolbox","terminal","cli","echo","log","spinner","colors","table"],"devDependencies":{"@types/node":"^20.4.2","ava":"^3.15.0","nyc":"^15.1.0","tsd":"^0.14.0","typescript":"^4.5.4"},"dependencies":{"cli-table3":"^0.6.3","colors":"^1.4.0","ora":"^6.3.1"},"types":"./index.d.ts","bugs":{"url":"https://github.com/greguintow/gluegun-print/issues"},"homepage":"https://github.com/greguintow/gluegun-print#readme","_id":"gluegun-print@0.1.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-M/3MzM5Wlz51LCe/HLxHEPUtV1UqENcseVVonfGC+TKycEtuUVedJ25D6XPJjfpwtOYXe3gDVPylgUxBaL2Phw==","shasum":"d3a21de9ecda392095cf92fa0633a815acad4891","tarball":"https://registry.npmjs.org/gluegun-print/-/gluegun-print-0.1.0.tgz","fileCount":5,"unpackedSize":21800,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE6+Y/kl0dWdqvLk1M8m77c3qtgPeRrV+CSEh4Mev5y9AiBzJjl5cFGZZB7hAsA7Y2GHJXe0wHO5o85jktTWBGr5aQ=="}]},"_npmUser":{"name":"greguintow","email":"thunderdance6@gmail.com"},"directories":{},"maintainers":[{"name":"greguintow","email":"thunderdance6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gluegun-print_0.1.0_1689962685116_0.6954957999882359"},"_hasShrinkwrap":false},"0.1.1":{"name":"gluegun-print","version":"0.1.1","description":"Simple Gluegun Print Toolbox export","license":"MIT","repository":{"type":"git","url":"git+https://github.com/greguintow/gluegun-print.git"},"engines":{"node":">=12"},"scripts":{"build":"tsc -p tsconfig.json","prepublish:npm":"npm run build","publish:npm":"npm publish --access public"},"keywords":["print","gluegun","toolbox","terminal","cli","echo","log","spinner","colors","table"],"devDependencies":{"@types/node":"^20.4.2","ava":"^3.15.0","nyc":"^15.1.0","tsd":"^0.14.0","typescript":"^4.5.4"},"dependencies":{"cli-table3":"^0.6.3","colors":"^1.4.0","ora":"^6.3.1"},"types":"./index.d.ts","bugs":{"url":"https://github.com/greguintow/gluegun-print/issues"},"homepage":"https://github.com/greguintow/gluegun-print#readme","_id":"gluegun-print@0.1.1","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-E7yW9nAvpWBauKjH91r2p5gTXmV+4ZwkPp+48ZEA2mmB7rgfgq+MctN3/2Dg3q7d2wLtXGJvR4N87WjZFZ9Vww==","shasum":"c819734fd48722a18b25eb2168ac3b29c730a01a","tarball":"https://registry.npmjs.org/gluegun-print/-/gluegun-print-0.1.1.tgz","fileCount":5,"unpackedSize":21833,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClFIdSYJ6KjWKSc0HijFGfMSnQ1pqHWNmG1ui2stneAwIgFVUXj9SZJB61RpEE7lNlc1Y6yfW2fVvClg0/Az0utCQ="}]},"_npmUser":{"name":"greguintow","email":"thunderdance6@gmail.com"},"directories":{},"maintainers":[{"name":"greguintow","email":"thunderdance6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gluegun-print_0.1.1_1689963162494_0.023313133022902166"},"_hasShrinkwrap":false},"0.1.2":{"name":"gluegun-print","version":"0.1.2","description":"Simple Gluegun Print Toolbox export","license":"MIT","repository":{"type":"git","url":"git+https://github.com/greguintow/gluegun-print.git"},"engines":{"node":">=12"},"scripts":{"build":"tsc -p tsconfig.json","prepublish:npm":"npm run build","publish:npm":"npm publish --access public"},"keywords":["print","gluegun","toolbox","terminal","cli","echo","log","spinner","colors","table"],"devDependencies":{"@types/node":"^20.4.2","typescript":"^4.5.4"},"dependencies":{"chalk":"^5.3.0","cli-table3":"^0.6.3","ora":"5.4.1"},"types":"./index.d.ts","bugs":{"url":"https://github.com/greguintow/gluegun-print/issues"},"homepage":"https://github.com/greguintow/gluegun-print#readme","_id":"gluegun-print@0.1.2","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-EbKI+lR26G0VX2li94+K5adRFvkHKHdylz7xXrQt2QLMyxx2vuXJgk7DLr5MSkYLcHpWW2EAKDsaXHqZqZZOeQ==","shasum":"74974045a606562c1a3642ff63391431ca0004b3","tarball":"https://registry.npmjs.org/gluegun-print/-/gluegun-print-0.1.2.tgz","fileCount":5,"unpackedSize":20446,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE4sO5ZtFrxmWiqK8psitrY8HnsOIGieh6QztSJYUpTKAiEAiZsE6xGm2/jhALACOvJ7xTap5OpDosCt+3q/fvLSjwg="}]},"_npmUser":{"name":"greguintow","email":"thunderdance6@gmail.com"},"directories":{},"maintainers":[{"name":"greguintow","email":"thunderdance6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gluegun-print_0.1.2_1689964304194_0.474282575991968"},"_hasShrinkwrap":false},"0.1.3":{"name":"gluegun-print","version":"0.1.3","type":"commonjs","description":"Simple Gluegun Print Toolbox export","license":"MIT","repository":{"type":"git","url":"git+https://github.com/greguintow/gluegun-print.git"},"engines":{"node":">=12"},"scripts":{"build":"tsc -p tsconfig.json","prepublish:npm":"npm run build","publish:npm":"npm publish --access public"},"keywords":["print","gluegun","toolbox","terminal","cli","echo","log","spinner","colors","table"],"devDependencies":{"@types/node":"^20.4.2","typescript":"^4.5.4"},"dependencies":{"chalk":"^5.3.0","cli-table3":"^0.6.3","ora":"5.4.1"},"types":"./index.d.ts","bugs":{"url":"https://github.com/greguintow/gluegun-print/issues"},"homepage":"https://github.com/greguintow/gluegun-print#readme","_id":"gluegun-print@0.1.3","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-Z+rW3MCmgzafrp27wKCQF12gQnyAe5L9ZmlKDzakQ3EZwZWnb/mu1tZP9nNzO5ocyH7qAhWluMfHO50+YPRqUA==","shasum":"370aa16084b57de131e934bb2448b10068290998","tarball":"https://registry.npmjs.org/gluegun-print/-/gluegun-print-0.1.3.tgz","fileCount":5,"unpackedSize":20468,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+B7C5RyN7zjC0lJd6+EiQaz3uI4F+rmf6cihkxgGEnAIgDls96UyNtBaqJo16EB8malBm/hh7WSkV9GXUvXFTcKw="}]},"_npmUser":{"name":"greguintow","email":"thunderdance6@gmail.com"},"directories":{},"maintainers":[{"name":"greguintow","email":"thunderdance6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gluegun-print_0.1.3_1689964459544_0.29742228003168414"},"_hasShrinkwrap":false},"0.1.4":{"name":"gluegun-print","version":"0.1.4","description":"Simple Gluegun Print Toolbox export","license":"MIT","repository":{"type":"git","url":"git+https://github.com/greguintow/gluegun-print.git"},"engines":{"node":">=12"},"scripts":{"build":"tsc -p tsconfig.json","prepublish:npm":"npm run build","publish:npm":"npm publish --access public"},"keywords":["print","gluegun","toolbox","terminal","cli","echo","log","spinner","colors","table"],"devDependencies":{"@types/node":"^20.4.2","typescript":"^4.5.4"},"dependencies":{"chalk":"4.1.2","cli-table3":"0.6.3","ora":"5.4.1"},"types":"./index.d.ts","bugs":{"url":"https://github.com/greguintow/gluegun-print/issues"},"homepage":"https://github.com/greguintow/gluegun-print#readme","_id":"gluegun-print@0.1.4","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-14nnFYXkMa4r+I55e7wlFTZKWtgZgJFqXbWx9NtVi/KQAoF43NWrHYkO58/D6dcOie1w1cpQk252xz/9lJWdtw==","shasum":"36e027871a38d3924afc54c4ac353744c54b6d89","tarball":"https://registry.npmjs.org/gluegun-print/-/gluegun-print-0.1.4.tgz","fileCount":5,"unpackedSize":20444,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAscy1nZU6/s+yEZ4GW/x3ckXmmDR73chBbzMsaIwuC8AiEApZ0P0SEQk8HrLTfcJfO/FJH+BvpMDN/MRDQCVkIowUQ="}]},"_npmUser":{"name":"greguintow","email":"thunderdance6@gmail.com"},"directories":{},"maintainers":[{"name":"greguintow","email":"thunderdance6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gluegun-print_0.1.4_1689964811548_0.04645532002222019"},"_hasShrinkwrap":false},"1.0.0":{"name":"gluegun-print","version":"1.0.0","description":"Simple Gluegun Print Toolbox export","license":"MIT","repository":{"type":"git","url":"git+https://github.com/greguintow/gluegun-print.git"},"engines":{"node":">=12"},"scripts":{"build":"tsc -p tsconfig.json","prepublish:npm":"npm run build","publish:npm":"npm publish --access public"},"keywords":["print","gluegun","toolbox","terminal","cli","echo","log","spinner","colors","table"],"devDependencies":{"@types/node":"^20.4.2","typescript":"^4.5.4"},"dependencies":{"chalk":"4.1.2","cli-table3":"0.6.3","ora":"5.4.1"},"types":"./index.d.ts","bugs":{"url":"https://github.com/greguintow/gluegun-print/issues"},"homepage":"https://github.com/greguintow/gluegun-print#readme","_id":"gluegun-print@1.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-BqNGi/TFhmbYOX8mIq63FFu/kTZYqKfJAZa0Q/1mRE4+/276g3bXOQMUdV8V9t/+CHOFTcL9RhIY0zuBcFpWlQ==","shasum":"b4c8286ce8f8c3845e03c3d7232e8f84412d2b4c","tarball":"https://registry.npmjs.org/gluegun-print/-/gluegun-print-1.0.0.tgz","fileCount":5,"unpackedSize":20444,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAgex5obQEKF0H9ZktHaev1iDBYUowTsWvO2NVOBaw5uAiAVJAXft2Py0p5ngQzz59hGYZO83ALgMSr6u3Jw3gH5eQ=="}]},"_npmUser":{"name":"greguintow","email":"thunderdance6@gmail.com"},"directories":{},"maintainers":[{"name":"greguintow","email":"thunderdance6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gluegun-print_1.0.0_1690216348379_0.45109624568931084"},"_hasShrinkwrap":false},"1.0.1":{"name":"gluegun-print","version":"1.0.1","description":"Simple Gluegun Print Toolbox export","license":"MIT","repository":{"type":"git","url":"git+https://github.com/greguintow/gluegun-print.git"},"engines":{"node":">=12"},"scripts":{"build":"tsc -p tsconfig.json","prepublish:npm":"npm run build","publish:npm":"npm publish --access public"},"keywords":["print","gluegun","toolbox","terminal","cli","echo","log","spinner","colors","table"],"devDependencies":{"@types/node":"^20.4.2","typescript":"^4.5.4"},"dependencies":{"chalk":"4.1.2","cli-table3":"0.6.3","ora":"5.4.1"},"types":"./index.d.ts","gitHead":"b8350c8debe4e27de3edd5d68d823a23eab8d570","bugs":{"url":"https://github.com/greguintow/gluegun-print/issues"},"homepage":"https://github.com/greguintow/gluegun-print#readme","_id":"gluegun-print@1.0.1","_nodeVersion":"18.16.0","_npmVersion":"9.6.6","dist":{"integrity":"sha512-mfPFRrqMW63y6hOg9lwbPnETgsbaj10GM0f7iJOvAveQhYJ+AYb1OkQb2z5e4IidaA1lZ2mfcGS6NosX/w1cRA==","shasum":"53daf82b05317e250a7944bb901b539e466e38f1","tarball":"https://registry.npmjs.org/gluegun-print/-/gluegun-print-1.0.1.tgz","fileCount":5,"unpackedSize":20461,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDojdLrG9Veu9I8zJkzOQoxY+43Wx8A+l+4c0A6ulAYnAIhAJbkhoml2O7owo1+igX5ufxT9yTwnt6jQ9ThppHLCZv+"}]},"_npmUser":{"name":"greguintow","email":"thunderdance6@gmail.com"},"directories":{},"maintainers":[{"name":"greguintow","email":"thunderdance6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gluegun-print_1.0.1_1693354108190_0.3878145928225196"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-21T18:04:44.966Z","0.1.0":"2023-07-21T18:04:45.267Z","modified":"2023-08-30T00:08:28.577Z","0.1.1":"2023-07-21T18:12:42.661Z","0.1.2":"2023-07-21T18:31:44.409Z","0.1.3":"2023-07-21T18:34:19.740Z","0.1.4":"2023-07-21T18:40:11.697Z","1.0.0":"2023-07-24T16:32:28.566Z","1.0.1":"2023-08-30T00:08:28.406Z"},"maintainers":[{"name":"greguintow","email":"thunderdance6@gmail.com"}],"description":"Simple Gluegun Print Toolbox export","homepage":"https://github.com/greguintow/gluegun-print#readme","keywords":["print","gluegun","toolbox","terminal","cli","echo","log","spinner","colors","table"],"repository":{"type":"git","url":"git+https://github.com/greguintow/gluegun-print.git"},"bugs":{"url":"https://github.com/greguintow/gluegun-print/issues"},"license":"MIT","readme":"# gluegun-print\n\n>Note: This is just an export from [Gluegun Print Toolbox](https://github.com/infinitered/gluegun/blob/master/src/toolbox/print-tools.ts)\n\n\nThe `gluegun-print` module provides various functions to print styled messages and tables in the console. You can use these functions to display information with different colors and formatting.\n\n- [Usage](#usage)\n  - [Installation](#installation)\n  - [Importing the Module](#importing-the-module)\n  - [Basic Example](#basic-example)\n  - [Printing a Table](#printing-a-table)\n  - [Using a Spinner](#using-a-spinner)\n  - [Debugging Messages](#debugging-messages)\n- [API](#api)\n\n\n## Usage\n\n### Installation\n\nInstall the module via npm or yarn:\n\n```bash\nnpm install gluegun-print\n\n# or\n\nyarn add gluegun-print\n```\n\n### Importing the Module\n\nTo use the `print` module in your Node.js application, import it as follows:\n\n```javascript\n// CommonJS\nconst print = require('gluegun-print')\n\n// ES modules\nimport print from 'gluegun-print'\n```\n\n### Basic Example\n\nHere's a basic example of how to use the `print` module to display different types of messages:\n\n```javascript\nimport print from 'gluegun-print'\n\nprint.info('This is an information message.');\nprint.error('This is an error message.');\nprint.warning('This is a warning message.');\nprint.success('This is a success message.');\nprint.highlight('This is a highlighted message.');\nprint.muted('This is a muted message.');\n\nprint.divider(); // Print a divider line\nprint.newline(); // Print a blank line\n```\n\n### Printing a Table\n\nThe `print.table(data, options)` function allows you to display data in a table format. The `data` parameter should be an array of arrays, where each inner array represents a row of data. The `options` parameter is optional and allows you to specify the table format and style.\n\n```javascript\nconst tableData = [\n  ['Name', 'Age', 'Country'],\n  ['John', '30', 'USA'],\n  ['Alice', '25', 'Canada'],\n  ['Bob', '28', 'UK']\n];\n\nconst tableOptions = {\n  format: 'lean', // 'markdown', 'lean', or 'default' (default: 'default')\n  style: {\n    'padding-left': 1,\n    'padding-right': 1\n  }\n};\n\nprint.table(tableData, tableOptions);\n```\n\n### Using a Spinner\n\nThe `print.spin(config)` function creates and starts a spinner using [ora](https://www.npmjs.com/package/ora). You can use it to indicate that a process is in progress.\n\n```javascript\nconst spinner = print.spin('Loading...');\nsetTimeout(() => {\n  spinner.succeed('Process completed successfully.');\n}, 3000);\n```\n\n### Debugging Messages\n\nThe `print.debug(message, title)` function is useful for printing debug messages. It adds a title to distinguish debug output.\n\n```javascript\nconst debugMessage = 'Some debug information.';\nprint.debug(debugMessage, 'DEBUG');\n```\n\n## API\n\n| Method                                 | Description                                                                                                                                  |\n| -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |\n| `newline()`                            | Print a blank line.                                                                                                                          |\n| `divider()`                            | Prints a divider line.                                                                                                                       |\n| `findWidths(cliTable)`                 | Returns an array of the column widths for the given `cliTable` data table.                                                                   |\n| `columnHeaderDivider(cliTable, style)` | Returns an array of column dividers based on column widths, considering possible paddings.                                                   |\n| `resetTablePadding(cliTable)`          | Resets the padding of a table.                                                                                                               |\n| `table(data, options)`                 | Prints an object to table format. The values will already be stringified. Accepts `options.format` (default: 'default') and `options.style`. |\n| `fancy(message)`                       | Prints text without theming.                                                                                                                 |\n| `info(message)`                        | Writes a normal information message.                                                                                                         |\n| `error(message)`                       | Writes an error message.                                                                                                                     |\n| `warning(message)`                     | Writes a warning message.                                                                                                                    |\n| `debug(message, title)`                | Writes a debug message. Accepts an optional `title` parameter.                                                                               |\n| `success(message)`                     | Writes a success message.                                                                                                                    |\n| `highlight(message)`                   | Writes a highlighted message.                                                                                                                |\n| `muted(message)`                       | Writes a muted message.                                                                                                                      |\n| `spin(config)`                         | Creates a spinner and starts it up. Accepts a configuration object or a string for the spinner text.                                         |\n| `checkmark`                            | A checkmark symbol (✔︎) as a colored string.                                                                                                  |\n| `xmark`                                | A crossmark symbol (ⅹ) as a colored string.                                                                                                  |\n","readmeFilename":"README.md"}