1.1.0 • Published 3 years ago

@ali-fathi77/stackv1 v1.1.0

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

My first stack module

In this version of this module you can push and pop your data on stack. You can also know how many array houses are occupied.

N|Solid Photo copied from the https://www.javatpoint.com/ds-stack-vs-queue

Features of this version

Pushing data Popping data Information about array houses

Installation

My stack module requires Node.js v16+ to run.

Install the dependencies and devDependencies and start the server.

npm install stackv1

For production environments...

npm install stackv1 --production

Usage

This is sample usage of this module:

const newStack = new stack()
newStack.push(your data)
newStack.pop()

You can also know how many array houses are occupied.

newStack.length()