@purista/gcloud-secret-store
TypeScript icon, indicating that this package has built-in type declarations

1.11.0 • Public • Published

@purista/gcloud-secret-store

A secret store for using Google Cloud Secret Manager as storage.

const config = {
  projectId: 'project/MY_GOOGLE_PROJECT_ID'
}

const store = new GoogleSecretStore({ config })

await store.setSecret('mySecret', 'value')

let value = await store.getSecret('mySecret')
console.log(value) // outputs: { mySecret: 'value' }

await store.removeSecret('mySecret')

value = await store.getSecret('mySecret')
console.log(value) // outputs: undefined

Visit purista.dev

Follow on Twitter @purista_js
Join the Discord Chat

PURISTA - Typescript framework for IoT, microservices, and serverless | Product Hunt

Readme

Keywords

none

Package Sidebar

Install

npm i @purista/gcloud-secret-store

Homepage

purista.dev

Weekly Downloads

52

Version

1.11.0

License

ISC

Unpacked Size

20.2 kB

Total Files

28

Last publish

Collaborators

  • sebastianwessel