Install @7urtle/lambda as NPM package
To use with Node.js:
1$ npm install --save @7urtle/lambda
Require @7urtle/lambda in Node.js:
1const L = require('@7urtle/lambda');23L.log('Hello world!');
Import @7urtle/lambda in Node.js:
1import * as L from '@7urtle/lambda';23L.log('Hello world!');
Or import just specific functions:
1import {log, upperCaseOf, compose} from '@7urtle/lambda';23const hello = compose(log, upperCaseOf);4hello('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>23<script>4// script on your website5// access @7urtle/lambda using the variable L6const message = L.upperCaseOf('hello world');7alert(message); // HELLO WORLD8</script>
1<script src="https://cdn.jsdelivr.net/npm/@7urtle/lambda@latest/dist/lambda.min.js"></script>23<script>4// script on your website5// access @7urtle/lambda using the variable L6const message = L.upperCaseOf('hello world');7alert(message); // HELLO WORLD8</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.