{"name":"specialist","version":"1.4.4","keywords":["simple","command-line","cli","app","application","tiny","fast","bundled","beautiful","easy"],"_id":"specialist@1.4.4","homepage":"https://github.com/fabiospampinato/specialist#readme","bugs":{"url":"https://github.com/fabiospampinato/specialist/issues"},"dist":{"shasum":"5f40d33c86422884e32f0f5e03179bec111e11c6","tarball":"http://registry-npm.ywwl.com/specialist/download/specialist-1.4.4.tgz","fileCount":12,"integrity":"sha512-Gs7IP9o52FrGKiuKDQ6d/03p4VVZUTkOl+W/JFlvNGhuFDoJUoITkj0Vwopf7nHUPXQM96ljtmvBNQIe2KaMMA==","signatures":[{"sig":"MEYCIQCG4fhJ75lAFHJffXyBgaFePx+lhoPCes1X6zymlbX+dQIhAOp0DgURPI03JwYoZmc6ofC91fAJ1M7lAT7JaMV750w+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6052,"size":2689,"noattachment":false,"key":"/specialist/-/specialist-1.4.4.tgz"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"0abed11f35df1ead4c621f11988e6860f2a0454b","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.4_1738517530091_0.5013192016100052","host":"s3://npm-registry-packages-npm-production"},"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":1738517530256,"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_cnpm_publish_time":1738517530256,"dist-tags":{"latest":"2.0.0"}}