1.1.5 • Published 3 years ago

bytestorage v1.1.5

Weekly downloads
35
License
ISC
Repository
-
Last release
3 years ago

ByteStorage

A byte based storage

To get started first create a ByteStorage class

const ByteStorage = require('bytestorage');
var Storage = new ByteStorage('datafile.dat');

Get length of data:

Storage.lengthOfData(); // Returns an int

Get length of array

Storage.lengthOfArray(index); // Returns an int

Get data in array

Storage.getDataFromArray(array, index) // Returns bytes, use stringify to get text

Stringify data

Storage.stringify(data); // Stringify data

Get file contents

Storage.getFileData(); // Returns bytes

Add to array

Storage.addToArray('string', array); // Returns nothing

Update 1.1.5: Change 66 to 89 because 66 is the ascii character 'f'

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago