fastify-evervault
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

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

Package Sidebar

Install

npm i fastify-evervault

Weekly Downloads

0

Version

1.0.7

License

ISC

Unpacked Size

5.89 kB

Total Files

7

Last publish

Collaborators

  • briscoooe