5.1.0 • Published 3 years ago

stringstonumbers v5.1.0

Weekly downloads
11
License
GNU
Repository
github
Last release
3 years ago

stringstonumbers

Now in TypeScript!

stringstonumbers is a very simple npm package that converts any string input into a number and back. It was created to be used with the scratch-api module for transferring data over scratch cloud servers.

How to use

With npm

npm install stringstonumbers

Importing

const strToNum = require("stringstonumbers");

HTML

Want to use the script in the browser? No problem! Just import the script!
<script
  type="application/javascript"
  src="https://cdn.jsdelivr.net/npm/stringstonumbers@5/dist/browser.js"
></script>

Encoding

strToNum.encode("Hello World!");
// returns "07303737409122404337296200"

Decoding

strToNum.decode("07303737409122404337296200");
// returns "Hello World!"
5.0.3

3 years ago

5.0.2

3 years ago

5.1.0

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

4.3.0

3 years ago

3.3.0

3 years ago

3.2.0

3 years ago

2.3.0

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.3.1

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.2.0

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago