Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
docs: correct indenting on quickstart samples (#241)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈


<details><summary>Log from Synthtool</summary>

```
2020-03-20 04:10:19,470 synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py.
.eslintignore
.eslintrc.yml
.github/ISSUE_TEMPLATE/bug_report.md
.github/ISSUE_TEMPLATE/feature_request.md
.github/ISSUE_TEMPLATE/support_request.md
.github/PULL_REQUEST_TEMPLATE.md
.github/publish.yml
.github/release-please.yml
.github/workflows/ci.yaml
.kokoro/common.cfg
.kokoro/continuous/node10/common.cfg
.kokoro/continuous/node10/docs.cfg
.kokoro/continuous/node10/lint.cfg
.kokoro/continuous/node10/samples-test.cfg
.kokoro/continuous/node10/system-test.cfg
.kokoro/continuous/node10/test.cfg
.kokoro/continuous/node12/common.cfg
.kokoro/continuous/node12/test.cfg
.kokoro/continuous/node8/common.cfg
.kokoro/continuous/node8/test.cfg
.kokoro/docs.sh
.kokoro/lint.sh
.kokoro/presubmit/node10/common.cfg
.kokoro/presubmit/node10/docs.cfg
.kokoro/presubmit/node10/lint.cfg
.kokoro/presubmit/node10/samples-test.cfg
.kokoro/presubmit/node10/system-test.cfg
.kokoro/presubmit/node10/test.cfg
.kokoro/presubmit/node12/common.cfg
.kokoro/presubmit/node12/test.cfg
.kokoro/presubmit/node8/common.cfg
.kokoro/presubmit/node8/test.cfg
.kokoro/presubmit/windows/common.cfg
.kokoro/presubmit/windows/test.cfg
.kokoro/publish.sh
.kokoro/release/docs.cfg
.kokoro/release/docs.sh
.kokoro/release/publish.cfg
.kokoro/samples-test.sh
.kokoro/system-test.sh
.kokoro/test.bat
.kokoro/test.sh
.kokoro/trampoline.sh
.mocharc.js
.nycrc
.prettierignore
.prettierrc
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
codecov.yaml
renovate.json
samples/README.md
2020-03-20 04:10:20,240 synthtool > Wrote metadata to synth.metadata.

```
</details>
  • Loading branch information
yoshi-automation authored Mar 20, 2020
1 parent 857cc92 commit 415e32f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 260 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,22 @@ npm install google-p12-pem
### Using the client library

```javascript
const {getPem} = require('google-p12-pem');

/**
* Given a p12 file, convert it to the PEM format.
* @param {string} pathToCert The relative path to a p12 file.
*/
async function quickstart() {
// TODO(developer): provide the path to your cert
// const pathToCert = 'path/to/cert.p12';

const pem = await getPem(pathToCert);
console.log('The converted PEM:');
console.log(pem);
}

quickstart();
const {getPem} = require('google-p12-pem');

/**
* Given a p12 file, convert it to the PEM format.
* @param {string} pathToCert The relative path to a p12 file.
*/
async function quickstart() {
// TODO(developer): provide the path to your cert
// const pathToCert = 'path/to/cert.p12';

const pem = await getPem(pathToCert);
console.log('The converted PEM:');
console.log(pem);
}

quickstart();

```
#### CLI style
Expand Down
249 changes: 5 additions & 244 deletions synth.metadata
Original file line number Diff line number Diff line change
@@ -1,251 +1,12 @@
{
"updateTime": "2020-01-24T12:08:46.040180Z",
"updateTime": "2020-03-20T11:10:20.239692Z",
"sources": [
{
"template": {
"name": "node_library",
"origin": "synthtool.gcp",
"version": "2019.10.17"
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "bcad3e01b69851ad682a87f8202003a1683ad73a"
}
}
],
"newFiles": [
{
"path": ".compodocrc"
},
{
"path": ".eslintignore"
},
{
"path": ".eslintrc.yml"
},
{
"path": ".github/ISSUE_TEMPLATE/bug_report.md"
},
{
"path": ".github/ISSUE_TEMPLATE/feature_request.md"
},
{
"path": ".github/ISSUE_TEMPLATE/support_request.md"
},
{
"path": ".github/PULL_REQUEST_TEMPLATE.md"
},
{
"path": ".github/release-please.yml"
},
{
"path": ".gitignore"
},
{
"path": ".jsdoc.js"
},
{
"path": ".kokoro/.gitattributes"
},
{
"path": ".kokoro/common.cfg"
},
{
"path": ".kokoro/continuous/node10/common.cfg"
},
{
"path": ".kokoro/continuous/node10/docs.cfg"
},
{
"path": ".kokoro/continuous/node10/lint.cfg"
},
{
"path": ".kokoro/continuous/node10/samples-test.cfg"
},
{
"path": ".kokoro/continuous/node10/system-test.cfg"
},
{
"path": ".kokoro/continuous/node10/test.cfg"
},
{
"path": ".kokoro/continuous/node12/common.cfg"
},
{
"path": ".kokoro/continuous/node12/test.cfg"
},
{
"path": ".kokoro/continuous/node8/common.cfg"
},
{
"path": ".kokoro/continuous/node8/test.cfg"
},
{
"path": ".kokoro/docs.sh"
},
{
"path": ".kokoro/lint.sh"
},
{
"path": ".kokoro/presubmit/node10/common.cfg"
},
{
"path": ".kokoro/presubmit/node10/docs.cfg"
},
{
"path": ".kokoro/presubmit/node10/lint.cfg"
},
{
"path": ".kokoro/presubmit/node10/samples-test.cfg"
},
{
"path": ".kokoro/presubmit/node10/system-test.cfg"
},
{
"path": ".kokoro/presubmit/node10/test.cfg"
},
{
"path": ".kokoro/presubmit/node12/common.cfg"
},
{
"path": ".kokoro/presubmit/node12/test.cfg"
},
{
"path": ".kokoro/presubmit/node8/common.cfg"
},
{
"path": ".kokoro/presubmit/node8/test.cfg"
},
{
"path": ".kokoro/presubmit/windows/common.cfg"
},
{
"path": ".kokoro/presubmit/windows/test.cfg"
},
{
"path": ".kokoro/publish.sh"
},
{
"path": ".kokoro/release/common.cfg"
},
{
"path": ".kokoro/release/docs.cfg"
},
{
"path": ".kokoro/release/docs.sh"
},
{
"path": ".kokoro/release/publish.cfg"
},
{
"path": ".kokoro/samples-test.sh"
},
{
"path": ".kokoro/system-test.sh"
},
{
"path": ".kokoro/test.bat"
},
{
"path": ".kokoro/test.sh"
},
{
"path": ".kokoro/trampoline.sh"
},
{
"path": ".nycrc"
},
{
"path": ".prettierignore"
},
{
"path": ".prettierrc"
},
{
"path": ".readme-partials.yaml"
},
{
"path": ".repo-metadata.json"
},
{
"path": "CHANGELOG.md"
},
{
"path": "CODE_OF_CONDUCT.md"
},
{
"path": "CONTRIBUTING.md"
},
{
"path": "LICENSE"
},
{
"path": "README.md"
},
{
"path": "codecov.yaml"
},
{
"path": "linkinator.config.json"
},
{
"path": "package.json"
},
{
"path": "renovate.json"
},
{
"path": "samples/.eslintrc.yml"
},
{
"path": "samples/README.md"
},
{
"path": "samples/assets/key.p12"
},
{
"path": "samples/assets/key.pem"
},
{
"path": "samples/package.json"
},
{
"path": "samples/quickstart.js"
},
{
"path": "samples/test/samples.test.js"
},
{
"path": "src/bin/gp12-pem.ts"
},
{
"path": "src/index.ts"
},
{
"path": "synth.py"
},
{
"path": "system-test/assets/key.p12"
},
{
"path": "system-test/assets/key.pem"
},
{
"path": "system-test/system.ts"
},
{
"path": "test/assets/badkey.p12"
},
{
"path": "test/assets/key.p12"
},
{
"path": "test/assets/key.pem"
},
{
"path": "test/index.ts"
},
{
"path": "test/mocha.opts"
},
{
"path": "tsconfig.json"
}
]
}

0 comments on commit 415e32f

Please sign in to comment.