iamchiwon / FxTS

A functional programming library for TypeScript/JavaScript

Home Page:https://fxts.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

💬 Join the FxTS Slack community(en) 💬 Join the FxTS Slack community(ko)

fxts-icon FxTS

FxTS is a functional library for TypeScript/JavaScript programmers.

Why FxTS?

  • Lazy evaluation
  • Handling concurrent requests
  • Type inference
  • Follow iteration protocal Iterable / AsyncIterable

Installation

npm install @fxts/core

Documentation

Please review the API documentation

Usage

import { pipe, range, map, filter, take, each } from "@fxts/core";

pipe(
  range(10),
  map((a) => a + 10),
  filter((a) => a % 2 === 0),
  take(2),
  each((a) => console.log(a)),
);

you can also handle asynchronous data, see the example

Build

  • npm run build

Running Test

  • npm test

Running Type Test

  • npm run compile:check

License

Apache License 2.0

About

A functional programming library for TypeScript/JavaScript

https://fxts.dev

License:Apache License 2.0


Languages

Language:TypeScript 95.7%Language:JavaScript 3.5%Language:CSS 0.6%Language:Shell 0.2%Language:Makefile 0.1%