{"_id":"@oslojs/cbor","_rev":"6-688b8d8fbef5ded479a9403876e3e67d","name":"@oslojs/cbor","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"@oslojs/cbor","version":"0.1.0","keywords":["auth","cbor"],"author":{"name":"pilcrowOnPaper"},"license":"MIT","_id":"@oslojs/cbor@0.1.0","maintainers":[{"name":"pilcrowonpaper","email":"pilcrowonpaper@gmail.com"}],"homepage":"https://github.com/oslo-project/cbor#readme","bugs":{"url":"https://github.com/oslo-project/cbor/issues"},"dist":{"shasum":"e030c8c11e26a32b9225bbb9029c365861a5c380","tarball":"https://registry.npmjs.org/@oslojs/cbor/-/cbor-0.1.0.tgz","fileCount":15,"integrity":"sha512-tKVBynyH2eRfcwoaSzNhpJQJiuuy6IG0TLwJEd0Rs3Y+83VqaLxhBS3Y6O25ieUGIw2flNd/yuRf9qTLUKWyjg==","signatures":[{"sig":"MEQCIGLmwz/VsL9perdesRzoTZ6P7x4/e9MuNSq+4YMMzlC2AiAiCqazUCY1FMILQIz2QdnUWO048H41nnrq74jHEpkMSw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36332},"main":"dist/index.js","type":"module","_from":"file:oslojs-cbor-0.1.0.tgz","types":"dist/index.d.ts","module":"dist/index.js","scripts":{"lint":"eslint src","test":"vitest run --sequence.concurrent","build":"rm -rf dist/* && tsc","format":"prettier -w ."},"_npmUser":{"name":"pilcrowonpaper","email":"pilcrowonpaper@gmail.com"},"_resolved":"/private/var/folders/qb/z2pf2nq559n552wvjqbjddww0000gn/T/2cfa32c2a8b8dd1bf3790a3083dcf28c/oslojs-cbor-0.1.0.tgz","_integrity":"sha512-tKVBynyH2eRfcwoaSzNhpJQJiuuy6IG0TLwJEd0Rs3Y+83VqaLxhBS3Y6O25ieUGIw2flNd/yuRf9qTLUKWyjg==","repository":{"url":"git+https://github.com/oslo-project/cbor.git","type":"git"},"_npmVersion":"10.5.0","description":"CBOR library","directories":{},"_nodeVersion":"21.7.0","dependencies":{"@oslojs/binary":"0.2.1"},"_hasShrinkwrap":false,"devDependencies":{"auri":"^2.0.0","eslint":"^8.51.0","vitest":"^0.34.6","prettier":"^3.0.3","typescript":"^5.2.2","@types/node":"^20.8.6","@oslojs/encoding":"^0.2.0","@typescript-eslint/parser":"^6.7.5","@typescript-eslint/eslint-plugin":"^6.7.5"},"_npmOperationalInternal":{"tmp":"tmp/cbor_0.1.0_1716388901167_0.03587471455109603","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.0":{"name":"@oslojs/cbor","version":"0.2.0","keywords":["auth","cbor"],"author":{"name":"pilcrowOnPaper"},"license":"MIT","_id":"@oslojs/cbor@0.2.0","maintainers":[{"name":"pilcrowonpaper","email":"pilcrowonpaper@gmail.com"}],"homepage":"https://github.com/oslo-project/cbor#readme","bugs":{"url":"https://github.com/oslo-project/cbor/issues"},"dist":{"shasum":"f73552f502a5f2fa1f3dea5ccdbc54a3f25f0fcd","tarball":"https://registry.npmjs.org/@oslojs/cbor/-/cbor-0.2.0.tgz","fileCount":13,"integrity":"sha512-f0VnTKPi5gn+zCtVnJsQr86MRiPgOweobvq60QvvZGZGPASglifsFp3DcumucsRzVPEt/KzvtUgB6RsbClywNQ==","signatures":[{"sig":"MEUCID+lw8ivFm5VGlIWV3QCyRjGy0L+I0NoB3Xu4wd1u/hLAiEAhmf8yPO6nqLKu0bGKsczMaBx89wBD+WaBdyESDLXOCk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33730},"main":"dist/index.js","type":"module","_from":"file:oslojs-cbor-0.2.0.tgz","types":"dist/index.d.ts","module":"dist/index.js","scripts":{"lint":"eslint src","test":"vitest run --sequence.concurrent","build":"rm -rf dist/* && tsc --project tsconfig.build.json","format":"prettier -w ."},"_npmUser":{"name":"pilcrowonpaper","email":"pilcrowonpaper@gmail.com"},"_resolved":"/private/var/folders/qb/z2pf2nq559n552wvjqbjddww0000gn/T/a678ea08dcc1f9ab4d464d5cceca3531/oslojs-cbor-0.2.0.tgz","_integrity":"sha512-f0VnTKPi5gn+zCtVnJsQr86MRiPgOweobvq60QvvZGZGPASglifsFp3DcumucsRzVPEt/KzvtUgB6RsbClywNQ==","repository":{"url":"git+https://github.com/oslo-project/cbor.git","type":"git"},"_npmVersion":"10.5.0","description":"CBOR library","directories":{},"_nodeVersion":"21.7.0","dependencies":{"@oslojs/binary":"0.2.1"},"_hasShrinkwrap":false,"devDependencies":{"auri":"^2.0.0","eslint":"^8.51.0","vitest":"^0.34.6","prettier":"^3.0.3","typescript":"^5.2.2","@types/node":"^20.8.6","@typescript-eslint/parser":"^6.7.5","@typescript-eslint/eslint-plugin":"^6.7.5"},"_npmOperationalInternal":{"tmp":"tmp/cbor_0.2.0_1718588452413_0.5795509463288393","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.1":{"name":"@oslojs/cbor","version":"0.2.1","keywords":["auth","cbor"],"author":{"name":"pilcrowOnPaper"},"license":"MIT","_id":"@oslojs/cbor@0.2.1","maintainers":[{"name":"pilcrowonpaper","email":"pilcrowonpaper@gmail.com"}],"homepage":"https://github.com/oslo-project/cbor#readme","bugs":{"url":"https://github.com/oslo-project/cbor/issues"},"dist":{"shasum":"d20d4a4b3d8fbf015713f2f8b57ac4bdf140d55f","tarball":"https://registry.npmjs.org/@oslojs/cbor/-/cbor-0.2.1.tgz","fileCount":13,"integrity":"sha512-4BSjxXzm2MwpFoUltjzaKJtxoOBO83pFEN4Lb5zn7ZqnqVG+d21Fe4z4NE1E3TE5Qh+/N0FsxzpfCo1FECOMBA==","signatures":[{"sig":"MEYCIQCdlKCAQiaPCcYAKaWS93Zn33JSTwSqMNF5Np+oLixZ3QIhALThzifY+mV3CZhHSkMPprhMUwQoFOY9Iwi2n8OaV5sJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33673},"main":"dist/index.js","type":"module","_from":"file:oslojs-cbor-0.2.1.tgz","types":"dist/index.d.ts","module":"dist/index.js","scripts":{"lint":"eslint src","test":"vitest run --sequence.concurrent","build":"rm -rf dist/* && tsc --project tsconfig.build.json","format":"prettier -w ."},"_npmUser":{"name":"pilcrowonpaper","email":"pilcrowonpaper@gmail.com"},"_resolved":"/private/var/folders/qb/z2pf2nq559n552wvjqbjddww0000gn/T/f1b72860f021fc7cfce336b7847502e9/oslojs-cbor-0.2.1.tgz","_integrity":"sha512-4BSjxXzm2MwpFoUltjzaKJtxoOBO83pFEN4Lb5zn7ZqnqVG+d21Fe4z4NE1E3TE5Qh+/N0FsxzpfCo1FECOMBA==","repository":{"url":"git+https://github.com/oslo-project/cbor.git","type":"git"},"_npmVersion":"10.5.0","description":"CBOR library","directories":{},"_nodeVersion":"21.7.0","dependencies":{"@oslojs/binary":"0.2.1"},"_hasShrinkwrap":false,"devDependencies":{"auri":"^2.0.0","eslint":"^8.51.0","vitest":"^0.34.6","prettier":"^3.0.3","typescript":"^5.2.2","@types/node":"^20.8.6","@typescript-eslint/parser":"^6.7.5","@typescript-eslint/eslint-plugin":"^6.7.5"},"_npmOperationalInternal":{"tmp":"tmp/cbor_0.2.1_1720181627692_0.9286410299779879","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.2":{"name":"@oslojs/cbor","version":"0.2.2","keywords":["auth","cbor"],"author":{"name":"pilcrowOnPaper"},"license":"MIT","_id":"@oslojs/cbor@0.2.2","maintainers":[{"name":"pilcrowonpaper","email":"pilcrowonpaper@gmail.com"}],"homepage":"https://github.com/oslo-project/cbor#readme","bugs":{"url":"https://github.com/oslo-project/cbor/issues"},"dist":{"shasum":"1f5eeaad0857ca6ddc8d49e9eada9de994c70762","tarball":"https://registry.npmjs.org/@oslojs/cbor/-/cbor-0.2.2.tgz","fileCount":13,"integrity":"sha512-oA+Aztf/CBFhKuxLwi27oLmaoCsL+L8MkRM+baDBel5znx4C46ENMDsJtAlfLaH1j3C33cx0votJXQ3lqsNpdQ==","signatures":[{"sig":"MEUCIFAX9mR/AKpfjrm08cu5cJ2YKiTjnciSlYhbcZbxFEI2AiEArtoP5AW+35rV+8HRJJrxv9c1SLpvsUCypFj9G/L8+K8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33601},"main":"dist/index.js","type":"module","_from":"file:oslojs-cbor-0.2.2.tgz","types":"dist/index.d.ts","module":"dist/index.js","scripts":{"lint":"eslint src","test":"vitest run --sequence.concurrent","build":"rm -rf dist/* && tsc --project tsconfig.build.json","format":"prettier -w ."},"_npmUser":{"name":"pilcrowonpaper","email":"pilcrowonpaper@gmail.com"},"_resolved":"/private/var/folders/qb/z2pf2nq559n552wvjqbjddww0000gn/T/09f4139c20f4499f5af7538b4ffb07ae/oslojs-cbor-0.2.2.tgz","_integrity":"sha512-oA+Aztf/CBFhKuxLwi27oLmaoCsL+L8MkRM+baDBel5znx4C46ENMDsJtAlfLaH1j3C33cx0votJXQ3lqsNpdQ==","repository":{"url":"git+https://github.com/oslo-project/cbor.git","type":"git"},"_npmVersion":"10.5.0","description":"CBOR library","directories":{},"_nodeVersion":"21.7.0","dependencies":{"@oslojs/binary":"0.4.0"},"_hasShrinkwrap":false,"devDependencies":{"auri":"^2.0.0","eslint":"^8.51.0","vitest":"^0.34.6","prettier":"^3.0.3","typescript":"^5.2.2","@types/node":"^20.8.6","@typescript-eslint/parser":"^6.7.5","@typescript-eslint/eslint-plugin":"^6.7.5"},"_npmOperationalInternal":{"tmp":"tmp/cbor_0.2.2_1721787771570_0.7499148560839088","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.0.0":{"name":"@oslojs/cbor","version":"1.0.0","keywords":["auth","cbor"],"author":{"name":"pilcrowOnPaper"},"license":"MIT","_id":"@oslojs/cbor@1.0.0","maintainers":[{"name":"pilcrowonpaper","email":"pilcrowonpaper@gmail.com"}],"homepage":"https://github.com/oslo-project/cbor#readme","bugs":{"url":"https://github.com/oslo-project/cbor/issues"},"dist":{"shasum":"8881731c8cdf5a5c2b93db1cd605bf663aa2f636","tarball":"https://registry.npmjs.org/@oslojs/cbor/-/cbor-1.0.0.tgz","fileCount":13,"integrity":"sha512-AY6Lknexs7n2xp8Cgey95c+975VG7XOk4UEdRdNFxHmDDbuf47OC/LAVRsl14DeTLwo8W6xr3HLFwUFmKcndTQ==","signatures":[{"sig":"MEUCIHc13txaI1d2aLw1ThIWcpH6IAKGktPXLjul74SXlAZ+AiEA6RRL6yx6YmGGkjAtnncJinB085j13jc4EuAW8ZAfUs0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33601},"main":"dist/index.js","type":"module","_from":"file:oslojs-cbor-1.0.0.tgz","types":"dist/index.d.ts","module":"dist/index.js","scripts":{"lint":"eslint src","test":"vitest run --sequence.concurrent","build":"rm -rf dist/* && tsc --project tsconfig.build.json","format":"prettier -w ."},"_npmUser":{"name":"pilcrowonpaper","email":"pilcrowonpaper@gmail.com"},"_resolved":"/private/var/folders/qb/z2pf2nq559n552wvjqbjddww0000gn/T/922c54c4de5c32d7a7af08210b7a871b/oslojs-cbor-1.0.0.tgz","_integrity":"sha512-AY6Lknexs7n2xp8Cgey95c+975VG7XOk4UEdRdNFxHmDDbuf47OC/LAVRsl14DeTLwo8W6xr3HLFwUFmKcndTQ==","repository":{"url":"git+https://github.com/oslo-project/cbor.git","type":"git"},"_npmVersion":"10.5.0","description":"CBOR library","directories":{},"_nodeVersion":"21.7.0","dependencies":{"@oslojs/binary":"1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"auri":"^2.0.0","eslint":"^8.51.0","vitest":"^0.34.6","prettier":"^3.0.3","typescript":"^5.2.2","@types/node":"^20.8.6","@typescript-eslint/parser":"^6.7.5","@typescript-eslint/eslint-plugin":"^6.7.5"},"_npmOperationalInternal":{"tmp":"tmp/cbor_1.0.0_1726710158067_0.04688398629537782","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2024-05-22T14:41:40.998Z","modified":"2026-07-29T13:05:13.976Z","0.1.0":"2024-05-22T14:41:41.295Z","0.2.0":"2024-06-17T01:40:52.562Z","0.2.1":"2024-07-05T12:13:47.861Z","0.2.2":"2024-07-24T02:22:51.711Z","1.0.0":"2024-09-19T01:42:38.214Z"},"bugs":{"url":"https://github.com/oslo-project/cbor/issues"},"author":{"name":"pilcrowOnPaper"},"license":"MIT","homepage":"https://github.com/oslo-project/cbor#readme","keywords":["auth","cbor"],"repository":{"url":"git+https://github.com/oslo-project/cbor.git","type":"git"},"description":"CBOR library","maintainers":[{"name":"pilcrowonpaper","email":"pilcrowonpaper@gmail.com"}],"readme":"# @oslojs/cbor\n\n**Documentation: https://cbor.oslojs.dev**\n\nA CBOR library for JavaScript based on [RFC 8949](https://datatracker.ietf.org/doc/html/rfc8949).\n\n- Runtime agnostic\n- No third-party dependencies\n- Fully typed\n\n```ts\nimport { decodeCBORToNativeValueNoLeftoverBytes } from \"@oslojs/cbor\";\n\nconst MAX_DEPTH = 10;\nconst encoded = new Uint8Array([\n\t0xa1, 0x67, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x65, 0x68, 0x65, 0x6c, 0x6c, 0x6f\n]);\nconst result = decodeCBORToNativeValueNoLeftoverBytes(encoded, MAX_DEPTH) as Result;\nconst message: string = result.message;\n\ninterface Result {\n\tmessage: string;\n}\n```\n\n> This package currently only supports decoding\n\n## Installation\n\n```\nnpm i @oslojs/cbor\n```\n","readmeFilename":"README.MD"}