A small purely functional library of curried functions, with great piping possibilities!
A light weight functional JavaScript library that only depends on itself.
Because I think mineral names are cool
The goal for Kyanite is to be stripped down, light weight, and intuitive. The idea is to be performant and easy to use in a functional setting, making it simple to build reusable functions in your code base with powerful and organized algorithmic pipes. Ultimately, Kyanite’s continued growth and improvement will support the growth and improvement of the JavaScript community
Note: As of
v2.0.0
the module should be imported as justK
instead ofkyanite
The unminified version of the library is no longer available as of 2.0.0
With a CDN
<!-- It is recommended to replace the @latest with a strict version number for production -->
<script src="https://cdn.jsdelivr.net/npm/kyanite@latest/dist/kyanite.iife.min.js"></script>
<script>
K.isEmpty({})
</script>
Or installing with npm i kyanite
and then:
Standard module system
// This will use the module path in the package.json (src/index.js)
import * as K from 'kyanite'
Common JS
// For the prod minified version
const K = require('kyanite')
Kyanite follows the tap setup using the tape testing suite.
To run the tests:
git clone
the repocd
into the repo foldernpm i
npm t
A lot of the if not most of the inspiration for this library came from 2 libraries I follow closely, Primarily most of it stems from: