Skip to content

Commit

Permalink
small fix in script; improved README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBestTvarynka committed Apr 22, 2022
1 parent adcdeba commit 58ab1ed
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,29 @@
# bytes-formatter
Small web app for converting between different bytes representations (hex, dec, base64, etc)

![](img/example.png)

Visit this tool at [bf.qkation.com/index.html](https://bf.qkation.com/index.html).

Convert bytes between different representations: hex, base64, decimal, ascii, etc.

Main features:

* share by the link
* Integrated [asn1 parser](https://lapo.it/asn1js/) (available for `hex` and `base64` output types)
* remembers current state

## Meta

Pavlo Myroniuk - [[email protected]](mailto:[email protected]).

Distributed under the [MIT](https://github.com/TheBestTvarynka/bytes-formatter/blob/main/LICENSE) license.

## Contributing

Feel free to contribute.

1. Fork it (<https://github.com/yourname/yourproject/fork>)
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request
Binary file added img/example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ const saveInLocalStorage = () => {
const loadFromLocalStorage = () => {
const parameters = JSON.parse(window.localStorage.getItem('params'));

if (!parameters) {
return;
}

if (parameters['inType']) {
document.getElementById('inType').value = parameters['inType'];
}
Expand Down

0 comments on commit 58ab1ed

Please sign in to comment.