{"id":22243201,"url":"https://github.com/jakenherman/kcats","last_synced_at":"2025-03-25T10:43:40.530Z","repository":{"id":141839957,"uuid":"70199494","full_name":"JakenHerman/kcats","owner":"JakenHerman","description":"A stack implementation for node","archived":false,"fork":false,"pushed_at":"2019-11-13T19:14:20.000Z","size":414,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T09:44:06.602Z","etag":null,"topics":["data-structures","node-module","stack"],"latest_commit_sha":null,"homepage":"http://jakenherman.github.io/kcats/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JakenHerman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-06T22:56:11.000Z","updated_at":"2019-11-13T19:14:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"97fa3514-3258-47c2-b1a0-90f877f9a3f8","html_url":"https://github.com/JakenHerman/kcats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakenHerman%2Fkcats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakenHerman%2Fkcats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakenHerman%2Fkcats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakenHerman%2Fkcats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JakenHerman","download_url":"https://codeload.github.com/JakenHerman/kcats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245449532,"owners_count":20617187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-structures","node-module","stack"],"created_at":"2024-12-03T04:25:05.615Z","updated_at":"2025-03-25T10:43:40.498Z","avatar_url":"https://github.com/JakenHerman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kcats\nA stack implementation for node\n\n[![NPM](https://nodei.co/npm/kcats.png)](https://nodei.co/npm/kcats.png)\n\n[![Build Status](https://travis-ci.org/JakenHerman/kcats.svg?branch=master)](https://travis-ci.org/JakenHerman/kcats)\n\n## Installation\n\n`npm install kcats`\n\n## Usage \n`var kcats = require(\"kcats\")`\nThen use `var stack_name = new kcats(10, 2);` where `10`, here, is the maximum size of the total stack space, and `2` is how many stacks are created. Multiple stacks are created in one array. So the array will be 10 spaces, and stack 1 will be array space 0-4, and stack 2 will be array space 5-9. Of course, there can be more than 2 stacks.\n\n## API\n - `stack_name._isEmpty(stack_number)` -\u003e Boolean : Determines whether or not the stack contains anything.\n - `stack_name._reset(stack_number)` -\u003e Void : Allows you to instantaneously pop all elements, without printing them.\n - `stack_name._isFull(stack_number)` -\u003e Boolean : Determines whether or not the stack is full.\n - `stack_name._push(item, stack_number)` -\u003e Void : Allows you to add an item to the stack.\n - `stack_name._pop(stack_number)` -\u003e Item : Allows you to retrieve the element at the top of the stack.\n - `stack_name._peek(stack_number)` -\u003e Item : Allows you to print the element at the top of the stack without removing it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakenherman%2Fkcats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakenherman%2Fkcats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakenherman%2Fkcats/lists"}