{"name":"specialist","version":"1.4.3","keywords":["simple","command-line","cli","app","application","tiny","fast","bundled","beautiful","easy"],"_id":"specialist@1.4.3","homepage":"https://github.com/fabiospampinato/specialist#readme","bugs":{"url":"https://github.com/fabiospampinato/specialist/issues"},"dist":{"shasum":"be17fe80831ab27664778e58719d9ae00dd17da0","tarball":"http://registry-npm.ywwl.com/specialist/download/specialist-1.4.3.tgz","fileCount":12,"integrity":"sha512-ztiZ0Bug/psCCsIg3OW6d/GbeWs8z/qaVbnr6bz1MJAhDqh8bIDQobWQ16Fz8foXbBhAjIWanlXe6gLkMM/ClA==","signatures":[{"sig":"MEYCIQCIrKbVsp1J23fXKo58uXJzZ/3c4l19KF9UY7VzItuZvQIhAJ/w9W5CyJCV4R9lKEB9DmDvm9VMMN1FufgqO5t/V2as","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5817,"size":2624,"noattachment":false,"key":"/specialist/-/specialist-1.4.3.tgz"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"9be31d37fea67be303c17f19c41d5230d712161d","scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","prepublishOnly":"tsex prepare"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/specialist.git","type":"git"},"_npmVersion":"10.2.3","description":"A library that helps you write tiny, fast and beautiful CLI apps that can automatically check for updates.","directories":{},"sideEffects":false,"_nodeVersion":"18.19.0","dependencies":{"tiny-bin":"^1.10.2","tiny-colors":"^2.2.1","tiny-updater":"^3.5.2","tiny-parse-argv":"^2.8.0"},"_hasShrinkwrap":false,"devDependencies":{"tsex":"^3.0.0","typescript":"^5.1.6","@types/node":"^20.4.6"},"_npmOperationalInternal":{"tmp":"tmp/specialist_1.4.3_1726175687497_0.044499009638736986","host":"s3://npm-registry-packages"},"readme":"# Specialist\n\nA library that helps you write tiny, fast and beautiful CLI apps that can automatically check for updates.\n\n## Install\n\n```sh\nnpm install specialist\n```\n\n## Usage\n\nThe following APIs are provided:\n\n```ts\n// It provides the \"bin\" function from \"tiny-bin\"\n// https://github.com/fabiospampinato/tiny-bin\nimport {bin} from 'specialist';\n\n// It provides the basic color functions from \"tiny-colors\"\n// https://github.com/fabiospampinato/tiny-colors\nimport {color} from 'specialist';\n// color.{black, red, green, yellow, blue, magenta, cyan, white, gray}\n// color.{bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite}\n// color.{dim, bold, hidden, italic, underline, strikethrough, reset}\n\n// It provides a basic \"exit\" function, for exiting with visual consistency\n// Exiting with this function will look like how \"tiny-bin\" exits\nimport {exit} from 'specialist';\n\n// It provides the \"parseArgv\" function from \"tiny-parse-argv\"\n// https://github.com/fabiospampinato/tiny-parse-argv\nimport {parseArgv} from 'specialist';\n\n// It provides the \"updater\" function from \"tiny-updater\"\n// https://github.com/fabiospampinato/tiny-updater\nimport {updater} from 'specialist';\n```\n\n## Example\n\nThe following is an example basic CLI app build with Specialist:\n\n```ts\n#!/usr/bin/env node\n\nimport {bin, color} from 'specialist';\n\nbin ( 'my-cli', 'My example cli' )\n  .command ( 'time', 'A command that tells you the time' )\n  .action ( () => {\n    console.log ( color.cyan ( new Date ().toString () ) );\n  })\n  .run ();\n```\n\n## License\n\nMIT © Fabio Spampinato\n","publish_time":1726175687704,"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_cnpm_publish_time":1726175687704,"dist-tags":{"latest":"2.0.0"}}