1.0.10 • Published 2 months ago

fastify-evervault v1.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

fastify-evervault


CI js-standard-style npm

Fastify plugin for instantiating and encapsulating the Evervault client.

Install

npm i fastify-evervault

Usage

Add it to your project with register, passing in your Evervault API key.

const fastify = require('fastify')()

fastify.register(require('fastify-evervault'), {
  apiKey: 'ev:key:...',
})

fastify.get('/', async (request, reply) => {
  const { evervault } = fastify
  const encrypted = await evervault.encrypt('Hello World!')
  return encrypted
})

fastify.listen({ port: 3000 }, err => {
  if (err) throw err
})

Documentation

See the Evervault Node.js SDK for more information on the Evervault client.

License

MIT

1.0.10

2 months ago

1.0.7

10 months ago

1.0.6

11 months ago

1.0.5

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago