- v2.1.0-beta.4Latest
- v2.1.0-beta.3
- v2.1.0
- v2.1.0-beta.2
- v2.1.0-beta.1
- v2.0.0
- v2.0.0-beta.1
- v1.10.0-beta.1
- v1.9.1-beta.1
- v1.9.0
- v1.9.0-beta.6
- v1.9.0-beta.5
- v1.9.0-beta.4
- v1.9.0-beta.3
- v1.9.0-beta.2
- v1.9.0-beta.1
- v1.8.1
- v1.8.1-beta.1
- v1.8.0
- v1.8.0-beta.8
- v1.8.0-beta.7
- v1.8.0-beta.6
- v1.8.0-beta.5
- v1.8.0-beta.4
- v1.8.0-beta.3
- v1.8.0-beta.2
- v1.8.0-beta.1
- v1.7.0
- v1.7.0-beta.3
- v1.7.0-beta.2
- v1.7.0-beta.1
- v1.6.2
- v1.6.2-beta.1
- v1.6.1
- v1.6.1-beta.1
- v1.6.0
- v1.6.0-beta.6
- v1.6.0-beta.5
- v1.6.0-beta.4
- v1.6.0-beta.3
- v1.6.0-beta.2
- v1.6.0-beta.1
- v1.5.1-beta.1
- v1.5.0
- v1.5.0-beta.4
- v1.5.0-beta.3
- v1.5.0-beta.2
- v1.5.0-beta.1
- v1.4.0
- v1.4.0-beta.2
- v1.4.0-beta.1
- v1.3.0
- v1.3.0-beta.5
- v1.3.0-beta.4
- v1.3.0-beta.3
- v1.3.0-beta.2
fonction
A modern practical functional library
✨ Feature
- 💚 Friendly type definition
- :earth_americas: Universal functions providing ESM and UMD
- :package: Optimized, super slim size
- 📄 TSDoc-style comments
- 🔢 Bigint support
- 🦕 Deno support
Fonction (French word for “function”, not typo:sweat_smile:) is modern practical functional library. Special attention is paid to bundle size and strict type definitions. Therefore, you can take out and use only what you want to use without worrying about the size.
📝 Docs
:truck: Install
npm i fonction
or
yarn add fonction
💫 Usage
fonction
provides multi platform modules.
🦕 Deno
Click to toggle contents of `code`
deno.land
import { add } from 'https://deno.land/x/fonction@v1.3.0/mod.ts'
add(1, 2) // 3
nest.land
import { add } from 'https://x.nest.land/fonction@1.3.0/mod.ts'
add(1, 2) // 3
:package: NPM
Click to toggle contents of `code`
ESM
import { add } from 'fonction'
add(1, 2) // 3
UMD
const { add } = require('fonction')
add(1, 2) // 3
:globe_with_meridians: CDN
Click to toggle contents of `code`
ESM
<script type="module">
import { add } from 'https://unpkg.com/fonction?module'
console.log(add(1, 2)) // 3
</script>
UMD
<script src="https://unpkg.com/fonction"></script>
<script>
console.log(F.add(1, 2)) // 3
</script>
🗺️ Loadmap
For the time being, my goal is to implement the functions implemented in the great starting projects (lodash, ramda, rambda, … etc).
The release will be a public release when it is fully tested in the beta
release and then merged into the main branch.
You can check the implementation status of all functions here.
You can also try all the features including the beta
version with the following command or URL.
npm i fonction@beta
or
yarn add fonction@beta
// deno.land
import {} from 'https://deno.land/x/fonction@v1.3.0-beta.x/mod.ts'