graphql-encrypt

0.0.2 • Public • Published

graphql-encrypt

create prebuild encrypted GraphQL

Usage

$ node

> queries = require('./dist/example-query')
{ getUsers: '\n  query getUsers {\n    name\n    email\n  }\n' }

> require('./dist').dump('secret', 'production')(queries)
[ { getUsers:
     'eyJhbGciOiJIUzI1NiJ9.CiAgcXVlcnkgZ2V0VXNlcnMgewogICAgbmFtZQogICAgZW1haWwKICB9Cg.oqyeTL2Mpu59XLS-7FWDdSCHUGwZdfSmu_TkNgXQ54I' } ]

Readme

Keywords

none

Package Sidebar

Install

npm i graphql-encrypt

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

169 kB

Total Files

14

Last publish

Collaborators

  • acro5piano