
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
@cryptoscamdb/api
Advanced tools
A Javascript wrapper for the CryptoScamDB API for Node.js and browser applications.
npm i -P @cryptoscamdb/api
MemoryCacheProvider
, in-memory caching) - Set the cache providerAll methods return a promise.
You can use the CacheProvider
interface to implement your own caching method (e.g. filesystem or Redis).
interface CacheProvider {
get<T = any>(key: string): Promise<T | undefined>;
getTimestamp(key: string): Promise<number>;
set<T = any>(key: string, result: T): Promise<boolean>;
has(key: string): Promise<boolean>;
remove(key: string): Promise<boolean>;
}
See cache.ts
for an example (in-memory) implementation.
import CryptoScamDBAPI from '@cryptoscamdb/api';
const options = {
cache: {
enable: true
}
};
const api = new CryptoScamDBAPI(options);
// Equal to https://cryptoscamdb.org/api/check/example.com
api.check('example.com')
.then(result => {
// Do something with the result
console.log(result.entries);
})
// Handle error
.catch(console.error);
// API is available as `window.csdbapi`
const api = new window.csdbapi();
// Equal to https://cryptoscamdb.org/api/check/example.com
api.check('example.com')
.then(result => {
// Do something with the result
console.log(result.entries);
})
// Handle error
.catch(console.error);
FAQs
A Javascript wrapper for the CryptoScamDB API
We found that @cryptoscamdb/api demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.