# kotlinify

> We all love the functional aspects of JavaScript. However, in some scenarios we wish to take it to the next level. Kotlinify-js adds some functional concepts of Kotlin to JavaScript.

Latest version **0.1.0** (published 2019-02-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install kotlinify
pnpm add kotlinify
yarn add kotlinify
bun add kotlinify
```

## Health

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

Positive: no vulnerabilities; high maintenance score.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2019-02-15 |
| First published | 2019-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | wilmveel |

## Links

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

## Recent versions

- 0.1.0 (latest) — 2019-02-15

## README

# kotlinify-js

We all love the functional aspects of JavaScript. However, in some scenarios we wish to take it to the next level. Kotlinify-js
adds some functional concepts of Kotlin to JavaScript.

Looking at the pipe and chain styles, we find that in this way flow is ordered chronologically.

## Install

```
npm i kotlinify -S
```

## Usage

```
import { pipe, chain } from './kotlinify';
```

## Examples

Functions can be chained on a value:
```
chain('hello')
    .let(capitalize)
    .let(exclaim, { times: 2 })
    .also(console.log)
    .get(cheer, { times: 2 });

// instead of doing:
cheer(exclaim(capitalize('hello'), { times: 2 }), { times: 2} );

// or:
const value = exclaim(capitalize('hello'), { times: 2 });
console.log(value);
cheer(value, { times: 2 });
```

You can set up a pipe where the first argument is a value and then functions are applied.
```
pipe('hello',
    capitalize,
    it => exclaim(it, { times: 2 }),
    it => cheer(it, { times: 2 }),
);
```

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