{"id":15661747,"url":"https://github.com/kennethanceyer/hashids-io","last_synced_at":"2025-03-30T03:42:33.184Z","repository":{"id":66098287,"uuid":"101329588","full_name":"KennethanCeyer/hashids-io","owner":"KennethanCeyer","description":":ghost: the implementation of hashids for io lang.","archived":false,"fork":false,"pushed_at":"2019-03-22T17:50:46.000Z","size":48,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T06:13:50.389Z","etag":null,"topics":["hashid","hashids","io","iolang","jasmine"],"latest_commit_sha":null,"homepage":"http://hashids.org/","language":"Io","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/KennethanCeyer.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-24T19:16:39.000Z","updated_at":"2021-02-11T16:12:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e427d0d-031f-4165-bb36-4492442f9ecd","html_url":"https://github.com/KennethanCeyer/hashids-io","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/KennethanCeyer%2Fhashids-io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KennethanCeyer%2Fhashids-io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KennethanCeyer%2Fhashids-io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KennethanCeyer%2Fhashids-io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KennethanCeyer","download_url":"https://codeload.github.com/KennethanCeyer/hashids-io/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246273519,"owners_count":20750904,"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":["hashid","hashids","io","iolang","jasmine"],"created_at":"2024-10-03T13:29:09.187Z","updated_at":"2025-03-30T03:42:33.161Z","avatar_url":"https://github.com/KennethanCeyer.png","language":"Io","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![hashids](http://hashids.org/public/img/hashids.gif \"Hashids\")](http://hashids.org/)\n\n[![License][license-image]][license-url] [![Build Status](https://travis-ci.org/KennethanCeyer/hashids-io.svg?branch=master)](https://travis-ci.org/KennethanCeyer/hashids-io)\n\nWhat is hashids-io\n------------------\n\nhashid-io is an implementation of [hashids](http://hashids.org/) for io language.\n\nthis libary can be helped to get a unique string from the number.\n\n## Getting Started\n\nInstall from Git\n\n```bash\n$ git clone https://github.com/KennethanCeyer/hashids-io.git\n```\n\n## Quick example\n\n```io\n# get hashids object\nh := hashids()\n\n# encode\nid := h encode(1, 2, 3, 4)\nid println # v2fWhzi1\n\n# also you can packing param numbers (salt sugaring)\nid := h encode(list(1, 2, 3, 4))\nid println # v2fWhzi1\n\n# decode\nnumbers := h decode(id)\nnumbers println # list(1, 2, 3, 4)\n```\n\n## Advanced example\n\n### encode/decode with salt\n\n```io\nsalt := \"this is my salt key\"\nh := hashids(salt)\n\n# encode\nid := h encode(1, 2, 3, 4)\nid println # zZHmu0hB\n\n# decode\nnumbers := h decode(id)\nnumbers println # list(1, 2, 3, 4)\n```\n\n### encode/decode with minLength padding\n\n```io\nh := hashids(nil, 8)\n\n# encode\nid := h encode(1, 2, 3, 4)\nid println #v2fWhzi1\n\n# decode\nnumbers := h decode(id)\nnumbers println # list(1, 2, 3, 4)\n```\n\n## Test\n\nhashid-io supports the unit test using by [jasmine](https://github.com/bekkopen/jasmineio).\n\n```bash\n# test using shell\n$ sh ./run_test.sh\n```\n\nLicense\n-------\n\nThe MIT License (MIT)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n---\n\nMIT License. See the LICENSE file. You can use Hashids in open source projects and commercial products. Don't break the Internet. Kthxbye.\n\n[license-url]: https://github.com/ivanakimov/hashids.js/blob/master/LICENSE\n[license-image]: https://img.shields.io/packagist/l/hashids/hashids.svg?style=flat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkennethanceyer%2Fhashids-io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkennethanceyer%2Fhashids-io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkennethanceyer%2Fhashids-io/lists"}