Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
#wodge A collection of useful functions.
#API Documentation Generated jsdoc documentation.
##extend Merge a list of objects, left to right, into one.
###Parameters object {Object} - a sequence of Object instances to be extended
###Example
w.extend({}, { one: 1, three: 3 }, { one: "one", two: 2 }, { four: 4 });
// { one: "one", two: 2, three: 3, four: 4 }
##clone Returns a copy of the input object
###Parameters input {Object} - the object to clone
Returns Object
##omit Returns a clone of the input object, minus the specified properties
###Parameters input {Object} - the object to clone toOmit {string[]} - an array of property names to omit from the clone
###Example
w.omit({ one: 1, two: 2, three: 3, four: 4 }, [ "two", "four" ]);
// { one: 1, three: 3 }
Returns Object
##escapeRegExp escape special regular expression characters
###Example
w.escapeRegExp("(.*)");
// '\\(\\.\\*\\)'
##pluck Plucks the value of the specified property from each object in the input array
###Parameters arrayOfObjects {Object[]} - the input array of objects the {string} - property to pluck
###Example
var data = [
{one: 1, two: 2},
{two: "two"},
{one: "one", two: "zwei"},
];
w.pluck(data, "one");
// [ 1, "one" ]
w.pluck(data, "two");
// [ 2, "two", "zwei" ]
w.pluck(data, "one", "two");
// [ 1, "two", "one" ]
Returns Array
##arrayify Either:
##getHomeDir Cross-platform home directory retriever
##exists ###Example
exists([ 1, 2, 3 ], 2) // true
exists([
{ result: false, number: 1 },
{ result: false, number: 2 }
], { result: true }) // false
##first
Works on an array of objects. Returns the first object with property
set to value
.
##commonDir commonDir returns the directory common to each path in the list
###Parameters files {Array} - An array of file paths to inspect
Returns string - A single path ending with the path separator, e.g. "/user/some/folder/"
FAQs
a wodge of functional dough
The npm package wodge receives a total of 3 weekly downloads. As such, wodge popularity was classified as not popular.
We found that wodge 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.