1.0.47 • Published 14 days ago

@frsource/base64 v1.0.47

Weekly downloads
-
License
MIT
Repository
github
Last release
14 days ago

@frsource/base64

This javascript code is used to encode / decode data using base64 (this encoding is designed to make binary data survive transport through transport layers that are not 8-bit clean). Script is fully compatible with UTF-8 encoding. You can use base64 encoded data as simple encryption mechanism.

If you plan using UTF-8 encoding in your project don’t forget to set the page encoding to UTF-8 (Content-Type meta tag).

Installation

npm i @frsource/base64

Usage

// Importing:
// typescript / ES6
import { encode, decode } from '@frsource/base64';

// legacy javscript
const { encode, decode } = require('@frsource/base64');


const encoded = encode('我喜欢解码lubię dekodować');
console.log(encoded); // output: 5oiR5Zac5qyi6Kej56CBbHViacSZIGRla29kb3dhxIc=
const decoded = decode(encoded);
console.log(encoded); // output: 我喜欢解码lubię dekodować

References

Based on webtoolkit.info implementation. Original source code available at: http://www.webtoolkit.info/javascript_base64.html

License

MIT

Copyright (c) 2022-present, Jakub FRS Freisler, FRSOURCE

1.0.47

14 days ago

1.0.46

20 days ago

1.0.45

1 month ago

1.0.44

1 month ago

1.0.43

1 month ago

1.0.42

2 months ago

1.0.41

2 months ago

1.0.40

3 months ago

1.0.39

3 months ago

1.0.38

3 months ago

1.0.37

4 months ago

1.0.36

5 months ago

1.0.35

5 months ago

1.0.19

10 months ago

1.0.18

10 months ago

1.0.22

8 months ago

1.0.21

8 months ago

1.0.20

9 months ago

1.0.26

8 months ago

1.0.25

8 months ago

1.0.24

8 months ago

1.0.23

8 months ago

1.0.29

7 months ago

1.0.28

7 months ago

1.0.27

7 months ago

1.0.33

5 months ago

1.0.32

6 months ago

1.0.31

6 months ago

1.0.30

7 months ago

1.0.34

5 months ago

1.0.17

11 months ago

1.0.15

11 months ago

1.0.14

12 months ago

1.0.13

1 year ago

1.0.9

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.12

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago