How to use @linear/sdk - 2 common examples

To help you get started, we’ve selected a few @linear/sdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github linearapp / linear / packages / cli / src / client.ts View on Github external
import { Linear } from "@linear/sdk";

if (!process.env.LINEAR_API_KEY) {
  throw new Error("Expected LINEAR_API_KEY env var to be set, but it wasn't");
}

export const client = new Linear({
  apiKey: process.env.LINEAR_API_KEY,
});
github linearapp / linear / packages / vscode-extension / src / IssueNodeProvider.ts View on Github external
public constructor() {
    this.onDidChangeTreeData = this._onDidChangeTreeData.event;
    this.linear = new Linear({
      token: "",
    });
    this.refresh();
  }

@linear/sdk

The Linear Client SDK for interacting with the Linear GraphQL API

MIT
Latest version published 12 days ago

Package Health Score

84 / 100
Full package analysis

Popular @linear/sdk functions

Similar packages