{"id":15509680,"url":"https://github.com/willin/h1de","last_synced_at":"2025-04-23T02:41:56.077Z","repository":{"id":42721836,"uuid":"281637247","full_name":"willin/h1de","owner":"willin","description":"优雅的方式隐藏你的敏感/隐私信息。 Hide your privacy elegantly. 欢迎PR各种玩法","archived":false,"fork":false,"pushed_at":"2023-02-03T11:15:13.000Z","size":787,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T17:40:59.972Z","etag":null,"topics":["base64","encrypt","hide","privacy","tr"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"willin"}},"created_at":"2020-07-22T09:43:10.000Z","updated_at":"2022-03-27T09:47:12.000Z","dependencies_parsed_at":"2023-02-18T06:16:06.352Z","dependency_job_id":null,"html_url":"https://github.com/willin/h1de","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fh1de","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fh1de/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fh1de/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fh1de/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willin","download_url":"https://codeload.github.com/willin/h1de/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250360242,"owners_count":21417716,"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":["base64","encrypt","hide","privacy","tr"],"created_at":"2024-10-02T09:43:29.164Z","updated_at":"2025-04-23T02:41:56.038Z","avatar_url":"https://github.com/willin.png","language":"JavaScript","funding_links":["https://github.com/sponsors/willin"],"categories":[],"sub_categories":[],"readme":"# h1de\n\n优雅的方式隐藏你的敏感/隐私信息。 Hide your privacy elegantly.\n\n[![github](https://img.shields.io/github/followers/willin.svg?style=social\u0026label=Followers)](https://github.com/willin) [![npm](https://img.shields.io/npm/v/h1de.svg)](https://npmjs.org/package/h1de) [![npm](https://img.shields.io/npm/dm/h1de.svg)](https://npmjs.org/package/h1de) [![npm](https://img.shields.io/npm/dt/h1de.svg)](https://npmjs.org/package/h1de) [![Maintainability](https://api.codeclimate.com/v1/badges/1ccaced4f791dc036d82/maintainability)](https://codeclimate.com/github/willin/h1de/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/1ccaced4f791dc036d82/test_coverage)](https://codeclimate.com/github/willin/h1de/test_coverage) [![Build Status](https://travis-ci.org/willin/h1de.svg?branch=master)](https://travis-ci.org/willin/h1de)\n\n\u003e 你的`关注`是我最大的动力。 Your `Star` is the best gift.\n\n## 安装使用 Useage\n\n### 命令行使用 In CLI\n\n安装 Installation:\n\n```bash\nyarn add --global h1de\n# or\nnpm install -g h1de\n```\n\n一次性使用：\n\n```bash\nnpx h1de [command] [...params]\n```\n\n### 代码使用 In codes\n\n```bash\nyarn add h1de\n# or\nnpm install --save h1de\n```\n\nDemo:\n\n```js\nconst h1de = require('h1de');\n\nh1de.tr('willin@willin.org', 'oO_~@#.+=');\n// echo Oo__o#aOo__o#@+.~ | tr O.+#_o~a@ wronlig@.\n\nhide.base64('willin@willin.org');\n// echo d2lsbGluQHdpbGxpbi5vcmc= | base64 -d\n```\n\n## 文档 API Document\n\n### tr(str[, mask_chars])\n\nParams:\n\n- str: 必填 Required\n- mask_chars: 可选 Optional\n  - 默认值 Default: `abcdefhijkmnprstwxyz2345678`\n  - 重复字符会被过滤。 Ignore duplicate character.\n  - 以下字符会被过滤： Ignore characters:\n  - \u003e #'`-\n\nJS Demo:\n\n```js\nconst h1de = require('h1de');\n\nh1de.tr('willin@willin.org');\n// echo hkzzkjrhkzzkjf3em | tr he3jzkmrf wronlig@.\n\nh1de.tr('willin@willin.org', 'oO_~@#.+=');\n// echo ~@OO@+.~@OO@+=o#_ | tr ~#o+O@_.= wronlig@.\n```\n\nCLI Demo:\n\n```bash\nh1de tr willin@willin.org\n# echo Oo__o#aOo__o#@+.~ | tr O.+#_o~a@ wronlig@.\n```\n\n### base64(str)\n\nParams:\n\n- str: 必填 Required\n\nJS Demo:\n\n```js\nconst h1de = require('h1de');\n\nh1de.base64('willin@willin.org');\n// echo d2lsbGluQHdpbGxpbi5vcmc= | base64 -d\n```\n\nCLI Demo:\n\n```bash\nh1de base64 willin@willin.org\n# echo d2lsbGluQHdpbGxpbi5vcmc= | base64 -d\n```\n\n## License\n\nApache 2.0\n\n通过支付宝捐赠：\n\n![qr](https://cloud.githubusercontent.com/assets/1890238/15489630/fccbb9cc-2193-11e6-9fed-b93c59d6ef37.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillin%2Fh1de","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillin%2Fh1de","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillin%2Fh1de/lists"}