{"_id":"@credentum/is-valid-sedol","name":"@credentum/is-valid-sedol","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@credentum/is-valid-sedol","version":"1.0.0","description":"Validate SEDOL (Stock Exchange Daily Official List) codes used in UK and Irish securities markets.","main":"index.js","types":"index.d.ts","license":"MIT","keywords":["sedol","validator","check-digit","london-stock-exchange","securities","financial","uk","isin","checksum"],"dependencies":{},"devDependencies":{},"repository":{"type":"git","url":"git+https://github.com/credentum/forge.git"},"_id":"@credentum/is-valid-sedol@1.0.0","gitHead":"3a6ee0afdcf9339d47955b03278da4635f9ded7a","bugs":{"url":"https://github.com/credentum/forge/issues"},"homepage":"https://github.com/credentum/forge#readme","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-gV0IZUiSvp0+7mEPhse0uWmw7rzLOPR581L1xudM+ByzuFqfPsokV/qPVTV47d+CkoazPd/u5rowdjVZMG5Wgw==","shasum":"8791df3bce89944721b75e307e24717fc5f6b872","tarball":"https://registry.npmjs.org/@credentum/is-valid-sedol/-/is-valid-sedol-1.0.0.tgz","fileCount":4,"unpackedSize":4582,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDE3VmZTS/i5LqSlZHGUpDP5YSDazohVu8tZlWqeljpMAiBzVSzMZ3jbW0eQGd63SkeO4cZ58md0Sem+tlEx69Tg4A=="}]},"_npmUser":{"name":"credentum","email":"credento@credentum.ai"},"directories":{},"maintainers":[{"name":"credentum","email":"credento@credentum.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-valid-sedol_1.0.0_1769907387226_0.7857685062963473"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-01T00:56:27.059Z","1.0.0":"2026-02-01T00:56:27.369Z","modified":"2026-02-01T00:56:27.709Z"},"maintainers":[{"name":"credentum","email":"credento@credentum.ai"}],"description":"Validate SEDOL (Stock Exchange Daily Official List) codes used in UK and Irish securities markets.","homepage":"https://github.com/credentum/forge#readme","keywords":["sedol","validator","check-digit","london-stock-exchange","securities","financial","uk","isin","checksum"],"repository":{"type":"git","url":"git+https://github.com/credentum/forge.git"},"bugs":{"url":"https://github.com/credentum/forge/issues"},"license":"MIT","readme":"# @credentum/is-valid-sedol\n\nValidate SEDOL (Stock Exchange Daily Official List) codes used in UK and Irish securities markets.\n\n## Installation\n\n```bash\nnpm install @credentum/is-valid-sedol\n```\n\n## Usage\n\n```typescript\nimport { isValidSedol } from '@credentum/is-valid-sedol';\n\nisValidSedol('0263494'); // true  (BAE Systems)\nisValidSedol('B0WNLY7'); // true  (Tesla on LSE)\nisValidSedol('INVALID'); // false\n```\n\n## Why Use This?\n\nSEDOL is the primary security identifier for the London Stock Exchange. If you process UK/Irish equities, bonds, or ETFs, you encounter SEDOLs in SWIFT messages, FIX protocol feeds, and reconciliation files. The check digit algorithm is simple but easy to get wrong — and a bad SEDOL silently corrupts downstream data. This package gives you a single, zero-dependency function with correct weighted-checksum validation so you don't have to copy-paste from Wikipedia.\n\n## API\n\n### `isValidSedol(input: string): boolean`\n\nReturns `true` if the input is a valid 7-character SEDOL with a correct check digit.\n\n**Validation rules:**\n- Exactly 7 characters\n- Characters 1-6: digits `0-9` or consonants `BCDFGHJKLMNPQRSTVWXYZ` (no vowels)\n- Character 7: check digit (weighted mod-10 checksum with weights `[1, 3, 1, 7, 3, 9, 1]`)\n\n**Parameters:**\n| Name | Type | Description |\n|------|------|-------------|\n| `input` | `string` | The SEDOL code to validate |\n\n**Returns:** `boolean` — `true` if valid, `false` otherwise.\n\n**Edge cases:**\n- Non-string input returns `false`\n- Empty string returns `false`\n- Lowercase input returns `false` (SEDOLs are uppercase)\n- Strings with vowels return `false`\n\n## Algorithm\n\nEach character maps to a numeric value (digits = face value, B=11, C=12, ..., Z=35). The values are multiplied by weights `[1, 3, 1, 7, 3, 9, 1]` and summed. A valid SEDOL has a total divisible by 10.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-8ef73393b865cca2dfa838dd90d7e551"}