2025.5.0 • Published 8 months ago

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

Weekly downloads
10
License
MIT
Repository
-
Last release
8 months ago

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

Encodes and decodes a string to and from base64

Related projects

  1. base.64.table.node.lib npm | github
  2. base.64.encode.node.lib npm | github
  3. base.64.decode.node.lib npm | github
  4. base.64.codec.node.lib npm | github

installation

npm install @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 install --location=global @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-'  │
└─────────┴────────┴────────────┘

License

MIT License

Copyright (c) 2019-2025 Anubhav Saini