Skip to content

Commit

Permalink
Remove default export
Browse files Browse the repository at this point in the history
  • Loading branch information
twiss committed Feb 9, 2021
1 parent bdad8e3 commit c48070d
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
/* eslint-disable import/newline-after-import, import/first */

/**
* Export high level api as default.
* Export high level API functions.
* Usage:
*
* import openpgp from 'openpgp.js'
* openpgp.encryptMessage(keys, text)
*/
import * as openpgp from './openpgp';
export default openpgp;

/**
* Export each high level api function separately.
* Usage:
*
* import { encryptMessage } from 'openpgp.js'
* encryptMessage(keys, text)
* import { encrypt } from 'openpgp'
* encrypt({ message, publicKeys })
*/
export {
encrypt, decrypt, sign, verify,
Expand Down

0 comments on commit c48070d

Please sign in to comment.