Skip to content

TypeScript

FalconJS is the CrowdStrike Falcon SDK for TypeScript and JavaScript. It provides full type safety across 120+ API services, handles OAuth2 authentication with automatic token management, and works in both Node.js and browser environments.

View on GitHub
Terminal window
npm install crowdstrike-falcon
import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({
cloud: process.env.FALCON_CLOUD!,
clientId: process.env.FALCON_CLIENT_ID,
clientSecret: process.env.FALCON_CLIENT_SECRET
});
const hosts = await client.hosts.queryDevicesByFilter(
"hostname:*'search-term'*",
10
);
console.log(hosts);