All Projects → rcnbapp → RCNB.js

rcnbapp / RCNB.js

Licence: MIT license
Everything can be encoded into RCNB with JavaScript.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to RCNB.js

librcnb
Everything can be encoded into RCNB.
Stars: ✭ 14 (-72%)
Mutual labels:  encoding, rcnb
Go
decode/encode thrift message without IDL
Stars: ✭ 219 (+338%)
Mutual labels:  encoding
Img Encode
Encode an image to sound and view it as a spectrogram - turn your images into music
Stars: ✭ 157 (+214%)
Mutual labels:  encoding
Convertzz
繼承自convertz,但更好用的簡繁轉換工具
Stars: ✭ 181 (+262%)
Mutual labels:  encoding
Xssor2
XSS'OR - Hack with JavaScript.
Stars: ✭ 1,969 (+3838%)
Mutual labels:  encoding
Rust Lexical
Lexical, to- and from-string conversion routines.
Stars: ✭ 192 (+284%)
Mutual labels:  encoding
Datagene
DataGene - Identify How Similar TS Datasets Are to One Another (by @firmai)
Stars: ✭ 156 (+212%)
Mutual labels:  encoding
Armor
Armor is a simple Bash script designed to create encrypted macOS payloads capable of evading antivirus scanners.
Stars: ✭ 228 (+356%)
Mutual labels:  encoding
Elixir Json
Native JSON library for Elixir
Stars: ✭ 216 (+332%)
Mutual labels:  encoding
Libchef
🍀 c++ standalone header-only basic library. || c++头文件实现无第三方依赖基础库
Stars: ✭ 178 (+256%)
Mutual labels:  encoding
Encoding
Encoding Standard
Stars: ✭ 176 (+252%)
Mutual labels:  encoding
Ifme
Powerful x265 GUI Encoder
Stars: ✭ 168 (+236%)
Mutual labels:  encoding
Encoding rs
A Gecko-oriented implementation of the Encoding Standard in Rust
Stars: ✭ 196 (+292%)
Mutual labels:  encoding
Mini Svg Data Uri
Small, efficient encoding of SVG data URIs for CSS, HTML, etc.
Stars: ✭ 158 (+216%)
Mutual labels:  encoding
Stego
🦕 stego is a steganographic swiss army knife.
Stars: ✭ 220 (+340%)
Mutual labels:  encoding
Cyberchef
The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis
Stars: ✭ 13,674 (+27248%)
Mutual labels:  encoding
Packetserial
An Arduino Library that facilitates packet-based serial communication using COBS or SLIP encoding.
Stars: ✭ 177 (+254%)
Mutual labels:  encoding
Base X
Encode/decode any base
Stars: ✭ 191 (+282%)
Mutual labels:  encoding
Iconv Lite
Convert character encodings in pure javascript.
Stars: ✭ 2,697 (+5294%)
Mutual labels:  encoding
Qs
Quick serialization of R objects
Stars: ✭ 225 (+350%)
Mutual labels:  encoding

RCNB.js Node.js CI

The world is based on RC. Thus, everything can be encoded into RCNB.

RCNB is available in various languages: JavaScript C PHP Pascal (more..)

Why RCNB?

RCNB vs Base64

Base64 RCNB
Speed Fast ✔️ Slow, motivate Intel to improve their CPU
Printable On all OS ✔️ Only on newer OS, motivate users to upgrade their legacy OS
Niubility Not at all ✔️ RCNB!
Example QmFzZTY0Lg== ȐĉņþƦȻƝƃŔć

Install

$ npm install --save rcnb # Add RCNB.js to your package
$ npm install -g rcnb # Install RCNB.js as a global CLI

Import

In Browser

<script type="module">
  import rcnb from 'https://cdn.jsdelivr.net/npm/rcnb@2/rcnb.min.js'
</script>

Node.js

import rcnb from 'rcnb'

Usage

In Code

rcnb.encode(new Uint8Array([114, 99, 110, 98])) // 'ɌcńƁȓČņÞ'
rcnb.decode('ɌcńƁȓČņÞ') // Uint8Array [114, 99, 110, 98]

rcnb.encode(new TextEncoder('utf-8').encode('Who NB?')) // 'ȐȼŃƅȓčƞÞƦȻƝƃŖć'
new TextDecoder('utf-8').decode(rcnb.decode('ȐĉņþƦȻƝƃŔć')) // 'RCNB!'

With NodeJS Stream API

import fs from 'fs'
import { EncodeStream, DecodeStream } from 'rcnb'

fs.createReadStream('input.txt')
  .pipe(new EncodeStream())
  .pipe(fs.createWriteStream('rcnb.txt'))

fs.createReadStream('rcnb.txt')
  .pipe(new DecodeStream())
  .pipe(fs.createWriteStream('output.txt'))

EncodeStream([options]) / DecodeStream([options])

Support all available options of stream.Transform

Note that only streams of Buffer or string are supported.

CLI

$ rcnb encode "Who NB?"
#   ȐȼŃƅȓčƞÞƦȻƝƃŖć

$ rcnb decode "ȐĉņþƦȻƝƃŔć"
#   RCNB!

$ echo "The world is based on RC thus RCNB" >rcnb.txt
$ rcnb encode -- <rcnb.txt # With the option `--`, RCNB.js CLI reads from stdin.
#   ȐčnÞȒċƝÞɌČǹƄɌcŅƀȒĉȠƀȒȼȵƄŕƇŅbȒCŅßȒČnƅŕƇņƁȓċȵƀȐĉņþŕƇņÞȒȻŅBɌCňƀȐĉņþƦȻƝƃrƇ
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].