@m1yh3m/base.64.codec.node.lib
TypeScript icon, indicating that this package has built-in type declarations

2021.2.1 • Public • Published

@m1yh3m/base.64.codec.node.lib

Encodes and decodes a string to and from base64

installation

npm i @m1yh3m/base.64.codec.node.lib

usage

const codec = require('@m1yh3m/base.64.codec.node.lib')
codec.decode(codec.encode("I will be encoded and then decoded"))
// 'I will be encoded and then decoded'

Usage as executables

I know it's a lib.

npm i -g @@m1yh3m/base.64.codec.node.lib

_encode64 what!
┌─────────┬─────────┬────────────┐
│ (index) │  input  │   output   │
├─────────┼─────────┼────────────┤
│    0    │ 'what!''d2hhdCE=' │
└─────────┴─────────┴────────────┘

_decode64 d2hhdCE=
┌─────────┬────────────┬─────────┐
│ (index) │   input    │ output  │
├─────────┼────────────┼─────────┤
│    0    │ 'd2hhdCE=''what!' │
└─────────┴────────────┴─────────┘

echo "d2hhdA==" | xargs -n1 _64
┌─────────┬────────────┬────────────────┐
│ (index) │   input    │     output     │
├─────────┼────────────┼────────────────┤
│    0    │ 'd2hhdA==''ZDJoaGRBPT0=' │
│    1    │ 'd2hhdA==''what'     │
└─────────┴────────────┴────────────────┘

_64 what
┌─────────┬────────┬────────────┐
│ (index) │ input  │   output   │
├─────────┼────────┼────────────┤
│    0    │ 'what''d2hhdA==' │
│    1    │ 'what''Â\x16-'  │
└─────────┴────────┴────────────┘

Package Sidebar

Install

npm i @m1yh3m/base.64.codec.node.lib

Weekly Downloads

2

Version

2021.2.1

License

MIT

Unpacked Size

15.2 kB

Total Files

26

Last publish

Collaborators

  • iamanubhavsaini
  • m1yh3m