https://github.com/alanrsoares/prelude-js
functional/point-free utils for JavaScript
https://github.com/alanrsoares/prelude-js
functional-programming
Last synced: 30 days ago
JSON representation
functional/point-free utils for JavaScript
- Host: GitHub
- URL: https://github.com/alanrsoares/prelude-js
- Owner: alanrsoares
- License: mit
- Created: 2015-07-22T03:58:02.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-08-03T06:39:10.000Z (almost 3 years ago)
- Last Synced: 2024-12-07T19:21:07.070Z (over 1 year ago)
- Topics: functional-programming
- Language: JavaScript
- Homepage:
- Size: 577 KB
- Stars: 100
- Watchers: 8
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-fp-js - preludejs - Hardcore Functional Programming for JavaScript. -TS. (Libraries)
- fucking-awesome-fp-js - preludejs - Hardcore Functional Programming for JavaScript. -TS. (Libraries)
- awesome-javascript - preludejs - Hardcore Functional Programming for JavaScript ` 📝 a year ago ` (Functional Programming [🔝](#readme))
- awesome-javascript - prelude-js - Hardcore Functional Programming for JavaScript - ★ 70 (Functional Programming)
- A-collection-of-awesome-browser-side-JavaScript-libraries-resources-and-shiny-things. - preludejs - Hardcore Functional Programming for JavaScript. (Functional Programming / Runner)
- awesome-javascript-cn - preludejs
- fucking-awesome-javascript - preludejs - Hardcore Functional Programming for JavaScript. (Functional Programming / Runner)
- awesome-javascript - preludejs - Hardcore Functional Programming for JavaScript. (Functional Programming / Runner)
README
# Preλude-js
A modular implementation of Haskell's Prelude for modern JavaScript.
The repo now targets native ESM and a Bun-first workflow. There is no Babel build step, no generated CommonJS dist in source control, and the package exports point directly at the maintained source files.
See [docs/README.md](./docs/README.md) for the module reference.
## Install
```bash
bun add preludejs
```
```bash
npm install preludejs
```
## Development
```bash
bun install
bun run lint
bun test
```
## Package Layout
- `preludejs` resolves to `src/index.js`.
- `preludejs/List`, `preludejs/Func`, `preludejs/Obj`, and the other module subpaths are exported directly.
- Deep imports such as `preludejs/List/map` are also exported for consumers that want single-function entrypoints.
- Legacy generated module folders are no longer stored in the repository root.
