
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
lodash-contrib
Advanced tools
The brass buckles on lodash's utility belt
Basically a lodash
compatible fork of underscore-contrib
While lodash provides a bevy of useful tools to support functional programming in JavaScript, it can't (and shouldn't) be everything to everyone. lodash-contrib is intended as a home for functions that, for various reasons, don't belong in lodash proper. In particular, it aims to be:
####Web
First, you’ll need lodash. Then you can grab the relevant lodash-contrib libraries and simply add something like the following to your pages:
<script src="lodash.js"></script>
<script src="lodash.object.builders.js"></script>
You could also use browserify to bundle your code into a JavaScript file that you can include in a web page.
Require lodash-contrib
in your main script file (e.g. test.js
) like so:
var _ = require('lodash-contrib');
// YOUR CODE COMES HERE
console.log(_.truthyAll(0, 1, 2, 'lodash-contrib!'));
then you could run browserify test.js -o browserified.js
to get lodash
, lodash-contrib
and your code into browserified.js
.
####Node
Just run npm install lodash-contrib
, you don't need to have lodash as it will be grabbed as a dependency.
We need some docs sync since rebasing to version 3 (some methods renamed xxxContrib)
There is still a lot of work to do around perf, documentation, examples, testing and distribution so any help in those areas is welcomed. Pull requests are accepted, but please search the issues before proposing a new sub-contrib or addition. Additionally, all patches and proposals should have strong documentation, motivating cases and tests. It would be nice if we could not only provide useful tools built on lodash, but also provide an educational experience for why and how one might use them.
Other (potentially) useful sub-contribs include the following:
What do these mean? Well, that’s up for discussion. :-)
FAQs
The brass buckles on lodash's utility belt
The npm package lodash-contrib receives a total of 1,691 weekly downloads. As such, lodash-contrib popularity was classified as popular.
We found that lodash-contrib demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.