{"_id":"@dolsem/bun-promptx","_rev":"4-a3cbf9e68281de8a44434baa12443d55","name":"@dolsem/bun-promptx","dist-tags":{"latest":"0.2.4"},"versions":{"0.2.0":{"name":"@dolsem/bun-promptx","version":"0.2.0","keywords":["bun"],"author":{"name":"Robert Soriano","email":"sorianorobertc@gmail.com"},"license":"MIT","_id":"@dolsem/bun-promptx@0.2.0","maintainers":[{"name":"dolsem","email":"dols3m@gmail.com"}],"homepage":"https://github.com/wobsoriano/bun-promptx#readme","bugs":{"url":"https://github.com/wobsoriano/bun-promptx/issues"},"dist":{"shasum":"bfa9d006e9af59066d36dca98eeae1cbe59c8c9c","tarball":"https://registry.npmjs.org/@dolsem/bun-promptx/-/bun-promptx-0.2.0.tgz","fileCount":16,"integrity":"sha512-3j8WA4Q+8MzfyHr+F5fjZQWJeSHu6pf65UgaglvsM1HbVLUlFZqMUSOpNsbd7u44l3cVAXHdeeGCCvor2CxU+A==","signatures":[{"sig":"MEUCIBphLJWdc2BdxkfeyEqUYYxAYjgEHVue9D419dEdyHH+AiEAgdEJKTGx03kiAyzqaryd2/dUtpzLGD3DwT2+RMOafX8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13417784},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"ec22cf6c2490605bd532cdcb0bcff103ba7427f6","scripts":{"build":"bun run ./build.mjs","release":"bumpp --commit --push --tag && npm publish","$prepublishOnly":"bun run build"},"_npmUser":{"name":"dolsem","email":"dols3m@gmail.com"},"repository":{"url":"git+https://github.com/wobsoriano/bun-promptx.git","type":"git"},"_npmVersion":"10.9.0","description":"bun-promptx is a terminal prompt library based on [bubbles](https://github.com/mritd/bubbles) via `bun:ffi`.","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"bumpp":"^9.2.0","bun-types":"^1.0.2","typescript":"^5.2.2","bun-plugin-dts":"^0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/bun-promptx_0.2.0_1734928949104_0.8316095374392825","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@dolsem/bun-promptx","version":"0.2.1","keywords":["bun"],"author":{"name":"Robert Soriano","email":"sorianorobertc@gmail.com"},"license":"MIT","_id":"@dolsem/bun-promptx@0.2.1","maintainers":[{"name":"dolsem","email":"dols3m@gmail.com"}],"homepage":"https://github.com/wobsoriano/bun-promptx#readme","bugs":{"url":"https://github.com/wobsoriano/bun-promptx/issues"},"dist":{"shasum":"36c72147797f161e6b2ce44159e8bdaff2c14955","tarball":"https://registry.npmjs.org/@dolsem/bun-promptx/-/bun-promptx-0.2.1.tgz","fileCount":16,"integrity":"sha512-g6ErECYmOD5uRlmZBFDjAwu8PDhI9XenyXbljHKOwS7KvR3MXC+zArBHKp7H7YZB//lg8psSom6DJh4VS3wfiQ==","signatures":[{"sig":"MEYCIQDupqCy1jr8E/tqHqNbwdM57K79Z23NX+9gJfrnyEuZvAIhAO9TTtAA5Bpo0yHPx2lgolHmj3B8ZnoP0MpGS2ND+SI3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13417784},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"ec22cf6c2490605bd532cdcb0bcff103ba7427f6","scripts":{"build":"bun run ./build.mjs","release":"bumpp --commit --push --tag && npm publish","$prepublishOnly":"bun run build"},"_npmUser":{"name":"dolsem","email":"dols3m@gmail.com"},"repository":{"url":"git+https://github.com/wobsoriano/bun-promptx.git","type":"git"},"_npmVersion":"10.9.0","description":"bun-promptx is a terminal prompt library based on [bubbles](https://github.com/mritd/bubbles) via `bun:ffi`.","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"bumpp":"^9.2.0","bun-types":"^1.0.2","typescript":"^5.2.2","bun-plugin-dts":"^0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/bun-promptx_0.2.1_1734930370000_0.9140953631144679","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@dolsem/bun-promptx","version":"0.2.2","keywords":["bun"],"author":{"name":"Robert Soriano","email":"sorianorobertc@gmail.com"},"license":"MIT","_id":"@dolsem/bun-promptx@0.2.2","maintainers":[{"name":"dolsem","email":"dols3m@gmail.com"}],"homepage":"https://github.com/wobsoriano/bun-promptx#readme","bugs":{"url":"https://github.com/wobsoriano/bun-promptx/issues"},"dist":{"shasum":"373b6cc92ab83cb7327f2258a7b5aaaf734c9046","tarball":"https://registry.npmjs.org/@dolsem/bun-promptx/-/bun-promptx-0.2.2.tgz","fileCount":16,"integrity":"sha512-6ymPHf4GtkavZfm9Mqj71i9UKgjwpDx4ELCuOcvCo2Za4wQ05o4xt7IwJ1sxFhA0cNyBWSz2tfwJ2P+Tf7zuYg==","signatures":[{"sig":"MEUCIDXqNIY4yMD7JYmdtVERzrrWquMhxMVdcGab4S/ZL0YsAiEAloPuBrxXDXnIpiU7x0LM5Mvyls8fVCK9qYz07Qj/0uw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13425410},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"ec22cf6c2490605bd532cdcb0bcff103ba7427f6","scripts":{"build":"bun run ./build.mjs","release":"bumpp --commit --push --tag && npm publish","$prepublishOnly":"bun run build"},"_npmUser":{"name":"dolsem","email":"dols3m@gmail.com"},"repository":{"url":"git+https://github.com/wobsoriano/bun-promptx.git","type":"git"},"_npmVersion":"10.9.0","description":"bun-promptx is a terminal prompt library based on [bubbles](https://github.com/mritd/bubbles) via `bun:ffi`.","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"bumpp":"^9.2.0","bun-types":"^1.0.2","typescript":"^5.2.2","bun-plugin-dts":"^0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/bun-promptx_0.2.2_1734932917895_0.34567974551658565","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@dolsem/bun-promptx","version":"0.2.3","keywords":["bun"],"author":{"name":"Robert Soriano","email":"sorianorobertc@gmail.com"},"license":"MIT","_id":"@dolsem/bun-promptx@0.2.3","maintainers":[{"name":"dolsem","email":"dols3m@gmail.com"}],"homepage":"https://github.com/wobsoriano/bun-promptx#readme","bugs":{"url":"https://github.com/wobsoriano/bun-promptx/issues"},"dist":{"shasum":"353a9a5d5709318d4c65ce45c82354608691cc4e","tarball":"https://registry.npmjs.org/@dolsem/bun-promptx/-/bun-promptx-0.2.3.tgz","fileCount":16,"integrity":"sha512-DIPMuyJT0mQk7q35oKv/3rv2icryYSTctwc3j8GveoOpJAVLn6cg4kpFxSOMOhUOzMKGrEfam2Mo2OyqKi5SCA==","signatures":[{"sig":"MEUCIC0y9bKOWk2lD/u2UdggQ8/z14FyNocwsoTp7PgrmFA1AiEAhfTVgV4+iPNpx0xwlYoLzN8dJIKwgelO2j4Akq0n4NA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13425409},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"ec22cf6c2490605bd532cdcb0bcff103ba7427f6","scripts":{"build":"bun run ./build.mjs","release":"bumpp --commit --push --tag && npm publish","$prepublishOnly":"bun run build"},"_npmUser":{"name":"dolsem","email":"dols3m@gmail.com"},"repository":{"url":"git+https://github.com/wobsoriano/bun-promptx.git","type":"git"},"_npmVersion":"10.9.0","description":"bun-promptx is a terminal prompt library based on [bubbles](https://github.com/mritd/bubbles) via `bun:ffi`.","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"bumpp":"^9.2.0","bun-types":"^1.0.2","typescript":"^5.2.2","bun-plugin-dts":"^0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/bun-promptx_0.2.3_1734933080495_0.5714723374484603","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"@dolsem/bun-promptx","version":"0.2.4","main":"dist/index.js","types":"dist/index.d.ts","description":"bun-promptx is a terminal prompt library based on [bubbles](https://github.com/mritd/bubbles) via `bun:ffi`.","scripts":{"build":"bun run ./build.mjs","release":"bumpp --commit --push --tag && npm publish","$prepublishOnly":"bun run build"},"keywords":["bun"],"license":"MIT","homepage":"https://github.com/wobsoriano/bun-promptx#readme","repository":{"type":"git","url":"git+https://github.com/wobsoriano/bun-promptx.git"},"bugs":{"url":"https://github.com/wobsoriano/bun-promptx/issues"},"author":{"name":"Robert Soriano","email":"sorianorobertc@gmail.com"},"devDependencies":{"bumpp":"^9.2.0","bun-plugin-dts":"^0.2.0","bun-types":"^1.0.2","typescript":"^5.2.2"},"_id":"@dolsem/bun-promptx@0.2.4","gitHead":"ec22cf6c2490605bd532cdcb0bcff103ba7427f6","_nodeVersion":"22.11.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-HhWObLNEDvQJ8Vqy6wpUdvLz25v9ltt8anoLbqVM3lw1i1wcmrNi30WGAKBK2S8tNsIQC5T/fCpvc9gAQNfIEg==","shasum":"b111f90778b389038795cd38d0f685f1f8c49c0c","tarball":"https://registry.npmjs.org/@dolsem/bun-promptx/-/bun-promptx-0.2.4.tgz","fileCount":16,"unpackedSize":13417794,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIElZNOgnvZSHSww5tVbYzK8eFkrGCkE67lxvszkYIuHNAiAfz6gId9QO4h0x0nROdmmXJD6x4u79Q296BererR7GdQ=="}]},"_npmUser":{"name":"dolsem","email":"dols3m@gmail.com"},"directories":{},"maintainers":[{"name":"dolsem","email":"dols3m@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bun-promptx_0.2.4_1734934753812_0.5293914337845249"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-23T04:42:28.987Z","modified":"2024-12-23T06:19:14.222Z","0.2.0":"2024-12-23T04:42:29.370Z","0.2.1":"2024-12-23T05:06:10.290Z","0.2.2":"2024-12-23T05:48:38.221Z","0.2.3":"2024-12-23T05:51:20.781Z","0.2.4":"2024-12-23T06:19:14.075Z"},"bugs":{"url":"https://github.com/wobsoriano/bun-promptx/issues"},"author":{"name":"Robert Soriano","email":"sorianorobertc@gmail.com"},"license":"MIT","homepage":"https://github.com/wobsoriano/bun-promptx#readme","keywords":["bun"],"repository":{"type":"git","url":"git+https://github.com/wobsoriano/bun-promptx.git"},"description":"bun-promptx is a terminal prompt library based on [bubbles](https://github.com/mritd/bubbles) via `bun:ffi`.","maintainers":[{"name":"dolsem","email":"dols3m@gmail.com"}],"readme":"# bun-promptx\r\n\r\nbun-promptx is a terminal prompt library based on [bubbles](https://github.com/mritd/bubbles) via `bun:ffi`.\r\n\r\n## Install\r\n\r\n```bash\r\nbun add bun-promptx\r\n```\r\n\r\n## Usage\r\n\r\n### createSelection\r\n\r\nThe `createSelection` function lets you create a terminal single-selection list prompt. It provides the functions of page up and down and key movement, and supports custom rendering methods.\r\n\r\n```js\r\nimport { createSelection } from 'bun-promptx'\r\n\r\nconst result = createSelection([\r\n  { text: 'feat', description: 'Introducing new features' },\r\n  { text: 'fix', description: 'Bug fix' },\r\n  { text: 'docs', description: 'Writing docs' },\r\n  { text: 'style', description: 'Improving structure/format of the code' },\r\n  { text: 'refactor', description: 'Refactoring code' },\r\n  { text: 'test', description: 'Refactoring code' },\r\n  { text: 'chore', description: 'When adding missing tests' },\r\n  { text: 'perf', description: 'Improving performance' }\r\n], {\r\n  headerText: 'Select Commit Type: ',\r\n  perPage: 5,\r\n  footerText: 'Footer here'\r\n})\r\n\r\nconsole.log(result)\r\n// { selectedIndex: 2, error: null }\r\n```\r\n\r\n<img src=\"https://i.imgur.com/yE0qKyA.gif\" alt=\"promptx demo\" width=\"500\" />\r\n\r\n### createPrompt\r\n\r\nThe `createPrompt` function is a terminal input prompt library. It provides CJK character support and standard terminal shortcut keys (such as ctrl+a, ctrl+e), password input echo and other functions.\r\n\r\n```js\r\nimport { createPrompt } from 'bun-promptx'\r\n\r\nconst username = createPrompt(\"Enter username: \")\r\n// { value: \"wobsoriano\", error: null }\r\n\r\nconst password = createPrompt(\"Enter password: \", {\r\n  echoMode: 'password'\r\n})\r\n// { value: \"123456\", error: null }\r\n```\r\n\r\n<img src=\"https://i.imgur.com/wx6BTUm.gif\" alt=\"promptx demo\" width=\"500\" />\r\n\r\n## License\r\n\r\nMIT\r\n","readmeFilename":"README.md"}