Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@linear/sdk

Package Overview
Dependencies
Maintainers
5
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@linear/sdk

The Linear Client SDK for interacting with the Linear GraphQL API

  • 7.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
171K
increased by6.43%
Maintainers
5
Weekly downloads
 
Created

What is @linear/sdk?

@linear/sdk is an SDK for interacting with the Linear API, which allows developers to programmatically manage issues, projects, teams, and other resources within the Linear app. It provides a convenient way to integrate Linear's functionalities into your own applications.

What are @linear/sdk's main functionalities?

Authentication

This feature allows you to authenticate with the Linear API using an API key. The LinearClient instance is then used to make further API calls.

const { LinearClient } = require('@linear/sdk');
const client = new LinearClient({ apiKey: 'your-api-key' });

Create Issue

This feature allows you to create a new issue in a specified team. You need to provide the team ID, title, and description of the issue.

const issue = await client.issueCreate({
  teamId: 'team-id',
  title: 'New Issue',
  description: 'Description of the issue'
});

Fetch Issues

This feature allows you to fetch a list of issues. The issues are returned as an array of nodes, which you can then process or display as needed.

const issues = await client.issues();
console.log(issues.nodes);

Update Issue

This feature allows you to update an existing issue. You need to provide the issue ID and the fields you want to update.

const updatedIssue = await client.issueUpdate('issue-id', {
  title: 'Updated Title',
  description: 'Updated Description'
});

Delete Issue

This feature allows you to delete an existing issue. You need to provide the issue ID, and it returns a success status.

const deleted = await client.issueDelete('issue-id');
console.log(deleted.success);

Other packages similar to @linear/sdk

FAQs

Package last updated on 31 Jul 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc