dgdata

1.0.4 • Public • Published

DGData - Data Scheme

Formerly known as NKTools

Documentation - Table of Contents

arrayToStr

Converts an array of bytes to text

Parameters

  • array
  • An array array of utf-8 bytes

Returns string A string

strToArray

Converts a string to a utf-8 array

Parameters

  • str
  • A str string

Returns Array Returns an array of numbers

decode

Decodes a string or array of DGData Arrays work best, as strings loose data due to utf-8 / unicode

Parameters

  • data
  • This data is the data to be decoded

Returns string This is the result of the data

encode

Encodes a string of data

Parameters

  • data
  • Data data to be encoded

Returns array An array of bytes

secondHash

Encodes a number - You really shouldn't have to deal with this

Parameters

  • number
  • The number number to be encoded

Returns number The result

hash

Hashes some data - You really shouldn't have to deal with this unless you want to manually verify the program

Parameters

  • data
  • Some data data - it's a string

Returns array An array of bytes

Readme

Keywords

none

Package Sidebar

Install

npm i dgdata

Weekly Downloads

2

Version

1.0.4

License

UNLICENSED

Unpacked Size

2.48 kB

Total Files

3

Last publish

Collaborators

  • bibliotheca