New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@db-man/github

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@db-man/github

@db-man/github

latest
Source
npmnpm
Version
0.1.73
Version published
Maintainers
1
Created
Source

github

How to use Github class:

import { Github } from '@db-man/github';

const github = new Github({
  personalAccessToken: 'your personal access token',
  owner: 'your github username',
  repoName: 'your repo name',
});

github.getFileContentAndSha('/path/to/file').then(({ content, sha }) => {
  console.log(content, sha);
});

How to use GithubDb class:

import { GithubDb } from '@db-man/github';

const dbsSchema = {
  iam: {
    name: 'iam',
    description: 'iam db',
    tables: [
      {
        name: 'users',
        large: false,
      },
    ],
  },
};

const githubDb = new GithubDb({
  personalAccessToken: 'your personal access token',
  repoPath: 'db_files_dir',
  dbsSchema,
  owner: 'your github username',
  repoName: 'your repo name',
});

githubDb.getTableRows('iam', 'users').then(({ content, sha }) => {
  console.log(content, sha);
});

FAQs

Package last updated on 23 Oct 2025

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