Caution
CrowdStrike currently does not have a maintainer for their official git repo. This is a fork exists purely because I needed a functional solution using this language. My hope is these changes will be merged upstream at some point. Use at your own risk.
CrowdStrike Falcon API JS library for the browser and Node
falconjs is an open source project, not a CrowdStrike product. As such it carries no formal support, expressed or implied.
npm install @clburlison/crowdstrike-falcon
import { FalconClient, FalconErrorExplain } from "crowdstrike-falcon";
const client = new FalconClient({
cloud: "us-1",
clientId: "",
clientSecret: "",
});
await client.sensorDownload
.getSensorInstallersCCIDByQuery()
.catch(async function (err) {
alert("Could not fetch CCID: " + (await FalconErrorExplain(err)));
})
.then((value) => {
console.log("my CCID: ", value);
});