open-index/open-npm huggingface dataset:
npm package: @jeanpierrecarvalho/vue-server-renderer
Description: server renderer for Vue 2.0
Author: Evan You
Latest version: 1.0.4

# vue-server-renderer

> This package is auto-generated. For pull requests please see [src/platforms/web/entry-server-renderer.js](https://github.com/vuejs/vue/blob/dev/src/platforms/web/entry-server-renderer.js).

This package offers Node.js server-side rendering for Vue 2.0.

- [API Reference](https://ssr.vuejs.org/en/api.html)
- [Vue.js Server-Side Rendering Guide](https://ssr.vuejs.org)
npm package: @jeansoon/tiny
Description: Removes all spaces from a string
Latest version: 0.0.1

# @jeansoon/tiny

[![npm (scoped)](https://img.shields.io/npm/v/@jeansoon/tiny.svg)](https://www.npmjs.com/package/@jeansoon/tiny)
[![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@jeansoon/tiny.svg)](https://www.npmjs.com/package/@jeansoon/tiny)

Removes all spaces from a string.

## Install

```
$ npm install @jeansoon/tiny
```

## Usage

```js
const tiny = require("@jeansoon/tiny");

tiny("So much space!");
//=> "Somuchspace!"

tiny(1337);
//=> Uncaught TypeError: Tiny wants a string!
//    at tiny (<anonymous>:2:41)
//    at <anonymous>:1:1
```
npm package: @jeanycyang/google-api-access-token
Description: get google api access token via service-account json file
Author: Jean Yang
Latest version: 1.1.0

# Google API Access Token

[![npm version](https://badge.fury.io/js/%40jeanycyang%2Fgoogle-api-access-token.svg)](https://badge.fury.io/js/%40jeanycyang%2Fgoogle-api-access-token)
[![Build Status](https://travis-ci.org/jeanycyang/google-api-access-token.svg?branch=master)](https://travis-ci.org/jeanycyang/google-api-access-token)
[![Coverage Status](https://coveralls.io/repos/github/jeanycyang/google-api-access-token/badge.svg?branch=master)](https://coveralls.io/github/jeanycyang/google-api-access-token?branch=master)

Get Google API access token from Google Cloud service account file/object.

## Features
- zero dependency
<!-- - 100% test coverage -->

## Install

```bash
npm install --save @jeanycyang/google-api-access-token
```

## Usage

```javascript
const getAccessToken = require('@jeanycyang/google-api-access-token');
```
Function `getAccessToken` returns a promise.

you can provide json file path or directly use object.

### from a json file

```javascript
const accessToken = await getAccessToken('./config/gckey.json', 'https://www.googleapis.com/drive/v2/files');
```
or

```javascript
getAccessToken('./config/gckey.json', 'https://www.googleapis.com/drive/v2/files')
  .then(accessToken => { ... });
```

### from google cloud key object

```javascript
const accessToken = await getAccessToken({
    "type": "service_account",
  "project_id": "gcp-project-1245",
  "private_key_id": "xxxxx",
  "private_key": "-----BEGIN PRIVATE KEY-----....",
  "client_email": "user-name@gcp-project-1245.iam.gserviceaccount.com",
  "client_id": "1234874585712327208344",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://oauth2.googleapis.com/token",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/user-name%40gcp-project-1245.iam.gserviceaccount.com"
}, 'https://www.googleapis.com/drive/v2/files');
```

or

```javascript
getAccessToken({
  "type": "service_account",
  "project_id": "gcp-project-1245",
  "private_key_id": "xxxxx",
  "private_key": "-----BEGIN PRIVATE KEY-----....",
  "client_email": "user-name@gcp-project-1245.iam.gserviceaccount.com",
  "client_id": "1234874585712327208344",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://oauth2.googleapis.com/token",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/user-name%40gcp-project-1245.iam.gserviceaccount.com"
}, 'https://www.googleapis.com/drive/v2/files')
  .then(accessToken => { ... });
```

## References
- https://developers.google.com/identity/protocols/OAuth2ServiceAccount
- https://developers.google.com/identity/protocols/googlescopes

## License

MIT