
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
bare-atomics
Advanced tools
Native synchronization primitives for JavaScript.
npm i bare-atomics
const mutex = new Mutex([options])
Options include:
{
recursive: false
}
const mutex = Mutex.from(handle[, options])
Options are the same as new Mutex()
.
mutex.handle
A SharedArrayBuffer
with the underlying mutex handle.
mutex.held
Whether or not the current thread currently holds the mutex.
mutex.lock()
const success = mutex.tryLock()
mutex.unlock()
mutex.destroy()
const semaphore = new Semaphore(value)
const semaphore = Semaphore.from(handle)
semaphore.handle
A SharedArrayBuffer
with the underlying semaphore handle.
semaphore.wait()
const success = semaphore.tryWait()
semaphore.post()
semaphore.destroy()
const condition = new Condition()
const condition = Condition.from(handle)
condition.handle
A SharedArrayBuffer
with the underlying condition handle.
const success = condition.wait(mutex[, timeout])
condition.signal()
condition.broadcast()
condition.destroy()
const barrier = new Barrier(count)
const barrier = Barrier.from(handle)
barrier.handle
A SharedArrayBuffer
with the underlying barrier handle.
const success = barrier.wait()
barrier.destroy()
Apache-2.0
FAQs
Native synchronization primitives for JavaScript
The npm package bare-atomics receives a total of 5 weekly downloads. As such, bare-atomics popularity was classified as not popular.
We found that bare-atomics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.