{"id":16370193,"url":"https://github.com/cyan33/codec","last_synced_at":"2025-10-16T04:17:46.264Z","repository":{"id":57101198,"uuid":"104386315","full_name":"cyan33/codec","owner":"cyan33","description":":fax: A light weight codec implemented in JavaScript, aimed for both browser and node.js","archived":false,"fork":false,"pushed_at":"2017-09-25T16:55:49.000Z","size":3,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-18T04:47:48.940Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/cyan33.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-21T18:51:32.000Z","updated_at":"2017-09-25T01:15:49.000Z","dependencies_parsed_at":"2022-08-20T16:20:48.653Z","dependency_job_id":null,"html_url":"https://github.com/cyan33/codec","commit_stats":null,"previous_names":["thomasyimgit/codec"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyan33%2Fcodec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyan33%2Fcodec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyan33%2Fcodec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyan33%2Fcodec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cyan33","download_url":"https://codeload.github.com/cyan33/codec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239887597,"owners_count":19713681,"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-10-11T03:04:17.307Z","updated_at":"2025-10-16T04:17:41.214Z","avatar_url":"https://github.com/cyan33.png","language":"JavaScript","readme":"# codec\n:fax: A light codec implemented in JavaScript, aimed for both browser and node.js\n\nIt encode a primitive type to a string, whose length is seven.\n\n## Installation\n\n```\nnpm install @changyan/codec\n```\n\n## Usage\n\nNode,js:\n\n```js\nconst codec = require('@changyan/codec');\n```\n\nES6:\n\n```js\nimport codec from '@changyan/codec';\n```\n\nIn your code, try it out like this:\n\n```js\nlet key = codec.encode('Hello world'); // 'LLvEUum'\n\nlet src = codec.decode(key); // 'Hello world'\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyan33%2Fcodec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyan33%2Fcodec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyan33%2Fcodec/lists"}