{"_id":"@cristiansantana/chile-rut","_rev":"13-2d234d8ccbe14cfb466e01c634a986f8","name":"@cristiansantana/chile-rut","dist-tags":{"latest":"1.0.10"},"versions":{"1.0.1":{"name":"@cristiansantana/chile-rut","version":"1.0.1","author":{"name":"Cristián Santana","email":"hola@cristiansantana.cl"},"license":"ISC","_id":"@cristiansantana/chile-rut@1.0.1","maintainers":[{"name":"cristiansantana","email":"hola@cristiansantana.cl"}],"homepage":"https://github.com/cristiansantana/chile-rut#readme","bugs":{"url":"https://github.com/cristiansantana/chile-rut/issues"},"dist":{"shasum":"ae4e426d3d3bdf6fe0839a915c2477526e9570cf","tarball":"https://registry.npmjs.org/@cristiansantana/chile-rut/-/chile-rut-1.0.1.tgz","fileCount":18,"integrity":"sha512-yFlv1CkK6XYXLCTK0b0N8APBLaibORx0NssZOPDsWsMDC4QcoxcjRwY64ScV4e6hbsqArvhPe/AmdRj9JXyM4A==","signatures":[{"sig":"MEYCIQCvXujNyHjQdsVKEEUt5HnCnLeBbNvDE/q7WDwatmKLZgIhAIX3c7A65joDDkN8f662GdfqQ4fSDg50wWnG1chi/5c4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12068},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"80a25298bb4a24910b86b1eaf486175bc79fc96f","scripts":{"test":"npm run build && jest","build":"rimraf ./dist && npx tsc","prepublish":"npm run build"},"_npmUser":{"name":"cristiansantana","email":"hola@cristiansantana.cl"},"repository":{"url":"git+https://github.com/cristiansantana/chile-rut.git","type":"git"},"_npmVersion":"9.2.0","description":"","directories":{},"_nodeVersion":"18.12.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","rimraf":"^5.0.1","ts-jest":"^29.1.0","typescript":"^5.1.3","@types/jest":"^29.5.2","@types/node":"^20.3.1"},"_npmOperationalInternal":{"tmp":"tmp/chile-rut_1.0.1_1686773031954_0.09549319122457423","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@cristiansantana/chile-rut","version":"1.0.2","author":{"name":"Cristián Santana","email":"hola@cristiansantana.cl"},"license":"ISC","_id":"@cristiansantana/chile-rut@1.0.2","maintainers":[{"name":"cristiansantana","email":"hola@cristiansantana.cl"}],"homepage":"https://github.com/cristiansantana/chile-rut#readme","bugs":{"url":"https://github.com/cristiansantana/chile-rut/issues"},"dist":{"shasum":"dca9078d65b6ea9bcfbbf0d05300f819691dba07","tarball":"https://registry.npmjs.org/@cristiansantana/chile-rut/-/chile-rut-1.0.2.tgz","fileCount":19,"integrity":"sha512-OmEDaWd+LBBJX9PTxtBWF2LaVLZLE43mk/ikggWyZEvw1GRlQQRS/H0fXyWgVRSDq1z7pyS+BJQ0MqiThCHTaw==","signatures":[{"sig":"MEYCIQCHVgLKJiu47ihDezcqM14pT2GLdgIoOlP9MimIqpJJ4gIhAOOQiY4H5MEBXV5M4/ObYknBfQ1+kWhiJ3aXHtH8N56l","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13688},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"01e7400f45cbbab54c72f807a56956b1e36925e2","scripts":{"test":"npm run build && jest","build":"rimraf ./dist && npx tsc","prepublish":"npm run build"},"_npmUser":{"name":"cristiansantana","email":"hola@cristiansantana.cl"},"repository":{"url":"git+https://github.com/cristiansantana/chile-rut.git","type":"git"},"_npmVersion":"9.2.0","description":"Chile-Rut is a utility for working with the Chilean identification number (known as RUT or RUN).","directories":{},"_nodeVersion":"18.12.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","rimraf":"^5.0.1","ts-jest":"^29.1.0","typescript":"^5.1.3","@types/jest":"^29.5.2","@types/node":"^20.3.1"},"_npmOperationalInternal":{"tmp":"tmp/chile-rut_1.0.2_1686777128479_0.07197152034423615","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@cristiansantana/chile-rut","version":"1.0.3","keywords":["rut","chilean rut","rut chileno","chile rut","javascript","js","typescript","ts"],"author":{"name":"Cristián Santana","email":"hola@cristiansantana.cl"},"license":"ISC","_id":"@cristiansantana/chile-rut@1.0.3","maintainers":[{"name":"cristiansantana","email":"hola@cristiansantana.cl"}],"homepage":"https://github.com/cristiansantana/chile-rut#readme","bugs":{"url":"https://github.com/cristiansantana/chile-rut/issues"},"dist":{"shasum":"90ca64a924043b95b0db4de387e50ca5c9f115f1","tarball":"https://registry.npmjs.org/@cristiansantana/chile-rut/-/chile-rut-1.0.3.tgz","fileCount":20,"integrity":"sha512-tQrLveoQPNMaf5DMOdb04Uv4fCxml3ERfzFwLmwOwp4+Tm78eGL9XdZhJDVThyG02JSyD2YQRgw/xG5wOaY+cg==","signatures":[{"sig":"MEYCIQDT9YaTIvmqH2q5TN1mYCOtYrQj2UFnSIbOsMwVFN16JQIhAN3G8RS7EFg03OVLm0P2Jh4n9LsgCjQ8EMXCEg9gQfKS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16729},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">= 16.14"},"gitHead":"a33a2b36cf862a4377bce3248abdd5438cf059cf","scripts":{"test":"npm run build && jest","build":"rimraf ./dist && npx tsc","prepublish":"npm run build"},"_npmUser":{"name":"cristiansantana","email":"hola@cristiansantana.cl"},"repository":{"url":"git+https://github.com/cristiansantana/chile-rut.git","type":"git"},"_npmVersion":"9.2.0","description":"![testing status](https://github.com/cristiansantana/chile-rut/actions/workflows/testing.yml/badge.svg)","directories":{},"_nodeVersion":"18.12.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","rimraf":"^5.0.1","ts-jest":"^29.1.0","typescript":"^5.1.3","@types/jest":"^29.5.2","@types/node":"^20.3.1"},"_npmOperationalInternal":{"tmp":"tmp/chile-rut_1.0.3_1686838213249_0.3678200630848205","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@cristiansantana/chile-rut","version":"1.0.4","keywords":["rut","chilean rut","rut chileno","chile rut","javascript","js","typescript","ts"],"author":{"name":"Cristián Santana","email":"hola@cristiansantana.cl"},"license":"ISC","_id":"@cristiansantana/chile-rut@1.0.4","maintainers":[{"name":"cristiansantana","email":"hola@cristiansantana.cl"}],"homepage":"https://github.com/cristiansantana/chile-rut#readme","bugs":{"url":"https://github.com/cristiansantana/chile-rut/issues"},"dist":{"shasum":"10090db8111a66728f7f014445f6879dfa5db887","tarball":"https://registry.npmjs.org/@cristiansantana/chile-rut/-/chile-rut-1.0.4.tgz","fileCount":20,"integrity":"sha512-T0DBmn/EG4ztmgMrZ/0Ogup7OxIxGuSCpS4JlgbNR5oVX8dW9rkiXfX49CIgU6fuo7ZApE2R5YK11RDBL9iFdA==","signatures":[{"sig":"MEUCIQCRODMNl1wk0J58J/SA9oUMVWLIxuc+Iw/fsjnZ9O3jFAIgTafEqLd5/4dYDKEcW7vwe3CRvKvMQPQIHDVxUw1Jnwk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16813},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">= 16.14"},"gitHead":"2b5f7e3598f6dac88d4950c6a244ff77cea4f2b7","scripts":{"test":"npm run build && jest","build":"rimraf ./dist && npx tsc","prepublish":"npm run build"},"_npmUser":{"name":"cristiansantana","email":"hola@cristiansantana.cl"},"repository":{"url":"git+https://github.com/cristiansantana/chile-rut.git","type":"git"},"_npmVersion":"9.2.0","description":"[![Build status](https://github.com/cristiansantana/chile-rut/actions/workflows/build.yml/badge.svg)](https://github.com/cristiansantana/chile-rut/actions/workflows/build.yml?query=branch%3Amain++)","directories":{},"_nodeVersion":"18.12.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","rimraf":"^5.0.1","ts-jest":"^29.1.0","typescript":"^5.1.3","@types/jest":"^29.5.2","@types/node":"^20.3.1"},"_npmOperationalInternal":{"tmp":"tmp/chile-rut_1.0.4_1687005949285_0.37645114792044576","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@cristiansantana/chile-rut","version":"1.0.5","keywords":["rut","chilean rut","rut chileno","chile rut","javascript","js","typescript","ts"],"author":{"name":"Cristián Santana","email":"hola@cristiansantana.cl"},"license":"ISC","_id":"@cristiansantana/chile-rut@1.0.5","maintainers":[{"name":"cristiansantana","email":"hola@cristiansantana.cl"}],"homepage":"https://github.com/cristiansantana/chile-rut#readme","bugs":{"url":"https://github.com/cristiansantana/chile-rut/issues"},"dist":{"shasum":"e5cb4f9665fd8c1732d37f8d9786a4b2b4621b51","tarball":"https://registry.npmjs.org/@cristiansantana/chile-rut/-/chile-rut-1.0.5.tgz","fileCount":20,"integrity":"sha512-mSCh4TaiwXmBSsAvcrOwMP//mGv24/syuEy+pe7x1c1UG/CU3XJZDUaiDiO6gxu2MNCs2y3tNCyY3CbYgZWg7w==","signatures":[{"sig":"MEUCIQCKpYoxm/oh3bIkmbWhl/S7eqNNXU4Z//yF5yB7L27hpwIgVUAM1Sqq3rgg9a/lCFTgHx1ubs/waOM3yA3MUyAvg0Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16803},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">= 16.14"},"gitHead":"6e96fae28215fe906f40ccd6448bb42897d469e3","scripts":{"test":"npm run build && jest","build":"rimraf ./dist && npx tsc","prepublish":"npm run build"},"_npmUser":{"name":"cristiansantana","email":"hola@cristiansantana.cl"},"repository":{"url":"git+https://github.com/cristiansantana/chile-rut.git","type":"git"},"_npmVersion":"9.2.0","description":"Javascript (Typescript ready) chilean RUT toolset: Validate, generate and verify format.","directories":{},"_nodeVersion":"18.12.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","rimraf":"^5.0.1","ts-jest":"^29.1.0","typescript":"^5.1.3","@types/jest":"^29.5.2","@types/node":"^20.3.1"},"_npmOperationalInternal":{"tmp":"tmp/chile-rut_1.0.5_1687012754989_0.8830236194983654","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@cristiansantana/chile-rut","version":"1.0.6","keywords":["rut","chilean rut","rut chileno","chile rut","javascript","js","typescript","ts"],"author":{"name":"Cristián Santana","email":"hola@cristiansantana.cl"},"license":"ISC","_id":"@cristiansantana/chile-rut@1.0.6","maintainers":[{"name":"cristiansantana","email":"hola@cristiansantana.cl"}],"homepage":"https://github.com/cristiansantana/chile-rut#readme","bugs":{"url":"https://github.com/cristiansantana/chile-rut/issues"},"dist":{"shasum":"cc8bdbf9f84c21ec46e67f1fb315b9bd290e76f5","tarball":"https://registry.npmjs.org/@cristiansantana/chile-rut/-/chile-rut-1.0.6.tgz","fileCount":21,"integrity":"sha512-m6NcgVRb4GqmZuzJnoYxBF+Y//6Z+Q+uK3rYWfzKbQwi7SbAFbJuWFzyNM0wcDYpLOrHwsy8GEjOe/kQfqVSng==","signatures":[{"sig":"MEQCIFQxyV0zUCH0C9EIMOLDP2xU2V41JAcHldn7DRdxHPAEAiB2+EB4VAEeyaZXPdcKsIa5qc4J9zbMXM7ROkqFGHnjhg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18812},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">= 16.14"},"gitHead":"2e54995c9f7aff42581c2b29e09d6ddeeead50bc","scripts":{"test":"npm run build && jest","build":"rimraf ./dist && npx tsc","prepublish":"npm run build"},"_npmUser":{"name":"cristiansantana","email":"hola@cristiansantana.cl"},"repository":{"url":"git+https://github.com/cristiansantana/chile-rut.git","type":"git"},"_npmVersion":"9.2.0","description":"Javascript (Typescript ready) chilean RUT toolset: Validate, generate and verify format.","directories":{},"_nodeVersion":"18.12.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","rimraf":"^5.0.1","ts-jest":"^29.1.0","typescript":"^5.1.3","@types/jest":"^29.5.2","@types/node":"^20.3.1"},"_npmOperationalInternal":{"tmp":"tmp/chile-rut_1.0.6_1687400232313_0.04163978164648885","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"@cristiansantana/chile-rut","version":"1.0.7","keywords":["rut","chilean rut","rut chileno","chile rut","javascript","js","typescript","ts"],"author":{"name":"Cristián Santana","email":"hola@cristiansantana.cl"},"license":"ISC","_id":"@cristiansantana/chile-rut@1.0.7","maintainers":[{"name":"cristiansantana","email":"hola@cristiansantana.cl"}],"homepage":"https://github.com/cristiansantana/chile-rut#readme","bugs":{"url":"https://github.com/cristiansantana/chile-rut/issues"},"dist":{"shasum":"518ffc16e2c457afa389e2ef9a842fbde907073f","tarball":"https://registry.npmjs.org/@cristiansantana/chile-rut/-/chile-rut-1.0.7.tgz","fileCount":23,"integrity":"sha512-T5Bymm3pNTtyN/g0kwfclpjN1F3YpB471Af1UYku9LiPGX37qF5mtRYGzp07tdfORLMx6jhw7G41ZlRgs93nEg==","signatures":[{"sig":"MEUCIQDKxXV3EWtOAFY/lDynad/JHu2097y9zhaO69n/SgGLTwIgCWT80xDofES6XhcJRhLp2ZB+o1teWiPV2wCSrDBE+AY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19290},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">= 16.14"},"gitHead":"078f7f152cdf8d5f269df36d9c8bbee61e9a94cc","scripts":{"test":"npm run build && jest","build":"rimraf ./dist && npx tsc","prepublish":"npm run build"},"_npmUser":{"name":"cristiansantana","email":"hola@cristiansantana.cl"},"repository":{"url":"git+https://github.com/cristiansantana/chile-rut.git","type":"git"},"_npmVersion":"9.2.0","description":"Javascript (Typescript ready) chilean RUT toolset: Validate, generate and verify format.","directories":{},"_nodeVersion":"18.12.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","rimraf":"^5.0.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","typescript":"^5.1.3","@types/jest":"^29.5.2","@types/node":"^20.3.1"},"_npmOperationalInternal":{"tmp":"tmp/chile-rut_1.0.7_1687401248578_0.2674909645820902","host":"s3://npm-registry-packages"}},"1.0.8":{"name":"@cristiansantana/chile-rut","version":"1.0.8","keywords":["rut","chilean rut","rut chileno","chile rut","javascript","js","typescript","ts"],"author":{"name":"Cristián Santana","email":"hola@cristiansantana.cl"},"license":"ISC","_id":"@cristiansantana/chile-rut@1.0.8","maintainers":[{"name":"cristiansantana","email":"hola@cristiansantana.cl"}],"homepage":"https://github.com/cristiansantana/chile-rut#readme","bugs":{"url":"https://github.com/cristiansantana/chile-rut/issues"},"dist":{"shasum":"39917f861c108a01c6a844a20256fa88b2e82777","tarball":"https://registry.npmjs.org/@cristiansantana/chile-rut/-/chile-rut-1.0.8.tgz","fileCount":16,"integrity":"sha512-xQsz3cHy1RtvivsGwRDKLYlxKiRbWT88rl37INesofiY0M/JtPmivtEKkT0wGYxMENXXk/pMxZz0WMxkA5ajyw==","signatures":[{"sig":"MEYCIQDuFdqj8c/O16uGl7t9jRQkxUwvdZ2Gpk7tzSH6Fka1ngIhAN7iKlRCzgaJafrZbZjC0vXy1XCzwSAT2nRQQnaM4+j0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19581},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">= 16.14"},"gitHead":"4345cffd743699eacc29698fccdb014666390530","scripts":{"test":"npm run build && jest","build":"tsup","format-check":"prettier \"**/*.{js,ts,json}\" --check --config .prettierrc.json","format-write":"prettier \"**/*.{js,ts,json}\" --write --config .prettierrc.json","prepublishOnly":"npm run build"},"_npmUser":{"name":"cristiansantana","email":"hola@cristiansantana.cl"},"repository":{"url":"git+https://github.com/cristiansantana/chile-rut.git","type":"git"},"_npmVersion":"9.6.7","description":"Javascript (Typescript ready) chilean RUT toolset: Validate, generate and verify format.","directories":{},"_nodeVersion":"20.3.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","tsup":"^8.1.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","prettier":"^3.3.2","typescript":"^5.1.3","@types/jest":"^29.5.2","@types/node":"^20.3.1"},"_npmOperationalInternal":{"tmp":"tmp/chile-rut_1.0.8_1718506571729_0.8148232258680923","host":"s3://npm-registry-packages"}},"1.0.9":{"name":"@cristiansantana/chile-rut","version":"1.0.9","keywords":["rut","chilean rut","rut chileno","chile rut","javascript","js","typescript","ts"],"author":{"name":"Cristián Santana","email":"hola@cristiansantana.cl"},"license":"ISC","_id":"@cristiansantana/chile-rut@1.0.9","maintainers":[{"name":"cristiansantana","email":"hola@cristiansantana.cl"}],"homepage":"https://github.com/cristiansantana/chile-rut#readme","bugs":{"url":"https://github.com/cristiansantana/chile-rut/issues"},"dist":{"shasum":"2626938b475c3d11ae9cdd7735d4df2f4de29288","tarball":"https://registry.npmjs.org/@cristiansantana/chile-rut/-/chile-rut-1.0.9.tgz","fileCount":7,"integrity":"sha512-XwghGQbf9zBzm64NNd3qgNiqB90932MWJ0fJtvGjpGbowcf8hin4FvWxehNwixndjGn4kW8In2Am4NU56shfVQ==","signatures":[{"sig":"MEUCIQDUZ8oeNgddAQLQuDYGHBPkuvJR5UzqYBvkYzQZCd9vFgIgav/L2KcKUks6r9xE/73ArYejMG6AcMrvW9K6eSRxxL8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20974},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">= 16.14"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"8aa693460a9207fd93c6a8c12f5d4d6f145dcceb","scripts":{"test":"jest --watchman=false","build":"tsup","check":"npm run format-check && npm run type-check && npm run test-coverage && npm run build && npm run smoke-test && npm run package-check","smoke-test":"node -e \"import('./dist/index.js').then(({ getCheckDigit, validateRut }) => { if (getCheckDigit('12345678') !== '5' || !validateRut('12345678-5')) process.exit(1); })\"","type-check":"tsc --noEmit --project tsconfig.build.json","format-check":"prettier \"**/*.{js,mjs,ts,json}\" --check --config .prettierrc.json","format-write":"prettier \"**/*.{js,mjs,ts,json}\" --write --config .prettierrc.json","package-check":"node test/package-contents.mjs","test-coverage":"jest --coverage --watchman=false","prepublishOnly":"npm run check"},"_npmUser":{"name":"cristiansantana","email":"hola@cristiansantana.cl"},"overrides":{"esbuild":"0.28.2"},"repository":{"url":"git+https://github.com/cristiansantana/chile-rut.git","type":"git"},"_npmVersion":"11.17.0","description":"Javascript (Typescript ready) chilean RUT toolset: Validate, generate and verify format.","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"npm@11.17.0","devDependencies":{"jest":"^29.7.0","tsup":"8.5.1","ts-jest":"^29.4.12","ts-node":"^10.9.2","prettier":"^3.9.6","typescript":"^5.9.3","@types/jest":"^29.5.14","@types/node":"^16.18.126"},"_npmOperationalInternal":{"tmp":"tmp/chile-rut_1.0.9_1787516391763_0.025363353197941807","host":"s3://npm-registry-packages-npm-production"}},"1.0.10":{"_id":"@cristiansantana/chile-rut@1.0.10","bugs":{"url":"https://github.com/cristiansantana/chile-rut/issues"},"dist":{"shasum":"96d8eaa0862a1c7625dd0e6767284cfd4389574a","tarball":"https://registry.npmjs.org/@cristiansantana/chile-rut/-/chile-rut-1.0.10.tgz","fileCount":8,"integrity":"sha512-YzPQcjLOQuGQKVBe/6GkTqissaWuC/uaxgUi7aCzvL62xZWbsSHhz0cdAEk+UDEkx+G7xV8I3yy/NCIcrVgG1w==","signatures":[{"sig":"MEUCICiLrGjWuBES8kzcIxEdFN4NZ+X0TxO+HjgPMDSg67+2AiEAzK5SdO/mW4adsWgzNyEBhKZS0De9hcE3AgjOD7vTOt0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBQjupThMRFzAVO+NIGkS84ieYB0mwhtMUveF4P32cDBAiAT/DzyMLToh5d25xqRZOUUUvoZqu5pGoWEQf8sdrBxSw=="}],"unpackedSize":28635},"main":"dist/index.js","name":"@cristiansantana/chile-rut","type":"module","types":"dist/index.d.ts","author":{"name":"Cristián Santana","email":"hola@cristiansantana.cl"},"engines":{"node":">= 16.14"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"5ff5a03de03a659df154b5cbc4babafe736802f1","license":"ISC","scripts":{"test":"jest --watchman=false","build":"tsup","check":"npm run format-check && npm run type-check && npm run test-coverage && npm run build && npm run smoke-test && npm run package-check","smoke-test":"node -e \"import('./dist/index.js').then(({ getCheckDigit, validateRut }) => { if (getCheckDigit('12345678') !== '5' || !validateRut('12345678-5')) process.exit(1); })\"","type-check":"tsc --noEmit --project tsconfig.build.json","format-check":"prettier \"**/*.{js,mjs,ts,json}\" --check --config .prettierrc.json","format-write":"prettier \"**/*.{js,mjs,ts,json}\" --write --config .prettierrc.json","package-check":"node test/package-contents.mjs","test-coverage":"jest --coverage --watchman=false","prepublishOnly":"npm run check"},"version":"1.0.10","_npmUser":{"name":"cristiansantana","email":"hola@cristiansantana.cl"},"homepage":"https://github.com/cristiansantana/chile-rut#readme","keywords":["rut","chilean rut","rut chileno","chile rut","javascript","js","typescript","ts"],"overrides":{"esbuild":"0.28.2"},"repository":{"url":"git+https://github.com/cristiansantana/chile-rut.git","type":"git"},"_npmVersion":"11.17.0","description":"Javascript (Typescript ready) chilean RUT toolset: Validate, generate and verify format.","directories":{},"maintainers":[{"name":"cristiansantana","email":"hola@cristiansantana.cl"}],"sideEffects":false,"_nodeVersion":"24.19.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"npm@11.17.0","devDependencies":{"jest":"^30.5.1","tsup":"8.5.1","ts-jest":"^29.4.12","ts-node":"^10.9.2","prettier":"^3.9.6","typescript":"^5.9.3","@types/jest":"^30.0.0","@types/node":"^26.4.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/chile-rut_1.0.10_1789979890914_0.13835359635735545"}}},"time":{"created":"2023-06-14T20:03:51.834Z","modified":"2026-09-21T08:38:11.146Z","1.0.0":"2023-06-13T02:04:52.133Z","1.0.1":"2023-06-14T20:03:52.195Z","1.0.2":"2023-06-14T21:12:08.766Z","1.0.3":"2023-06-15T14:10:13.424Z","1.0.4":"2023-06-17T12:45:49.543Z","1.0.5":"2023-06-17T14:39:15.141Z","1.0.6":"2023-06-22T02:17:12.526Z","1.0.7":"2023-06-22T02:34:08.767Z","1.0.8":"2024-06-16T02:56:11.934Z","1.0.9":"2026-08-23T20:19:51.905Z","1.0.10":"2026-09-21T08:38:10.999Z"},"bugs":{"url":"https://github.com/cristiansantana/chile-rut/issues"},"author":{"name":"Cristián Santana","email":"hola@cristiansantana.cl"},"license":"ISC","homepage":"https://github.com/cristiansantana/chile-rut#readme","keywords":["rut","chilean rut","rut chileno","chile rut","javascript","js","typescript","ts"],"repository":{"url":"git+https://github.com/cristiansantana/chile-rut.git","type":"git"},"description":"Javascript (Typescript ready) chilean RUT toolset: Validate, generate and verify format.","maintainers":[{"name":"cristiansantana","email":"hola@cristiansantana.cl"}],"readme":"# Chile-Rut\n\n[English](./README.md) | [Español](./README.es.md)\n\n[![Build main](https://img.shields.io/github/actions/workflow/status/cristiansantana/chile-rut/build.yml?branch=main&event=push&label=build%20main&logo=github)](https://github.com/cristiansantana/chile-rut/actions/workflows/build.yml?query=branch%3Amain)\n[![Node.js](https://img.shields.io/node/v/@cristiansantana/chile-rut?logo=node.js&label=Node.js)](https://www.npmjs.com/package/@cristiansantana/chile-rut)\n[![Environment](https://img.shields.io/badge/environment-Browser%20%2B%20Node.js-2ea44f?logo=javascript)](#compatibility)\n\nChile-Rut is an ESM JavaScript package with TypeScript declarations for working with the Chilean identification number known as RUT or RUN.\n\nIt validates syntax and modulo-11 check digits. It does **not** verify whether a RUT has been legally issued or currently exists.\n\n## Compatibility\n\nChile-Rut works in both modern browsers and Node.js applications.\n\n| Environment | Compatibility |\n| --- | --- |\n| Modern browsers | ✅ |\n| Node.js 26.x | ✅ |\n| Node.js 24.x | ✅ |\n| Node.js 22.x | ✅ |\n| Node.js 20.x | ✅ |\n| Node.js 18.x | ✅ |\n| Node.js 16.14+ | ✅ |\n\nFor new production applications, use a currently supported Node.js release.\n\n## Requirements\n\n- Node.js 16.14 or newer.\n- An environment that supports ECMAScript modules (ESM).\n\n## Installation\n\n```sh\nnpm install @cristiansantana/chile-rut\n```\n\n## Usage\n\n```js\nimport { getCheckDigit, validateRut } from \"@cristiansantana/chile-rut\";\n```\n\nThe package root is the only public entry point. Imports from internal `src` or `dist` paths are not supported.\n\n### Validate a RUT\n\nPass the complete RUT, including the hyphen and check digit, to `validateRut`. It returns a boolean and does not throw for malformed input.\n\n```js\nvalidateRut(\"12.345.678-5\"); // true\nvalidateRut(\"12345678-5\"); // true\nvalidateRut(\"18.765.002-K\"); // true\n\nvalidateRut(\"12.345.678-6\"); // false: incorrect check digit\nvalidateRut(\"12 345 678-5\"); // false: unsupported format\n```\n\nValidation confirms that the syntax and modulo-11 check digit are correct. It does not confirm that the RUT has been legally issued or currently exists.\n\n### Get a check digit\n\nPass the identifier without the hyphen or check digit to `getCheckDigit`. The identifier can be written with or without grouping separators.\n\n```js\ngetCheckDigit(\"12.345.678\"); // \"5\"\ngetCheckDigit(\"12345678\"); // \"5\"\ngetCheckDigit(\"18.765.002\"); // \"K\"\n```\n\nYou can use the result to build a complete RUT:\n\n```js\nconst rutId = \"20.123.456\";\nconst checkDigit = getCheckDigit(rutId); // \"5\"\nconst rut = `${rutId}-${checkDigit}`; // \"20.123.456-5\"\n```\n\n### Edge cases\n\nAn identifier consisting only of zeros is not considered a valid RUT. Validation returns `false`, while calculating its check digit throws an `Error`.\n\n```js\nvalidateRut(\"0-0\"); // false\ngetCheckDigit(\"0\"); // throws\n```\n\n## API\n\n### `getCheckDigit(rutId)`\n\nCalculates the modulo-11 check digit for a RUT identifier and returns it as a string. It throws an `Error` when the identifier has an unsupported format or consists only of zeros.\n\n```js\ngetCheckDigit(\"12345678\"); // \"5\"\ngetCheckDigit(\"18.765.002\"); // \"K\"\ngetCheckDigit(\"19.876.543\"); // \"0\"\ngetCheckDigit(\"0\"); // throws\n```\n\n### `validateRut(rut)`\n\nReturns `true` when the complete RUT has a supported format and the correct check digit. It returns `false` for malformed RUTs, incorrect check digits and identifiers consisting only of zeros.\n\n```js\nvalidateRut(\"12345678-5\"); // true\nvalidateRut(\"18.765.002-k\"); // true\nvalidateRut(\"19.876.543-0\"); // true\nvalidateRut(\"0-0\"); // false\n```\n\n### `validateRutFormat(rut)`\n\nChecks syntax only. It does not calculate the check digit, so a value can have a valid format while not being a valid RUT.\n\n```js\nvalidateRutFormat(\"12.345.678-5\"); // true\nvalidateRutFormat(\"123456785\"); // false\nvalidateRutFormat(\"0-0\"); // true (syntactically valid)\n```\n\n### `validateRutIdFormat(rutId)`\n\nChecks whether an identifier uses a supported syntax. This is a format check only; `\"0\"` has a valid format even though `getCheckDigit(\"0\")` throws.\n\n```js\nvalidateRutIdFormat(\"12345678\"); // true\nvalidateRutIdFormat(\"12.345.678\"); // true\nvalidateRutIdFormat(\"12.345,678\"); // false\n```\n\n### `validateRutCheckDigitFormat(checkDigit)`\n\nReturns `true` for one numeric digit or the letter `K`, in either case.\n\n```js\nvalidateRutCheckDigitFormat(\"5\"); // true\nvalidateRutCheckDigitFormat(\"K\"); // true\nvalidateRutCheckDigitFormat(\"k\"); // true\nvalidateRutCheckDigitFormat(\"10\"); // false\n```\n\n## Supported formats\n\nRUT identifiers can be unseparated or grouped consistently with dots or commas. Leading zeros are accepted and removed before calculating the check digit.\n\n```text\n12345678\n12.345.678\n12,345,678\n012345678\n00.012.345.678\n```\n\nComplete RUTs use a hyphen before the check digit:\n\n```text\n12345678-5\n12.345.678-5\n12,345,678-5\n18.765.002-K\n18.765.002-k\n```\n\nMixed or incomplete grouping separators are rejected.\n\n## Development\n\nConsuming the published package requires Node.js 16.14 or newer. Developing and building the package requires Node.js 24.\n\nSelect the development version, install the locked dependencies and run the complete release check:\n\n```sh\nnvm use\nnpm ci\nnpm run check\n```\n\nIndividual commands are also available:\n\n```sh\nnpm run format-check\nnpm run type-check\nnpm test\nnpm run test-coverage\nnpm run build\nnpm run smoke-test\nnpm run package-check\n```\n\n`npm run check` also verifies the exact list of files that would be published. Before preparing a release, run `npm audit --audit-level=low`. CI builds the tarball once with Node.js 24, then installs and exercises that exact artifact, including its TypeScript declarations, on Node.js 16.14, 18, 20, 22, 24 and 26. It also imports and runs that artifact in a real headless browser. Publishing and tagging remain manual steps.\n\n## Project information\n\n- [Changelog](./CHANGELOG.md)\n- [Issue tracker](https://github.com/cristiansantana/chile-rut/issues)\n- [Source repository](https://github.com/cristiansantana/chile-rut)\n- [ISC license](./LICENSE)\n","readmeFilename":"README.md"}