From 3779739a632ecb527a32bfdeff26d2fb72e22b59 Mon Sep 17 00:00:00 2001 From: omeid Date: Tue, 2 Sep 2014 01:26:25 +1000 Subject: [PATCH] Add bower support --- README.md | 14 ++++++++++++-- bower.json | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 bower.json diff --git a/README.md b/README.md index 7920d60f..fd4f8367 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,18 @@ For server side use, install via npm: npm install openpgp + +### Browser support + +For use in browser, install via bower: + + bower install --save openpgp + +Or Fetch a minified build under [releases](https://github.com/openpgpjs/openpgpjs/releases). + +The library can be loaded via AMD/require.js or accessed globally via `window.openpgp`. + + ### Examples #### Encryption @@ -30,9 +42,7 @@ For server side use, install via npm: pgpMessage = openpgp.message.readArmored(pgpMessage); var plaintext = openpgp.decryptMessage(privateKey, pgpMessage); -### Browser support -Fetch a minified build under [releases](https://github.com/openpgpjs/openpgpjs/releases). The library can be loaded via AMD/require.js or accessed globally via `window.openpgp`. OpenPGP.js currently only fully supports browsers that implement `window.crypto.getRandomValues`. If you can help us support more browsers and runtimes, please chip in! diff --git a/bower.json b/bower.json new file mode 100644 index 00000000..a1061ca6 --- /dev/null +++ b/bower.json @@ -0,0 +1,35 @@ +{ + "name": "openpgpjs", + "version": "0.7.2", + "homepage": "http://openpgpjs.org/", + "authors": [ + "OpenPGP Development Team (https://github.com/openpgpjs/openpgpjs/graphs/contributors)" + ], + "description": "OpenPGP.js is a Javascript implementation of the OpenPGP protocol. This is defined in RFC 4880.", + "main": "src/index.js", + "moduleType": [ + "amd", + "es6", + "globals", + "node" + ], + "keywords": [ + "crypto", + "gpg", + "pgp", + "openpgp", + "encryption" + ], + "license": "LGPL 2.1", + "ignore": [ + "**/.*", + "dist/openpgp*.tgz", + "node_modules", + "bower_components", + "test", + "tests", + "dist", + "doc" + ] +} +