# ljsp-core

> A lisp-inspired functional library for javascript programmers

Latest version **0.1.4** (published 2021-11-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install ljsp-core
pnpm add ljsp-core
yarn add ljsp-core
bun add ljsp-core
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2021-11-29 |
| First published | 2021-11-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 145.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | joe-crick, josipbrcina |
| Keywords | lisp, javascript, functional, util, utils, utilities, functions, toolkit, fp, functional programming, clojure |

## Links

- npm: https://www.npmjs.com/package/ljsp-core
- Repository: https://github.com/finleap-connect/ljsp-js
- Homepage: https://github.com/finleap-connect/ljsp-js#readme
- Issues: https://github.com/finleap-connect/ljsp-js/issues
- npm.io page: https://npm.io/package/ljsp-core

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.20

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2021-11-29
- 0.1.8 (beta) — 2021-12-02
- 0.1.7 — 2021-12-01
- 0.1.6 — 2021-12-01
- 0.1.5 — 2021-12-01
- 0.1.3 — 2021-11-29
- 0.1.2 — 2021-11-25
- 0.1.1 — 2021-11-25
- 0.1.0 — 2021-11-25

## README

<img src="https://ljsp.org/img/logo.svg" width="200" height="200"/>

# LJSP JS

[![version][version-badge]][changelog]

[changelog]: CHANGELOG.md
[version-badge]: https://img.shields.io/badge/version-0.1.4-blue.svg

# LJSP: Embrace the Lisp in JavaScript!
Whether you agree that JavaScript is a Lisp or not, you can still harness the Lisp-inspired power of LJSP in your app. LJSP derives most of its functions from Clojure libraries. Clojurians will notice the extent to which we treated the Clojure docs not only as our requirements' specification, but as a great place to copy and paste text for our docs! For this, we offer heart-felt, tremendous thanks to the Clojure community.

For information on how to use LJSP, please visit our official documentation site:
[LJSP.org](https://www.ljsp.org)

## Getting Started

NPM `npm i ljsp-core`

YARN `yarn add ljsp-core`

### USAGE

```javascript
import { log, condp, str, mult, count, instance$ } from 'ljsp-core';

log("Enter a number: ")
(function(line) {
    log(
     condp(eq, value,
       1, "one",
       2, "two",
       3, "three",
       str('unexpected value, "', value, '"')))
    log(
     condp(instance$, value,
       Number, () => mult(value, 2),
       String, () => mult(count(value), 2)))
})(Number(readLine()))
```

### Submission Guidelines

See the [CONTRIBUTING.md](CONTRIBUTING.md)

[semantic-versioning]: https://semver.org/spec/v2.0.0.html
[conventional-commits]: https://www.conventionalcommits.org/en/v1.0.0/

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