0.1.3 • Published 2 years ago

fetch-idl v0.1.3

Weekly downloads
2
License
ISC
Repository
github
Last release
2 years ago

fetch-idl CircleCI codecov npm version

Fetch Thrift or Proto files from Git Repositories

Usage

Install

npm install fetch-idl --save

Call the api

import fetchIdl from 'fetch-idl'

const repos = 'git@github.com:lancewuz/fetch-idl.git';
fetchIdl({ repo, branch: 'master', entryGlob: 'test/idl/!(error|index).thrift', outDir: `temp`, rootDir: '.' });

API

fetchIdl(params: FetchPramas): { commit: string }

fetch IDL files from repository, controlled by the FetchPramas:

interface FetchParams {
  // The repository of idl files
  repo: string;
  // The branch of the repo
  branch: string;
  // The entry file path expressed by Glob
  entryGlob: string;
  // The output directory for idl files
  outDir?: string;
  // The root directory of the entryGlob
  rootDir?: string;
  // The commit id of the repo
  commitId?: string;
}
0.1.3

2 years ago

0.1.1-0

2 years ago

0.1.2-0

2 years ago

0.0.11-0

2 years ago

0.0.12-1

2 years ago

0.0.12-0

2 years ago

0.0.11-1

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.0.10

3 years ago

0.0.10-0

3 years ago

0.0.9

3 years ago

0.0.9-0

3 years ago

0.0.8-0

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.7-0

3 years ago

0.0.6

3 years ago

0.0.5-0

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.4-0

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago