# js-sdk-stack

> Simple stack type.

Latest version **0.1.1** (published 2017-09-17) · Unlicense license · 0 weekly downloads

## Install

```sh
npm install js-sdk-stack
pnpm add js-sdk-stack
yarn add js-sdk-stack
bun add js-sdk-stack
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2017-09-17 |
| First published | 2017-09-17 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Bruno Dias |
| Maintainers | diasbruno |
| Keywords | stack, type |

## Links

- npm: https://www.npmjs.com/package/js-sdk-stack
- Repository: https://github.com/js-sdk/js-sdk-stack
- Homepage: https://github.com/js-sdk/js-sdk-stack#readme
- Issues: https://github.com/js-sdk/js-sdk-stack/issues
- npm.io page: https://npm.io/package/js-sdk-stack

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2017-09-17

## README

# js-sdk-stack

[![Build Status](https://travis-ci.org/js-sdk/js-sdk-stack.svg?branch=master)](https://travis-ci.org/js-sdk/js-sdk-stack) [![Coverage Status](https://coveralls.io/repos/github/js-sdk/js-sdk-stack/badge.svg?branch=master)](https://coveralls.io/github/js-sdk/js-sdk-stack?branch=master)

Simple stack type.

## library

```ts
$ Stack(init || []) : Stack

// Create a new stack.


$ Stack.push(item : a) : ()

// Pushes a value to the stack.


$ Stack.pop() : a

// Pops a value from the stack.


$ Stack.length() : Number

// The length of the stack.


$ Stack.map(f (item : a) -> b) : Stack

// Maps each value of the stack returning a new Stack.


$ Stack.filter(f (item : a) -> Boolean) : Stack

// Returns a filtered Stack.


$ Stack.reduce(f (acc : b, item : a) -> b, initial : b) -> b

// If no initial value is passed, it will use Stack.
```

## license

See `license.md` or visit [Unlicense](http://unlicense.org).

---
_Source: https://npm.io/package/js-sdk-stack · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
