The API documentation is here.
Install it with
npm install lamb
Require it in node.js:
var _ = ;
It's useful to alias it to have a shorter symbol, like
_, as I did above and throughout the documentation: it's cleaner and the
lamb object itself can be used as a placeholder argument in partial application.
In a browser, simply include the version you want from the
Doing so a
lamb variable will be created in the global object.
The source map for the minified file is in the same
The URLs above will retrieve the latest version, but you can target a specific one:
Please note that Lamb is served by jsDelivr since version 0.42.0.
You can try it right now in your browser, too.
Lamb uses semantic versioning and please be aware that, as long as the major version is
bump in the minor version could involve a breaking change in the API.
You can check the recent or the full changelog to see if your code is affected.
Are your wheels rounder? Not at all, but I do try my best to add better suspension; and you do realise that you're reading a guy talking to himself, don't you?
Why ECMAScript 5? Because this is simply me tidying up some old code, and will hopefully be my goodbye to ES5 before fully diving into the world of transpilers.
Are there plans for the future? Absolutely yes: this isn't a complete work at all, only a first public release. I need better documentation and examples for starters, and I also want to add a bunch of other functions and concepts into the mix.
I really like Lamb's logo: are you the designer? I like it a lot too and, no, it isn't my doing: the author is a very talented designer who never signs his works by choice and doesn't want to be credited for it. Other than being eternally grateful, the least I can do is offer my services as a middleman and put you in touch if you need his craft.
Why "Lamb"? See the main header: because it's docile like a lamb.
You can also check the full changelog.
v0.46.0 - 2016/12/07
v0.45.0 - 2016/11/14
v0.44.0 - 2016/11/08
testWithnow throw an exception when the source string is
niland convert to string every other value
repeatnow floors the value received as the
timesparameter instead of ceiling it
charparameter of the padding functions isn't optional anymore and will be coerced to string
testWithare now safe to reuse even when the global flag is used in the pattern
v0.43.0 - 2016/11/03
v0.42.0 - 2016/10/25