{"id":17321800,"url":"https://github.com/avoidwork/tiny-stack","last_synced_at":"2025-07-19T20:39:14.163Z","repository":{"id":16519312,"uuid":"19272422","full_name":"avoidwork/tiny-stack","owner":"avoidwork","description":"Stack micro library","archived":false,"fork":false,"pushed_at":"2023-11-11T01:50:34.000Z","size":109,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-14T12:10:13.915Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://avoidwork.github.io/tiny-stack","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avoidwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["avoidwork"]}},"created_at":"2014-04-29T10:14:56.000Z","updated_at":"2024-06-19T01:36:43.315Z","dependencies_parsed_at":"2024-06-19T01:52:44.296Z","dependency_job_id":null,"html_url":"https://github.com/avoidwork/tiny-stack","commit_stats":{"total_commits":14,"total_committers":3,"mean_commits":4.666666666666667,"dds":0.4285714285714286,"last_synced_commit":"cd45ff2bab58092256e401b2539d4de4dd9a272a"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avoidwork%2Ftiny-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avoidwork%2Ftiny-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avoidwork%2Ftiny-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avoidwork%2Ftiny-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avoidwork","download_url":"https://codeload.github.com/avoidwork/tiny-stack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248914005,"owners_count":21182356,"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":[],"created_at":"2024-10-15T13:39:39.844Z","updated_at":"2025-04-14T16:02:03.883Z","avatar_url":"https://github.com/avoidwork.png","language":"JavaScript","funding_links":["https://github.com/sponsors/avoidwork"],"categories":[],"sub_categories":[],"readme":"# Tiny Stack\n\nStack for Client or Server.\n\n[![build status](https://secure.travis-ci.org/avoidwork/tiny-stack.png)](http://travis-ci.org/avoidwork/tiny-stack)\n\n## API\n#### clear\nClears the stack\n\n#### length\nGets the length/size of the stack\n\n#### peek\nGets the top item of the stack\n\n#### pop\nGets \u0026 removes the top item of the stack\n\n#### push\nAdds an item to the top the stack\n\n#### empty\nTests if this stack is empty\n\n#### search\nReturns the 1-based position where an object is on this stack\n\n## Example\n```\nconst stack = require(\"tiny-stack\"),\n    mystack = stack(),\n    jane = {name: \"Jane Doe\"},\n    john = {name: \"John Doe\"};\n\nmystack.length(); // 0\nmystack.empty(); // true\nmystack.push(john);\nmystack.push(jane);\nmystack.length(); // 2\nmystack.search(jane); // 1\nmystack.search(john); // 2\nmystack.search({}); // -1\nmystack.empty(); // false\nmystack.peek(); // {name: \"Jane Doe\"}\nmystack.pop();\nmystack.length(); // 1\nmystack.peek(); // {name: \"John Doe\"}\nmystack.clear();\nmystack.length(); // 0\n```\n\n## License\nCopyright (c) 2018 Jason Mulligan\nLicensed under the BSD-3-Clause license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favoidwork%2Ftiny-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favoidwork%2Ftiny-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favoidwork%2Ftiny-stack/lists"}