JSPM

data-base-local-storage-by-kamina

1.0.4
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1
    • Score
      100M100P100Q25141F
    • License MIT

    Data Base Local-Storage

    Package Exports

    • data-base-local-storage-by-kamina

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (data-base-local-storage-by-kamina) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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