Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@esm2cjs/cacheable-lookup
Advanced tools
A cacheable dns.lookup(…) that respects TTL. This is a fork of szmarczak/cacheable-lookup, but with CommonJS support.
This is a fork of https://github.com/szmarczak/cacheable-lookup, but automatically patched to support ESM and CommonJS, unlike the original repository.
You can use an npm alias to install this package under the original name:
npm i @szmarczak/cacheable-lookup@npm:@esm2cjs/cacheable-lookup
// package.json
"dependencies": {
"@szmarczak/cacheable-lookup": "npm:@esm2cjs/cacheable-lookup"
}
but npm
might dedupe this incorrectly when other packages depend on the replaced package. If you can, prefer using the scoped package directly:
npm i @esm2cjs/cacheable-lookup
// package.json
"dependencies": {
"@esm2cjs/cacheable-lookup": "^ver.si.on"
}
// Using ESM import syntax
import CacheableLookup from "@esm2cjs/cacheable-lookup";
// Using CommonJS require()
const CacheableLookup = require("@esm2cjs/cacheable-lookup").default;
Note: Because the original module uses
export default
, you need to append.default
to therequire()
call.
For more details, please see the original repository.
To support my efforts in maintaining the ESM/CommonJS hybrid, please sponsor here.
To support the original author of the module, please sponsor here.
FAQs
A cacheable dns.lookup(…) that respects TTL. This is a fork of szmarczak/cacheable-lookup, but with CommonJS support.
The npm package @esm2cjs/cacheable-lookup receives a total of 6,061 weekly downloads. As such, @esm2cjs/cacheable-lookup popularity was classified as popular.
We found that @esm2cjs/cacheable-lookup 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.