1.0.0 • Published 3 years ago

stk-simple-kvr-mad v1.0.0

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

What is this?

this is a simple package for simulate a stack

Installation

npm i stack --save

Then...

 const stack = requier('stack);
 conat newStack = new stack(model)
  async push(req, res, next) {
    const stackDb = await this.model.find();
    if (!stackDb[0]) {
      const newStack = new this.model({
        list: {
          stack: [req.body.data]
        }
      })