1.0.8 • Published 11 months ago

@adntro/conway-common v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

Conway Common

Codificación front-back

Secuencia de 1 y 0
1011101010101010100101010010101...

Subdividir el bloques de 1+31 (bit 1 primero)

10111010101010101001010100101011011101010101010100101010010101...
1011101010101010100101010010101 1011101010101010100101010010101 ...

11011101010101010100101010010101 11011101010101010100101010010101 ...


Parsear -> Int32 -> String(32)
3713354389 3713354389
3elaikl 3elaikl

Y se guarda "3elaikl,3elaikl,..."


Option 2

TBD

binary string 2 base64
bin => btoa(
  bin.split('').map((i, idx) => idx % 8 === 0 ? ':'+i : i).join('').split(':').slice(1).map(i => parseInt(i,2)).map(i => String.fromCharCode(i)).join('')
)

base64 to binaryString

atob(b64).split('').map(i => i.charCodeAt(0).toString(2).padStart(8,'0')).join('')


'3508g9i,270gij0,201pp0'
'1001010000001000100000100110010000111000001000010010100110000000000000001110011100100000'
'lAiCZDghKYAA5yA='
1.0.17

11 months ago

1.0.16

11 months ago

1.0.11

11 months ago

1.0.15

11 months ago

1.0.14

11 months ago

1.0.13

11 months ago

1.0.12

11 months ago

1.0.10

1 year ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years 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