Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
discovery-tsd
Advanced tools
Generate TypeScript types from Google's Discovery API
$ npm install discovery-tsd
$ dtsd bigquery v2 > bigquery.d.ts
const createTypes = require('discovery-tsd');
const fs = require('fs');
const {promisify} = require('util');
const writeFile = promisify(fs.writeFile);
async function getTypes() {
const types = await createTypes('bigquery', 'v2');
await writeFile('./bigquery.d.ts', types);
}
Fetches the Discovery Document resource.
Refer to the getRest
Documentation for more details.
const {fetch} = require('discovery-tsd');
async function getJSON() {
const json = await fetch('bigquery', 'v2');
}
Creates types for the supplied Discovery Document JSON.
const {fetch, render} = require('discovery-tsd');
async function createTypes() {
const json = await fetch('bigquery', 'v2');
return render(json);
}
ISC
FAQs
Generates TypeScript declaration files from Google's Discovery API
We found that discovery-tsd 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.