{"_id":"@bemedev/valibot-addons","name":"@bemedev/valibot-addons","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@bemedev/valibot-addons","version":"0.1.0","description":"//TODO","author":{"name":"chlbri","email":"bri_lvi@icloud.com","url":"https://bemedev.vercel.app"},"repository":{"type":"git","url":"//TODO"},"license":"MIT","type":"module","main":"lib/index.js","types":"lib/index.d.ts","module":"lib/index.js","maintainers":[{"name":"bemedev","email":"bri_lvi@icloud.com"}],"contributors":[{"name":"chlbri","email":"bri_lvi@icloud.com","url":"https://bemedev.vercel.app"}],"keywords":["//TODO"],"engines":{"node":">=24"},"scripts":{"build":"pnpm run rm:lib && pnpm run rolldown","ci":"CI_START=$(date +%s) && pnpm run config:off && pnpm run lint && pnpm run test && echo \"\n✅ CI takes $(($(date +%s) - CI_START))s\n\"","ci:admin":"pnpm run rm && pnpm run upgrade:fast && pnpm run ci","config":"pnpm install","config:off":"pnpm run config --offline","config:vitest":"pnpm add -D @vitest/coverage-v8@3.2.4 @vitest/ui@3.2.4 vitest@3.2.4","_lint":"oxlint","lint:fix":"oxlint --fix","lint":"pnpm run fmt && pnpm run lint:fix","lint:watch":"onchange --await-write-finish 1500 -d 10000 -v \"**/*.ts\" -- pnpm run lint","build:watch":"onchange --await-write-finish 1500 -d 10000 -v \"**/*.ts\" -- pnpm run build","p-q":"pretty-quick","posttest":"pnpm run fmt","prepare":"husky","prepublishOnly":"","pretest":"pnpm run build && pnpm run size","fmt":"oxfmt","fmt:check":"oxfmt --check","rinit":"pnpm run rm && pnpm run config","rinit:off":"pnpm run rm && pnpm run config:off","rm":"pnpx rimraf ./node_modules ./pnpm-lock.yaml","rm:lib":"pnpx rimraf ./lib","rolldown":"rolldown -c","test:coverage":"vitest run","test":"pnpm run test:coverage","test:only":"pnpm run test:coverage --no-coverage","test:ui":"vitest --ui","test:watch":"vitest","upgrade":"pnpm dlx @bemedev/upgrade-npm-package && pnpm run config:vitest","size":"size-limit","upgrade:fast":"pnpm up --latest && pnpm run config:vitest"},"size-limit":[{"path":"lib/*.js","limit":"10 KB"},{"path":"lib/*.cjs","limit":"10 KB"}],"devDependencies":{"@bemedev/dev-utils":"^0.3.2","@size-limit/file":"^12.0.1","@types/node":"^25.5.0","@vitest/coverage-v8":"^3.2.4","@vitest/ui":"3.2.4","glob":"^13.0.6","globals":"^17.4.0","husky":"^9.1.7","onchange":"^7.1.0","oxfmt":"^0.43.0","oxlint":"^1.58.0","prettier":"^3.8.1","pretty-quick":"^4.2.2","rolldown":"1.0.0-rc.12","size-limit":"^12.0.1","tslib":"^2.8.1","typescript":"^6.0.2","valibot":"^1.3.1","vitest":"^3.2.4"},"peerDependencies":{"valibot":"^1.3.1"},"gitHead":"754df1e7b1b6c09bb4cc1dcf091e174f3f52716b","_id":"@bemedev/valibot-addons@0.1.0","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-/aJRxwwQLTXgA5kVgnpZqZiprC1xXd79yOP9U3qOZiphZim9YdxrIbxX+v+lQ8x35RzIa+vXmq1dug5B/0SpoQ==","shasum":"073e520a2915021a63ce63f3555ee07647d1f86d","tarball":"https://registry.npmjs.org/@bemedev/valibot-addons/-/valibot-addons-0.1.0.tgz","fileCount":40,"unpackedSize":91587,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD8f25662XWU3rqIpr9WS0J4xXStqVfVf/GgkC57XdQ3gIhAIcwLcWAcdHNFTKOCoRIvi1jBBiw9VpiD485Fpnd6QyG"}]},"_npmUser":{"name":"bemedev","email":"bri_lvi@icloud.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/valibot-addons_0.1.0_1774982466481_0.5353192695641433"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-31T18:41:06.348Z","0.1.0":"2026-03-31T18:41:06.718Z","modified":"2026-03-31T18:41:07.030Z"},"maintainers":[{"name":"bemedev","email":"bri_lvi@icloud.com"}],"description":"//TODO","keywords":["//TODO"],"repository":{"type":"git","url":"//TODO"},"contributors":[{"name":"chlbri","email":"bri_lvi@icloud.com","url":"https://bemedev.vercel.app"}],"author":{"name":"chlbri","email":"bri_lvi@icloud.com","url":"https://bemedev.vercel.app"},"license":"MIT","readme":"# @bemedev/valibot-addons\n\nValibot schema utilities — sync, safe, strict, tuple and async parse variants from a single `create()` call.\n\n<br/>\n\n## Installation\n\n```bash\npnpm add @bemedev/valibot-addons valibot\n```\n\n<br/>\n\n## Usage\n\n### `create(schema)`\n\nWraps a Valibot schema and returns a function with multiple parse\nvariants:\n\n```ts\nimport * as v from 'valibot';\nimport { create } from '@bemedev/valibot-addons';\n\nconst parseString = create(v.string());\n\n// Sync — throws on invalid input\nparseString('hello'); // => 'hello'\n\n// .input — identity (pass-through, typed)\nparseString.input('hello'); // => 'hello'\n\n// .safe — never throws, returns SafeParseResult\nparseString.safe('hello'); // => { success: true, output: 'hello' }\nparseString.safe(42);      // => { success: false, issues: [...] }\n\n// .strict — same as sync but accepts unknown input type\nparseString.strict('hello'); // => 'hello'\n\n// .typed — alias of sync with explicit typed signature\nparseString.typed('hello'); // => 'hello'\n\n// .tuple — parse multiple values at once\nparseString.tuple('hello', 'world'); // => ['hello', 'world']\nparseString.tuple.withConfig({ abortEarly: true }, 'hello'); // => ['hello']\n\n// .async — async variants mirroring all sync methods\nawait parseString.async('hello');                        // => 'hello'\nawait parseString.async.safe('hello');                   // => { success: true, … }\nawait parseString.async.strict('hello');                 // => 'hello'\nawait parseString.async.typed('hello');                  // => 'hello'\nconst [a, b] = parseString.async.tuple('hello', 'world');\nawait a; // => 'hello'\nawait b; // => 'world'\nparseString.async.tuple.withConfig({}, 'hello', 'world');\n```\n\n<br/>\n\n## Licence\n\nMIT\n\n## CHANGE_LOG\n\nRead [CHANGE_LOG.md](CHANGE_LOG.md) for more details about the changes.\n\n<br/>\n\n## Auteur\n\nchlbri (bri_lvi@icloud.com)\n\n[My github](https://github.com/chlbri?tab=repositories)\n\n[<svg width=\"98\" height=\"96\" xmlns=\"http://www.w3.org/2000/svg\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z\" fill=\"#24292f\"/></svg>](https://github.com/chlbri?tab=repositories)\n\n<br/>\n\n## Liens\n\n- [Documentation](https://github.com/chlbri/new-package)\n","readmeFilename":"README.md","_rev":"1-eabbc8139f459d48b14d249bc0fa3012"}