{"_id":"@solana/spl-type-length-value","_rev":"19-6a72d9e8bbe174675d4b7aa8da5efa84","name":"@solana/spl-type-length-value","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@solana/spl-type-length-value","version":"0.1.0","author":{"name":"Solana Labs Maintainers","email":"maintainers@solanalabs.com"},"license":"Apache-2.0","_id":"@solana/spl-type-length-value@0.1.0","maintainers":[{"name":"2501babe","email":"hana@solana.com"},{"name":"lorisleiva","email":"loris.leiva@gmail.com"},{"name":"buffalojoec","email":"joe.caulfield@solana.com"},{"name":"ngundotra","email":"noah@gundotra.org"},{"name":"_chido","email":"yihau.chen@solana.com"},{"name":"steveluscher","email":"me+npm@steveluscher.com"},{"name":"sebastianbor","email":"sebastian_bor@hotmail.com"},{"name":"seanyoung","email":"sean@mess.org"},{"name":"mvines","email":"mvines@gmail.com"},{"name":"tyera","email":"tyera@solana.com"},{"name":"joncinque","email":"me@jonc.dev"},{"name":"ryoqun","email":"ryoqun@gmail.com"},{"name":"trent-solana","email":"trent@solana.com"},{"name":"jordansexton","email":"jordan@jordansexton.com"}],"homepage":"https://github.com/solana-labs/solana-program-library#readme","bugs":{"url":"https://github.com/solana-labs/solana-program-library/issues"},"dist":{"shasum":"b5930cf6c6d8f50c7ff2a70463728a4637a2f26b","tarball":"https://registry.npmjs.org/@solana/spl-type-length-value/-/spl-type-length-value-0.1.0.tgz","fileCount":32,"integrity":"sha512-JBMGB0oR4lPttOZ5XiUGyvylwLQjt1CPJa6qQ5oM+MBCndfjz2TKKkw0eATlLLcYmq1jBVsNlJ2cD6ns2GR7lA==","signatures":[{"sig":"MEUCIQCuOG+PbJgPVPjhWHmstkrs3a3Ra8dzF91tOl8bV3H8TQIgSJ+mNElItTidN8xB5tLRDo6U8hFb5b5JPY4u0JwQCUM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39669},"main":"./lib/cjs/index.js","type":"module","types":"./lib/types/index.d.ts","module":"./lib/esm/index.js","engines":{"node":">=16"},"exports":{"types":"./lib/types/index.d.ts","import":"./lib/esm/index.js","require":"./lib/cjs/index.js"},"gitHead":"4e99e73f53011aa636831fea57ed38cc8ce32246","scripts":{"fmt":"prettier --write '{*,**/*}.{ts,tsx,js,jsx,json}'","lint":"prettier --check '{*,**/*}.{ts,tsx,js,jsx,json}' && eslint --max-warnings 0 .","nuke":"shx rm -rf node_modules package-lock.json || true","test":"mocha test","build":"tsc --build --verbose tsconfig.all.json","clean":"shx rm -rf lib **/*.tsbuildinfo || true","watch":"tsc --build --verbose --watch tsconfig.all.json","release":"npm run clean && npm run build","lint:fix":"npm run fmt && eslint --fix .","postbuild":"shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json","reinstall":"npm run nuke && npm install"},"_npmUser":{"name":"buffalojoec","email":"joe.caulfield@solana.com"},"repository":{"url":"git+https://github.com/solana-labs/solana-program-library.git","type":"git"},"_npmVersion":"9.8.1","description":"SPL Type Length Value Library","directories":{},"sideEffects":false,"_nodeVersion":"20.6.0","dependencies":{"buffer":"^6.0.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","chai":"^4.3.10","mocha":"^10.1.0","eslint":"^8.51.0","ts-node":"^10.9.1","gh-pages":"^6.0.0","prettier":"^3.0.0","typescript":"^5.0.4","@types/chai":"^4.3.8","@types/mocha":"^10.0.2","chai-as-promised":"^7.1.1","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","@typescript-eslint/parser":"^6.8.0","@typescript-eslint/eslint-plugin":"^6.8.0","eslint-plugin-require-extensions":"^0.1.1"},"_npmOperationalInternal":{"tmp":"tmp/spl-type-length-value_0.1.0_1697622559337_0.23135197132768925","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@solana/spl-type-length-value","version":"0.2.0","author":{"name":"Solana Labs Maintainers","email":"maintainers@solanalabs.com"},"license":"Apache-2.0","_id":"@solana/spl-type-length-value@0.2.0","maintainers":[{"name":"nickfrosty","email":"nick@frostbutter.com"},{"name":"mcintyre94","email":"mcintyre1994@gmail.com"},{"name":"2501babe","email":"hana@solana.com"},{"name":"lorisleiva","email":"loris.leiva@gmail.com"},{"name":"buffalojoec","email":"joe.caulfield@anza.xyz"},{"name":"ngundotra","email":"noah@gundotra.org"},{"name":"_chido","email":"yihau.chen@solana.com"},{"name":"steveluscher","email":"me+npm@steveluscher.com"},{"name":"seanyoung","email":"sean@mess.org"},{"name":"tyera","email":"tyera@solana.com"},{"name":"joncinque","email":"me@jonc.dev"},{"name":"ryoqun","email":"ryoqun@gmail.com"},{"name":"trent-solana","email":"trent@solana.com"},{"name":"jordansexton","email":"jordan@jordansexton.com"}],"homepage":"https://github.com/solana-labs/solana-program-library#readme","bugs":{"url":"https://github.com/solana-labs/solana-program-library/issues"},"dist":{"shasum":"2d73a9dd748961297ce836d351dc96721100239a","tarball":"https://registry.npmjs.org/@solana/spl-type-length-value/-/spl-type-length-value-0.2.0.tgz","fileCount":34,"integrity":"sha512-PWi0CcK4xuztJ4YvbzilF99xxRXGKJsNFYRA+3XIF0AZVl55H6EMFyUxit3FOtk9PSsmgQWIC2WChTZE5W2g0w==","signatures":[{"sig":"MEQCIAFuzWt8eMp3S0SIoTc1woHsePVH0oU1v7izR0KmylIsAiAUQztvddsMACKWQMd40OoLlyV/8EPiWcPKp285foXVaA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41309},"main":"./lib/cjs/index.js","type":"module","_from":"file:solana-spl-type-length-value-0.2.0.tgz","types":"./lib/types/index.d.ts","module":"./lib/esm/index.js","engines":{"node":">=19"},"exports":{"types":"./lib/types/index.d.ts","import":"./lib/esm/index.js","require":"./lib/cjs/index.js"},"scripts":{"docs":"shx rm -rf docs && typedoc && shx cp .nojekyll docs/","lint":"eslint --max-warnings 0 .","nuke":"shx rm -rf node_modules package-lock.json || true","test":"mocha test","build":"tsc --build --verbose tsconfig.all.json","clean":"shx rm -rf lib **/*.tsbuildinfo || true","watch":"tsc --build --verbose --watch tsconfig.all.json","deploy":"npm run deploy:docs","release":"npm run clean && npm run build","lint:fix":"eslint --fix .","postbuild":"shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json","reinstall":"npm run nuke && npm install","deploy:docs":"npm run docs && gh-pages --dest type-length-value/js --dist docs --dotfiles"},"_npmUser":{"name":"steveluscher","email":"me+npm@steveluscher.com"},"_resolved":"/tmp/6c66e51d77d916b5a63f5a4ace274beb/solana-spl-type-length-value-0.2.0.tgz","_integrity":"sha512-PWi0CcK4xuztJ4YvbzilF99xxRXGKJsNFYRA+3XIF0AZVl55H6EMFyUxit3FOtk9PSsmgQWIC2WChTZE5W2g0w==","repository":{"url":"git+https://github.com/solana-labs/solana-program-library.git","type":"git"},"_npmVersion":"10.8.2","description":"SPL Type Length Value Library","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","dependencies":{"buffer":"^6.0.3","@solana/assertions":"^2.0.0-rc.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","chai":"^5.1.1","mocha":"^10.7.3","eslint":"^8.57.0","ts-node":"^10.9.2","typedoc":"^0.26.10","gh-pages":"^6.2.0","typescript":"^5.6.3","@types/chai":"^5.0.0","@types/node":"^22.7.6","@types/mocha":"^10.0.9","@typescript-eslint/parser":"^8.4.0","@typescript-eslint/eslint-plugin":"^8.4.0","eslint-plugin-require-extensions":"^0.1.1"},"_npmOperationalInternal":{"tmp":"tmp/spl-type-length-value_0.2.0_1729182493572_0.0901386222990157","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-10-18T09:49:19.212Z","modified":"2025-06-02T16:13:22.247Z","0.1.0":"2023-10-18T09:49:19.580Z","0.2.0":"2024-10-17T16:28:13.776Z"},"bugs":{"url":"https://github.com/solana-labs/solana-program-library/issues"},"author":{"name":"Solana Labs Maintainers","email":"maintainers@solanalabs.com"},"license":"Apache-2.0","homepage":"https://github.com/solana-labs/solana-program-library#readme","repository":{"url":"git+https://github.com/solana-labs/solana-program-library.git","type":"git"},"description":"SPL Type Length Value Library","maintainers":[{"email":"npm@solana.org","name":"solana-devs"}],"readme":"# Type-Length-Value-js\n\nLibrary with utilities for working with Type-Length-Value structures in js.\n\n## Example usage\n\n```ts\nimport { TlvState, SplDiscriminator } from '@solana/spl-type-length-value';\n\nconst tlv = new TlvState(tlvData, discriminatorSize, lengthSize);\nconst discriminator = await splDiscriminate(\"<discriminator-hash-input>\", discriminatorSize);\n\nconst firstValue = tlv.firstBytes(discriminator);\n\nconst allValues = tlv.bytesRepeating(discriminator);\n\nconst firstThreeValues = tlv.bytesRepeating(discriminator, 3);\n```\n","readmeFilename":"README.md"}