{"name":"char-spinner","version":"2.0.0","description":"Put a little spinner on process.stderr, as unobtrusively as possible.","main":"./dist/commonjs/index.js","devDependencies":{"prettier":"^3.7.4","tap":"^21.5.0","tshy":"^3.1.0","typedoc":"^0.28.15"},"scripts":{"preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write . --log-level warn","typedoc":"typedoc"},"repository":{"type":"git","url":"git://github.com/isaacs/char-spinner.git"},"keywords":["char","spinner"],"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"BlueOak-1.0.0","bugs":{"url":"https://github.com/isaacs/char-spinner/issues"},"homepage":"https://github.com/isaacs/char-spinner","type":"module","tshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","gitHead":"c4be9184fee57d560ac86015ff13689331c8725f","_id":"char-spinner@2.0.0","_nodeVersion":"24.4.1","_npmVersion":"11.6.3","dist":{"integrity":"sha512-/w0mjelIx/H+q3QfWIvLKKNRLXtOgglc/78nTo2NmB5A1dI+QSDZBWBr5zybbPBRL3UdNZNl7pJpFEuUauTpAA==","shasum":"112106b2b1fe6a8438a312c3b7f3fac1a465f60d","tarball":"http://registry-npm.ywwl.com/char-spinner/download/char-spinner-2.0.0.tgz","fileCount":13,"unpackedSize":20354,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCXtaRO1IMHtbZKzQl4g+GFy0DDZ4Q7GuVvRHoHsOi/+gIhAI1wqFJOSIsCAyT6sVtVvbv5aehck2P4mQaihzsqUI0h"}],"size":4563,"noattachment":false,"key":"/char-spinner/-/char-spinner-2.0.0.tgz"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"maintainers":[{"name":"isaacs","email":"i@izs.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/char-spinner_2.0.0_1767824650467_0.15392260672111968"},"_hasShrinkwrap":false,"readme":"# char-spinner\n\nPut a little spinner on process.stderr, as unobtrusively as possible.\n\n## USAGE\n\n```ts\nimport { spinner } from 'char-spinner'\n\n// All options are optional\n// even the options argument itself is optional\nconst clear = spinner(options)\n\n// the return value is the clear function\n// call it to stop the spinner\nclear()\n```\n\n## OPTIONS\n\nUsually the defaults are what you want. Mostly they're just\nconfigurable for testing purposes.\n\n- `stream` Output stream. Default=`process.stderr`\n- `tty` Only show spinner if output stream has a truish `.isTTY`. Default=`true`\n- `string` String of chars to spin. Default=`'/-\\\\|'`\n- `interval` Number of ms between frames, bigger = slower. Default=`50`\n- `cleanup` Print `'\\r \\r'` to stream on process exit. Default=`true`\n- `unref` Unreference the spinner interval so that the process can\n  exit normally. Default=`true`\n- `delay` Number of frames to \"skip over\" before printing the spinner.\n  Useful if you want to avoid showing the spinner for very fast\n  actions. Default=`2`\n- `promise` Pass in a promise or promise-returning function if\n  you want it to automatically stop spinning when the promise\n  resolves.\n\nReturns the generated interval, if one was created.\n","publish_time":1767824650630,"_cnpm_publish_time":1767824650630,"dist-tags":{"latest":"2.0.0"}}