ran-boilerplate
Version:
React . Apollo (GraphQL) . Next.js Toolkit
26 lines (20 loc) • 729 B
Markdown
# google-proto-files [![Build Status][build_img]][build_link]
> Get a copy of the [googleapis](https://github.com/google/googleapis) proto files into your project
```sh
$ npm install --save google-proto-files
```
```js
var protoFiles = require('google-proto-files')
```
### Get a directory path by executing as a function
```js
protoFiles('logging', 'v2')
// node_modules/google-proto-files/google/logging/v2
```
### Get a path to the entry proto file for a specific API version
```js
protoFiles.pubsub.v1
// node_modules/google-proto-files/google/pubsub/v1/pubsub.proto
```
[build_img]: https://travis-ci.org/googleapis/nodejs-proto-files.svg?branch=master
[build_link]: https://travis-ci.org/googleapis/nodejs-proto-files