Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tycrek/base2048-worker
Source code to base2048.tycrek.dev
https://github.com/tycrek/base2048-worker
base2048 cloudflare-workers encoder-decoder
Last synced: about 1 month ago
JSON representation
Source code to base2048.tycrek.dev
- Host: GitHub
- URL: https://github.com/tycrek/base2048-worker
- Owner: tycrek
- License: isc
- Created: 2023-11-22T22:02:16.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:47:46.000Z (about 1 year ago)
- Last Synced: 2024-05-30T12:47:27.660Z (7 months ago)
- Topics: base2048, cloudflare-workers, encoder-decoder
- Language: TypeScript
- Homepage: https://base2048.tycrek.dev
- Size: 10.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# base2048-worker
This is the source code to [base2048-worker](https://base2048.tycrek.dev), a Cloudflare Worker that will encode or decode the provided input to [Base2048](https://github.com/qntm/base2048).
## Examples
A Base2048 encode for `Hello, world!` looks like this `ԋϠɲණరѻఋԵړƶ` ([link](https://base2048.tycrek.dev/encode/Hello,%20world!)).
Decoding the result of `ԋϠɲණరѻఋԵړƶ` returns to `Hello, world!` ([link](https://base2048.tycrek.dev/decode/ԋϠɲණరѻఋԵړƶ)).## Usage
You are free to use this service however you like. Example JavaScript:
```js
const url = 'https://base2048.tycrek.dev/encode/Hello,%20world!';fetch(url)
.then(response => {
if (!response.ok)
throw new Error(`Response not ok: ${response.statusText}`);
return response.text();
})
.then(data => console.log(data)) // ԋϠɲණరѻఋԵړƶ
.catch(error => console.error('Fetch error:', error));
```## License
Licensed under [ISC](https://github.com/tycrek/pagery/blob/master/LICENSE)
Copyright (c) 2023 [tycrek](https://github.com/tycrek)