data-base-local-storage-by-kamina

1.0.4 • Public • Published

DaTa BaSe About Storage

Install

install npm

npm i data-base-local-storage-by-kamina

Setup process

When you have installed via npm, simply require the library and begin enjoying🚀

// const Shop = require('data-base-local-storage-by-kamina')

How To Use ??

Then, add following js codes so as to set up your project

    let index = process.argv

    ;(async function () {
        let db = new Storage('storage')

        if (index[2] === "--dep") {
            await db.dep(index[3], parseInt(index[4]));
        } else if (index[2] === "--sell") {
            await db.sell(index[3], parseInt(index[4]));
        } else if (index.length === 2) {
            await db.dash();
        }
    })();

Meaning of above function:

dep() - adding products to the storage. sell() - selling products from the storage and calculate how many products are left in a table. dash() - calling table by using just main.js.

Relax while Using

Package Sidebar

Install

npm i data-base-local-storage-by-kamina

Weekly Downloads

6

Version

1.0.4

License

MIT

Unpacked Size

7.01 kB

Total Files

4

Last publish

Collaborators

  • baxromxoja