
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
let [err, data] = await awaitWrap(Promise.resolve('1'));
if (err) {
console.log(err);
}
console.log(data);
const { clearSetIntervalFn, setTimeoutIdToList, clearTimeoutFn, timersArr, setTimersListToNull } = clearTimeId();
let id = window.setTimeout(() => {}, 0);
setTimeoutIdToList(id);
clearSetIntervalFn();
clearTimeoutFn();
setTimersListToNull();
let a = (x: string) => `a${x}`;
let b = (x: string) => `b${x}`;
let c = (x: string) => `c${x}`;
let composeFn = compose(a, b, c);
const result = composeFn('1'); // abc1
let fn = (a: string, b: string, c: string) => `${a}${b}${c}`;
let curryFn = curry(fn, 'a');
const result = curryFn('b', 'c'); // abc
const isBoolean = getTypeFn('Boolean');
const result = isBoolean(false); // true
const result1 = isObject({}); // true
const result2 = isArray('1'); // false
const val = 'ABC';
const result = getLowerCase(val); // 'abc'
const result = toFixedNumber(0.1 + 0.6789, 5); // 0.7789
const result1 = toFixedNumber(1.335); // 1.34
const result2 = toFixedNumber(1.334); // 1.33
const result = parseUrlQuery('a=1&b=2&c=3&a=4&a=5'); // {a: ['1', '4', '5'], b: '2', c: '3'}
const result1 = parseUrlQuery('?a=1&b=2&c=3'); // {a: '1', b: '2', c: '3'}
const result2 = parseUrlQuery(''); // {}
FAQs
custom utils
The npm package cus-utils receives a total of 55 weekly downloads. As such, cus-utils popularity was classified as not popular.
We found that cus-utils 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
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.