ember-cli-openpgp-shim
ES6 accessible module for OpenPGP.js within your Ember applications.
Features
- ES6 assessible module for OpenPGP.js
- FastBoot support
Installation
You can install either with ember install
:
For Ember CLI >= 0.2.3
:
ember install ember-cli-openpgp-shim
For Ember CLI < 0.2.3
:
ember install:addon ember-cli-openpgp-shim
Compatibility
This addon ist tested against the release
, beta
, canary
channels and version 1.13
.
Usage
;
Options
// config/environment.jsmodule { return openpgp: // Specify the output path of `openpgp.min.js` and `openpgp.worker.min.js` // // If you don't want to use web workers, you can disable // assets export by setting this option to `null`. // // Default: 'assets' assetsOutputPath: 'assets/openpgp' }
Examples
These code snippets are from the dummy app. Install and run it to create your own PGP key pair.
Generate Key
// tests/dummy/app/components/generate-key.js;;; Component;
Init Worker
// tests/dummy/app/components/init-worker.js;;; Component;
Changelog
Credits
I've used these projects to figure out stuff and copy code from:
- Jason Mitchell and his ember-cli-moment-shim
- Damian Senn and his ember-cli-emojione-shim
Thank you!
License
Contributing
Installation
git clone
this repositorynpm install
bower install
Running
The dummy app provides an interface to generate keys.
ember serve
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit http://ember-cli.com/.