
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@consento/codecs
Advanced tools
@consento/codecsExtended version of codecs that is suited for serialization, supports typescript
and supports msgpack.
const codecs = require('@consento/codecs')
const json = codecs('json')
const buffer = json.encode({ hello: 'world'}) // JSON buffer
json.decode(buffer)
This is particularly interesting for
TypeScriptas proper type declarations can be tough!
Codecs supports an additional fallback property that is used if a given codec is not available.
import codecs, { Codec, CodecOption } from '@consento/codecs'
const fn = function <TCodec extends CodecOption = undefined> ({ codec }: { codec?: TCodec } = {}): Codec<TCodec, 'msgpack'> {
return codecs(codec, 'msgpack') // The default fallback is 'binary', here we change it to 'msgpack'
}
fn().name === 'msgpack'
fn({ codec: 'json' }).name === 'json'
FAQs
Serializable (named) codecs, including msgpack that work with typescript
The npm package @consento/codecs receives a total of 3 weekly downloads. As such, @consento/codecs popularity was classified as not popular.
We found that @consento/codecs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.