0.0.9-0 • Published 4 years ago

fetch-idl v0.0.9-0

Weekly downloads
2
License
ISC
Repository
github
Last release
4 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 repository = 'git@github.com:lancewuz/fetch-idl.git';
fetchIdl(repository, 'master', 'test/idl/!(error|index).thrift', `temp`, '.');

API

fetchIdl(repository: string, branch: string, entryGlob: string, outDir: string, rootDir: string): { commit: string }

fetch IDL files from repository and checkout to branch. Then parse the file and find the dependent files recursively, starting from entryGlob with rootDir as the root directory. In the end, write file contents to outDir. repository should conform to git urls. branch should be "master" or other created branches. entryGlob is an array of an entry Thrift or Proto file, which usually contain a "service" type. outDir is a target output directory.

0.1.3

3 years ago

0.1.1-0

3 years ago

0.1.2-0

3 years ago

0.0.11-0

4 years ago

0.0.12-1

3 years ago

0.0.12-0

3 years ago

0.0.11-1

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.1.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.0.10

4 years ago

0.0.10-0

4 years ago

0.0.9

4 years ago

0.0.9-0

4 years ago

0.0.8-0

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.7-0

4 years ago

0.0.6

5 years ago

0.0.5-0

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.4-0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago