👻 the implementation of hashids for io lang.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
hashids
tests
.editorconfig
.gitignore
.travis.yml
LICENSE
README.md
run_tests.sh

README.md

hashids

License Build Status

What is io-hashids

io-hashid is an implementation of hashids for io language.

this libary can be helped to get a unique string from the number.

beware this project is not completed yet.

Usage

Install from Git

$ git clone git@github.com:KennethanCeyer/io-hashids.git
# get hashids object
h = hashids()

# encode
id = h encode("1234")
id print # 9xABBQAv

# decode
h decode(id) # 1234

Test

io-hashid supports the unit test using by jasmine.

# current path is io-hashids
pwd
> {path}/io-hashids

# install jasmine from Git
$ git clone git@github.com:bekkopen/jasmineio.git

# test using jasmine
io ./jasmineio/jasmine.io ./tests/main_spec.io

License

MIT License. See the LICENSE file. You can use Hashids in open source projects and commercial products. Don't break the Internet. Kthxbye.