{"id":13720921,"url":"https://github.com/chbrown/unidata","last_synced_at":"2025-07-17T18:31:33.911Z","repository":{"id":31548507,"uuid":"35113130","full_name":"chbrown/unidata","owner":"chbrown","description":"Javascript interface to the Unicode Character Database","archived":false,"fork":false,"pushed_at":"2020-05-18T15:59:59.000Z","size":439,"stargazers_count":8,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-26T04:06:42.767Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chbrown.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-05T17:10:14.000Z","updated_at":"2022-11-19T03:50:32.000Z","dependencies_parsed_at":"2022-06-26T16:16:01.980Z","dependency_job_id":null,"html_url":"https://github.com/chbrown/unidata","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/chbrown/unidata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chbrown%2Funidata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chbrown%2Funidata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chbrown%2Funidata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chbrown%2Funidata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chbrown","download_url":"https://codeload.github.com/chbrown/unidata/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chbrown%2Funidata/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265645360,"owners_count":23804183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T01:01:09.918Z","updated_at":"2025-07-17T18:31:33.893Z","avatar_url":"https://github.com/chbrown.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# unidata\n\n[![npm package version](https://badge.fury.io/js/unidata.svg)](https://www.npmjs.com/package/unidata)\n\nJavaScript interface to the [Unicode Character Database](http://www.unicode.org/reports/tr44/).\nThe package version is intended to match the Unicode version.\n\n    npm install unidata --save\n\n\n## API\n\nUsing ES6 syntax:\n\n    import {getBlocks, getCharacters} from 'unidata'\n\nThere are a few other exports (and a couple useful interfaces, if you're using TypeScript),\nbut these are the main methods.\n\nThey both simply call `require()` to load the preprocessed Unicode data from a JSON file.\n\n    const blocks = getBlocks()\n    const characters = getCharacters()\n\nThese are both just arrays.\n* `blocks` is an array of [`Block`](index.d.ts)\n* `characters` is an array of [`Character`](index.d.ts)\n\nBlocks are simple; _every_ item in `blocks` has these three fields:\n\n```js\n\u003e blocks.length\n308\n\u003e blocks.slice(0, 5)\n[ { startCode:   0, endCode: 127, blockName: 'Basic Latin'        },\n  { startCode: 128, endCode: 255, blockName: 'Latin-1 Supplement' },\n  { startCode: 256, endCode: 383, blockName: 'Latin Extended-A'   },\n  { startCode: 384, endCode: 591, blockName: 'Latin Extended-B'   },\n  { startCode: 592, endCode: 687, blockName: 'IPA Extensions'     } ]\n```\n\nCharacters are richer, but the representation is parsimonious:\nif a value is not available or not applicable for a given character, that key will be omitted.\n\n```js\n\u003e characters.length\n33797\n\u003e characters.slice(32, 40)\n[ { code: 32, name: 'SPACE',            cat: 'Zs', bidi: 'WS' },\n  { code: 33, name: 'EXCLAMATION MARK', cat: 'Po', bidi: 'ON' },\n  { code: 34, name: 'QUOTATION MARK',   cat: 'Po', bidi: 'ON' },\n  { code: 35, name: 'NUMBER SIGN',      cat: 'Po', bidi: 'ET' },\n  { code: 36, name: 'DOLLAR SIGN',      cat: 'Sc', bidi: 'ET' },\n  { code: 37, name: 'PERCENT SIGN',     cat: 'Po', bidi: 'ET' },\n  { code: 38, name: 'AMPERSAND',        cat: 'Po', bidi: 'ON' },\n  { code: 39, name: 'APOSTROPHE',       cat: 'Po', bidi: 'ON', oldName: 'APOSTROPHE-QUOTE' } ]\n```\n\nThe first three fields, `code`, `name`, and `cat`, are always present.\nThe other ten are optional.\n(For details on the optional fields, and what values to assume when they are omitted,\nsee the comments on the `Block` interface.)\n\n\n## License\n\nCopyright 2015–2020 Christopher Brown.\n[MIT Licensed](https://chbrown.github.io/licenses/MIT/#2015-2020).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchbrown%2Funidata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchbrown%2Funidata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchbrown%2Funidata/lists"}