@7urtle/lambda
Get Started

Install @7urtle/lambda as NPM package

To use with Node.js:

1
$ npm install --save @7urtle/lambda

Require @7urtle/lambda in Node.js:

1
const L = require('@7urtle/lambda');
2
3
L.log('Hello world!');

Import @7urtle/lambda in Node.js:

1
import * as L from '@7urtle/lambda';
2
3
L.log('Hello world!');

Or import just specific functions:

1
import {log, upperCaseOf, compose} from '@7urtle/lambda';
2
3
const hello = compose(log, upperCaseOf);
4
hello('Hello World');
5
// => HELLO WORLD

Add @7urtle/lambda to your website

Get the minified version from GitHub: @7urtle/lambda dist.

1
<script src="./your/copy/of/lambda.min.js"></script>
2
3
<script>
4
// script on your website
5
// access @7urtle/lambda using the variable L
6
const message = L.upperCaseOf('hello world');
7
alert(message); // HELLO WORLD
8
</script>

1
<script src="https://cdn.jsdelivr.net/npm/@7urtle/lambda@latest/dist/lambda.min.js"></script>
2
3
<script>
4
// script on your website
5
// access @7urtle/lambda using the variable L
6
const message = L.upperCaseOf('hello world');
7
alert(message); // HELLO WORLD
8
</script>

Try @7urtle/lambda on online playground

Try @7urtle/lambda with online playground using CodePen.

Package information

NPM: @7urtle/lambda NPM
CDN: @7urtle/lambda jsdelivr
GitHub Source: @7urtle/lambda GitHub Source
GitHub Tests: @7urtle/lambda GitHub Tests
GitHub Issues: @7urtle/lambda GitHub Issues

@7urtle/lambda is built using using Webpack and Babel. 100 % test coverage is achieved using Jest. There are no internal dependencies on other libraries imported within the code. It is pure JavaScript.

Ask For Help

If you have any questions or need any help, please leave a message on @7urtle/lambda GitHub Issues to get quick assistance. If you find any errors in @7urtle/lambda or on the website please reach out.

Learn functional programming

Learn functional programming in JavaScript with @7urtle/lambda.