{"id":19180587,"url":"https://github.com/leizhenpeng/platecode","last_synced_at":"2025-05-07T22:27:50.556Z","repository":{"id":246855661,"uuid":"824371076","full_name":"Leizhenpeng/platecode","owner":"Leizhenpeng","description":"Generate readable hash or encoding in the style of license plates 📦 鄂A·22391 ","archived":false,"fork":false,"pushed_at":"2024-07-06T05:40:09.000Z","size":91,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-01T17:13:21.660Z","etag":null,"topics":["base32","hash","hashplate","plate"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/platecode","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Leizhenpeng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["leizhenpeng"],"opencollective":"leizhenpeng"}},"created_at":"2024-07-05T01:53:37.000Z","updated_at":"2024-08-13T02:24:06.000Z","dependencies_parsed_at":"2024-07-06T05:37:49.024Z","dependency_job_id":"de21d8f8-2fc6-4013-8932-deadfb3e2e90","html_url":"https://github.com/Leizhenpeng/platecode","commit_stats":null,"previous_names":["leizhenpeng/crypto-plate","leizhenpeng/platecode"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leizhenpeng%2Fplatecode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leizhenpeng%2Fplatecode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leizhenpeng%2Fplatecode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leizhenpeng%2Fplatecode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Leizhenpeng","download_url":"https://codeload.github.com/Leizhenpeng/platecode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252963966,"owners_count":21832595,"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":["base32","hash","hashplate","plate"],"created_at":"2024-11-09T10:50:12.326Z","updated_at":"2025-05-07T22:27:50.535Z","avatar_url":"https://github.com/Leizhenpeng.png","language":"TypeScript","funding_links":["https://github.com/sponsors/leizhenpeng","leizhenpeng"],"categories":[],"sub_categories":[],"readme":"# platecode\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![bundle][bundle-src]][bundle-href]\n[![JSDocs][jsdocs-src]][jsdocs-href]\n[![License][license-src]][license-href]\n\nGenerate readable hashes or encodings in the style of license plates\n\n`platecode` 是一个 JavaScript 库，用于生成类似车牌的可读哈希或 Base32 编码,使其更加有趣和直观。\n\n## Features\n-  **车牌风格的哈希**: 使用 `hash` 函数可以生成带有或不带有表情符号的车牌风格哈希。\n- **Base32 编码和解码**: 支持通过 `encode` 和 `decode` 函数对字符串进行车牌风格的 Base32 编码和解码。\n- **定制选项**: 支持在编码和哈希时选择是否包含表情符号。\n\n## Usage\n\n### Hash\n```js\nimport { hash } from 'platecode'\n\nconst hash = hash('hello world')\nconsole.log(hash1) // '🍢 渝F·WGVA2 🪣\n\nconst encoded = encode('hello world', { emoji: false })\nconsole.log(encoded) // '渝F·WGVA2'\n```\n\n### Encoding and Decoding\n```js\nimport { decode, encode } from 'platecode'\n\nconst result = encode('hello world')\nconsole.log(result) // 🎤 辽U·JBSWY 🥚 藏P·3DPFQ 🐟 苏H·QFO33 👞 湘U·SNRSC 🚿 琼M·CAAAA 🐱\n\nconst decoded = decode(result)\nconsole.log(decoded) // 'hello world'\n```\n## Credit\n\nThanks to my friend [cunzaizhuyi](https://github.com/cunzaizhuyi) for the new repository [hashplate-cn](https://github.com/cunzaizhuyi/hashplate-cn), which I find quite interesting.\n\nSince hash has its limitations, I'm considering giving encoding a try\n\n## License\n\n[MIT](./LICENSE) License © 2023-PRESENT [leizhenpeng](https://github.com/leizhenpeng)\n\n\u003c!-- Badges --\u003e\n\n[npm-version-src]: https://img.shields.io/npm/v/platecode?style=flat\u0026colorA=080f12\u0026colorB=1fa669\n[npm-version-href]: https://npmjs.com/package/platecode\n[npm-downloads-src]: https://img.shields.io/npm/dm/platecode?style=flat\u0026colorA=080f12\u0026colorB=1fa669\n[npm-downloads-href]: https://npmjs.com/package/platecode\n[bundle-src]: https://img.shields.io/bundlephobia/minzip/platecode?style=flat\u0026colorA=080f12\u0026colorB=1fa669\u0026label=minzip\n[bundle-href]: https://bundlephobia.com/result?p=platecode\n[license-src]: https://img.shields.io/github/license/leizhenpeng/platecode.svg?style=flat\u0026colorA=080f12\u0026colorB=1fa669\n[license-href]: https://github.com/leizhenpeng/platecode/blob/main/LICENSE\n[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat\u0026colorA=080f12\u0026colorB=1fa669\n[jsdocs-href]: https://www.jsdocs.io/package/platecode\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleizhenpeng%2Fplatecode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleizhenpeng%2Fplatecode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleizhenpeng%2Fplatecode/lists"}