Security News
RubyGems.org Adds New Maintainer Role
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.
A simple Javascript utilities library to ease your daily development routines. You can think of it as a mini-lodash.
Anyway, pedash means spicy in Bahasa Indonesia, literally. 🌶🥵🥵
Play it around at CodeSandbox
npm install pedash
or yarn add pedash
import { getLongest } from pedash;
// Then use it whatever you like
const foods = ["Pizza", "Lasagna", "Karedok", "Banana split", "Rendang", "Souffle"];
console.log(getLongest(foods));
// "Banana split"
import { getCharCountsByKey } from 'pedash'
const chars = [34, 2, 90, 99, 45, 99, 99, 34]
console.log(getCharCountsByKey(chars))
// {2: 1, 34: 2, 45: 1, 90: 1, 99: 3}
import { randomId } from 'pedash'
console.log(randomId())
// "t536fwpn1je"
import { getLongest } from 'pedash'
const people = ["Sid", "Rusmanto", "Udin", "Zainab"];
console.log(getLongest(people));
// "Rusmanto"
const peopleObj = [ // if the argument is in an array of objects shape
{ id: 1, name: "Glenn" },
{ id: 2, name: "Abi" },
{ id: 3, name: "Batugana" },
{ id: 4, name: "Zulu" }
];
console.log(getLongest(peopleObj, "name"))
// "Batugana"
import { getUnique } from 'pedash'
const uniqueValues = [100, 44, 30, 100, 54, 54];
console.log(getUnique(uniqueValues))
// [100, 44, 30, 54]
import { groupByKey } from 'pedash'
const valObj = [
{ id: 1, name: "Glenn", age: 56 },
{ id: 2, name: "Abi", age: 17 },
{ id: 3, name: "Batugana", age: 26 },
{ id: 4, name: "Zulu", age: 45 }
];
console.log(groupByKey(valObj, "name"))
// {
// Glenn: { id: 1, name: "Glenn", age: 56 },
// Abi: { id: 2, name: "Abi", age: 17 },
// Batugana: { id: 3, name: "Batugana", age: 26 },
// Zulu: { id: 4, name: "Zulu", age: 45 }
// }
import { getHighest } from 'pedash'
const numbers = [34, 2300, 56, 900];
console.log(getHighest(numbers))
// 2300
import { shuffle } from pedash;
const numbers = [56, 89, 21, 20, 7];
console.log(shuffle(numbers));
// [20, 21, 7, 89, 56]
import { removeDoubleWords } from pedash;
const sentence = "You you can do it now now"
console.log(removeDoubleWords(sentence));
// "You can do it now"
import { removeWhitespaces } from pedash;
const sentence = " You can do it now or never "
console.log(removeWhitespaces(sentence));
// "You can do it now or never"
import { stripTags } from pedash;
const tags = "<p><em>Hello</em> <strong>world!</strong></p>"
console.log(stripTags(tags));
// "Hello world!"
FAQs
A lodash-like javascript helper -- for dummies
We found that pedash 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
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.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.