{"_id":"tiny-stack","_rev":"210807","name":"tiny-stack","description":"Tiny stack for browser or server","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"}],"time":{"modified":"2023-03-24T08:32:36.000Z","created":"2014-04-29T11:13:10.209Z","2.0.1":"2018-08-31T18:03:06.104Z","2.0.0":"2018-07-13T12:02:07.656Z","1.1.0":"2018-07-13T11:25:34.344Z","1.0.0":"2015-09-04T15:37:36.043Z","0.1.0":"2014-04-29T11:13:10.209Z"},"users":{},"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"repository":{"type":"git","url":"git://github.com/avoidwork/tiny-stack.git"},"versions":{"2.0.1":{"name":"tiny-stack","description":"Tiny stack for browser or server","version":"2.0.1","homepage":"http://avoidwork.github.io/tiny-stack","author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"repository":{"type":"git","url":"git://github.com/avoidwork/tiny-stack.git"},"bugs":{"url":"https://github.com/avoidwork/tiny-stack/issues"},"main":"lib/tiny-stack","engineStrict":true,"engines":{"node":">=6.0.0"},"scripts":{"test":"grunt test"},"devDependencies":{"ajv":"^6.5.3","babel-core":"^6.26.3","babel-minify":"^0.4.3","babel-preset-env":"^1.7.0","grunt":"^1.0.3","grunt-babel":"^7.0.0","grunt-cli":"^1.2.0","grunt-contrib-concat":"^1.0.1","grunt-contrib-nodeunit":"^2.0.0","grunt-contrib-watch":"^1.1.0","grunt-eslint":"^21.0.0"},"keywords":["stack","tiny","micro"],"license":"BSD-3-Clause","gitHead":"dc146b7cb408e80934ad0ae1a3dce22446a29776","_id":"tiny-stack@2.0.1","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"dist":{"shasum":"9234ad1ba0542bc7450f4475c90f3e817b7d7cff","size":3063,"noattachment":false,"key":"/tiny-stack/-/tiny-stack-2.0.1.tgz","tarball":"http://name.csiicloud.com:7001/tiny-stack/download/tiny-stack-2.0.1.tgz"},"maintainers":[{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tiny-stack_2.0.1_1535738585641_0.12643250449171273"},"_hasShrinkwrap":false,"publish_time":1535738586104,"_cnpm_publish_time":1535738586104,"_cnpmcore_publish_time":"2021-12-16T23:52:35.482Z"},"2.0.0":{"name":"tiny-stack","description":"Tiny stack for browser or server","version":"2.0.0","homepage":"http://avoidwork.github.io/tiny-stack","author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"repository":{"type":"git","url":"git://github.com/avoidwork/tiny-stack.git"},"bugs":{"url":"https://github.com/avoidwork/tiny-stack/issues"},"main":"lib/tiny-stack","engineStrict":true,"engines":{"node":">=6.0.0"},"scripts":{"test":"grunt test"},"devDependencies":{"babel-core":"^6.26.3","babel-minify":"^0.4.3","babel-preset-env":"^1.7.0","grunt":"^1.0.3","grunt-babel":"^7.0.0","grunt-cli":"^1.2.0","grunt-contrib-concat":"^1.0.1","grunt-contrib-nodeunit":"^2.0.0","grunt-contrib-watch":"^1.1.0","grunt-eslint":"^21.0.0"},"keywords":["stack","tiny","micro"],"license":"BSD-3-Clause","gitHead":"8dfd2f97de839605504145e41ea356e30fd76891","_id":"tiny-stack@2.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.6.0","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"dist":{"shasum":"7a437eed59ae6c9fb5295c95376de3942d8db66c","size":6449,"noattachment":false,"key":"/tiny-stack/-/tiny-stack-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/tiny-stack/download/tiny-stack-2.0.0.tgz"},"maintainers":[{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tiny-stack_2.0.0_1531483327589_0.18893505212324024"},"_hasShrinkwrap":false,"publish_time":1531483327656,"_cnpm_publish_time":1531483327656,"_cnpmcore_publish_time":"2021-12-16T23:52:35.667Z"},"1.1.0":{"name":"tiny-stack","description":"Tiny stack for browser or server","version":"1.1.0","homepage":"http://avoidwork.github.io/tiny-stack","author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"repository":{"type":"git","url":"git://github.com/avoidwork/tiny-stack.git"},"bugs":{"url":"https://github.com/avoidwork/tiny-stack/issues"},"main":"lib/tiny-stack","engines":{"node":">=0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"babel-core":"^6.26.3","babel-minify":"^0.4.3","babel-preset-env":"^1.7.0","grunt":"^1.0.3","grunt-babel":"^7.0.0","grunt-cli":"^1.2.0","grunt-contrib-concat":"^1.0.1","grunt-contrib-nodeunit":"^2.0.0","grunt-contrib-uglify":"^3.3.0","grunt-contrib-watch":"^1.1.0","grunt-eslint":"^21.0.0"},"keywords":["stack","tiny","micro"],"license":"BSD-3-Clause","gitHead":"af355e88735f7ef1319d8eea38ae9f1c58dffd49","_id":"tiny-stack@1.1.0","_npmVersion":"6.1.0","_nodeVersion":"10.6.0","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"dist":{"shasum":"a5d65c5753709ea43b29e903e6f6323185b9ac21","size":7292,"noattachment":false,"key":"/tiny-stack/-/tiny-stack-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/tiny-stack/download/tiny-stack-1.1.0.tgz"},"maintainers":[{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tiny-stack_1.1.0_1531481134247_0.7958314375960558"},"_hasShrinkwrap":false,"publish_time":1531481134344,"_cnpm_publish_time":1531481134344,"_cnpmcore_publish_time":"2021-12-16T23:52:35.860Z"},"1.0.0":{"name":"tiny-stack","description":"Tiny stack for browser or server","version":"1.0.0","homepage":"http://avoidwork.github.io/tiny-stack","author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"repository":{"type":"git","url":"git://github.com/avoidwork/tiny-stack.git"},"bugs":{"url":"https://github.com/avoidwork/tiny-stack/issues"},"main":"lib/tiny-stack","engines":{"node":">=0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"^0.4.5","grunt-cli":"^0.1.13","grunt-contrib-concat":"^0.5.1","grunt-contrib-jshint":"^0.11.3","grunt-contrib-nodeunit":"^0.4.1","grunt-contrib-watch":"^0.6.1","grunt-exec":"^0.4.6","grunt-sed":"^0.1.1"},"keywords":["stack","tiny","micro"],"license":"BSD-3-Clause","gitHead":"77556bd8e0da4bfeaac45f02e5ff1dc579526de9","_id":"tiny-stack@1.0.0","_shasum":"e058ed1daff2e733da2dcc8879d6b01d26e2c1f6","_from":"tiny-stack","_resolved":"file:tiny-stack","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"}],"dist":{"shasum":"e058ed1daff2e733da2dcc8879d6b01d26e2c1f6","size":6081,"noattachment":false,"key":"/tiny-stack/-/tiny-stack-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/tiny-stack/download/tiny-stack-1.0.0.tgz"},"directories":{},"publish_time":1441381056043,"_hasShrinkwrap":false,"_cnpm_publish_time":1441381056043,"_cnpmcore_publish_time":"2021-12-16T23:52:36.049Z"},"0.1.0":{"name":"tiny-stack","description":"Tiny stack for browser or server","version":"0.1.0","homepage":"http://avoidwork.github.io/tiny-stack","author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"repository":{"type":"git","url":"git://github.com/avoidwork/tiny-stack.git"},"bugs":{"url":"https://github.com/avoidwork/tiny-stack/issues"},"licenses":[{"type":"BSD-3","url":"https://raw.github.com/avoidwork/tiny-stack/master/LICENSE"}],"main":"lib/tiny-stack","engines":{"node":">=0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.1","grunt-cli":"~0.1.6","grunt-exec":"~0.4","grunt-sed":"~0.1","grunt-contrib-concat":"~0.1.3","grunt-contrib-jshint":"~0.1","grunt-contrib-nodeunit":"~0.1.2","grunt-contrib-watch":"~0.2"},"keywords":["stack","tiny","micro"],"_id":"tiny-stack@0.1.0","dist":{"shasum":"1a848173fc0bfc54e77bb2e9504d2d3c8ad79621","size":3108,"noattachment":false,"key":"/tiny-stack/-/tiny-stack-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/tiny-stack/download/tiny-stack-0.1.0.tgz"},"_from":"tiny-stack","_npmVersion":"1.4.3","_npmUser":{"name":"avoidwork","email":"jason@attack.io"},"maintainers":[{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"}],"directories":{},"publish_time":1398769990209,"_hasShrinkwrap":false,"_cnpm_publish_time":1398769990209,"_cnpmcore_publish_time":"2021-12-16T23:52:36.236Z"}},"readme":"# Tiny Stack\r\n\r\nStack for Client or Server.\r\n\r\n[![build status](https://secure.travis-ci.org/avoidwork/tiny-stack.png)](http://travis-ci.org/avoidwork/tiny-stack)\r\n\r\n## API\r\n#### clear\r\nClears the stack\r\n\r\n#### length\r\nGets the length/size of the stack\r\n\r\n#### peek\r\nGets the top item of the stack\r\n\r\n#### pop\r\nGets & removes the top item of the stack\r\n\r\n#### push\r\nAdds an item to the top the stack\r\n\r\n#### empty\r\nTests if this stack is empty\r\n\r\n#### search\r\nReturns the 1-based position where an object is on this stack\r\n\r\n## Example\r\n```\r\nconst stack = require(\"tiny-stack\"),\r\n    mystack = stack(),\r\n    jane = {name: \"Jane Doe\"},\r\n    john = {name: \"John Doe\"};\r\n\r\nmystack.length(); // 0\r\nmystack.empty(); // true\r\nmystack.push(john);\r\nmystack.push(jane);\r\nmystack.length(); // 2\r\nmystack.search(jane); // 1\r\nmystack.search(john); // 2\r\nmystack.search({}); // -1\r\nmystack.empty(); // false\r\nmystack.peek(); // {name: \"Jane Doe\"}\r\nmystack.pop();\r\nmystack.length(); // 1\r\nmystack.peek(); // {name: \"John Doe\"}\r\nmystack.clear();\r\nmystack.length(); // 0\r\n```\r\n\r\n## License\r\nCopyright (c) 2018 Jason Mulligan\r\nLicensed under the BSD-3-Clause license.\r\n","_attachments":{},"homepage":"http://avoidwork.github.io/tiny-stack","bugs":{"url":"https://github.com/avoidwork/tiny-stack/issues"},"license":"BSD-3-Clause"}