project-sock
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

Socket connection for GitHub Projects

Basic Usage

Add new private user project with custom item.

import { toProject } from "project-sock";
(async () => {
  const project = await toProject({
    owner: "GITHUB_USERNAME",
    title: "PROJECT TITLE",
    token: "GITHUB_TOKEN"
  });
  const title = "PROJECT ITEM";
  const body = "## CUSTOM MARKDOWN";
  await project.addItem(title, body);
})();

If a project with "PROJECT TITLE" exists, it will be reused.

Install

pnpm install

Development

pnpm build:lint

Now link "dist/index.js" in relevant dependencies.

Test

Create a GitHub token with repo and project scope. Write to .env:

GITHUB_USER="USERNAME"
GITHUB_REPO="TEST_REPOSITORY"
GITHUB_TOKEN="TEST_USER_TOKEN"
pnpm test

Publish

pnpm build:publish

Readme

Keywords

none

Package Sidebar

Install

npm i project-sock

Weekly Downloads

2

Version

1.1.1

License

MIT

Unpacked Size

91 kB

Total Files

23

Last publish

Collaborators

  • tvquizphd