Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
@emotionagency/utils
Advanced tools
Readme
Useful utilities from the emotion-agency
npm i @emotionagency/utils
or
yarn add @emotionagency/utils
Custom wrapper around standard API of requestAnimationFrame to optimize performance
import {raf} from '@emotionagency/utils'
\\ subscribe
raf.on(fn)
unsubscribe
raf.off(fn)
Custom wrapper around standard API of resize event with debounce function to optimize performance
import {resize} from '@emotionagency/utils'
\\ subscribe
resize.on(fn)
unsubscribe
resize.off(fn)
Standart lerp function
import {lerp} from '@emotionagency/utils'
lerp(first number, second number, interpolation value)
Standart clamp function
import {clamp} from '@emotionagency/utils'
clamp(clamping value, min value, max value)
A function that creates a new DOM-element with the ability to immediately assign the necessary classes to it
import {createNewElement} from '@emotionagency/utils'
createNewElement(tag, classes)
A function that creates a Promise with delay
import {delayPromise} from '@emotionagency/utils'
async delayFunc = () => {
await delayPromise(1000)
//logic
}
A function that generate random string by length
import {keysGenerator} from '@emotionagency/utils'
const randomKey = keysGenerator(10)
FAQs
Useful utilities from the emotion-agency
The npm package @emotionagency/utils receives a total of 24 weekly downloads. As such, @emotionagency/utils popularity was classified as not popular.
We found that @emotionagency/utils demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.