Skip to content

Dev3211/array-data-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

array-data-management

It can manage your data by using an array, it can also save your array data permanently in a JSON file and get it. Basically, it acts as a data storage for your arrays. For example, during your script execution you pushed an object to an array but when you refreshed the script, the data vanished this is because array only acts as a temporary data storage and for that matter this script was created where you can save your array data while pushing and get it at the same time.

Installation

npm install array-management

npm install fs-extra

npm install system-sleep

Usage

var grab = require('array-management');

var processarray = grab.arr

var getarray = grab.getdata

var array = ['hey', 'one', 'two', 'three']; //small array

processarray(array, 'well');

var test = getarray('well');

console.log(test[0]) //hey

Tests

npm test

Contributing

You are free to contribute if you experience any bugs, it would be appreciated for sure.

Useful features:

  1. Add data faster than ever

  2. Format and optimize larger arrays

  3. Get data faster than ever

  4. Take up less space

  5. Create JSON files to store your array data

  6. Can process up larger/smaller arrays in a short-span of time along with file creation

  7. Handles your data correctly and does not mess it up

TO-DO

  1. Give options to choose different data storages instead of just using JSON.
  2. Use promises for writing = complete
  3. Switch to async/await = complete

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published