make-your-mini-base-7

1.0.0 • Public • Published

make-your-mini-base-7

Ps: This package will help you build a small database

Install

    npm install make-your-mini-base-7

Import

    const YourBase = require("make-your-mini-base-7");

Usage

You should add these line codes to your main javascript file in order to use package

   const warehouse = new YourBase(/*filename*/);
   //You need several variables to run the program on the terminal
   const comand = process.argv[2]; 
   const name =  process.argv[3];
   const count = process.argv[4];
   
   //write code
   if(comand === "dash"){
       //you use the warehouse dash method 
       warehouse.dash(0) /*
       This function takes two different numbers as arguments 0 and 1
       Returns the products in the database if you enter 0
       If you enter 1, it returns the products sold from the database
       */
   } else if(comand === '--dep'){
       warehouse.dep(/*productName*/, /*count*/);
    // This function accepts two arguments. ProductName and count. 
   } else if(comand === "-sell"){
       warehouse.sell(/*productName*/, /*count*/)
   }
thank you Good luck ;)

Readme

Keywords

Package Sidebar

Install

npm i make-your-mini-base-7

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.41 kB

Total Files

3

Last publish

Collaborators

  • khasan0101