https://github.com/isomorphic-git/kbpgp-plugin
https://github.com/isomorphic-git/kbpgp-plugin
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/isomorphic-git/kbpgp-plugin
- Owner: isomorphic-git
- License: lgpl-3.0
- Created: 2018-10-26T00:40:55.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-26T00:46:25.000Z (about 7 years ago)
- Last Synced: 2025-04-12T22:14:58.853Z (8 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @isomorphic-git/kbpgp-plugin
A 'pgp' plugin for [a future version of] isomorphic-git using kbpgp
Note: no version of isomorphic-git has been released that uses this plugin yet.
It's a chicken and egg problem. Gotta write the plugin first, then modify isomorphic-git to use it.
## Usage
```js
// Node
const { pgp } = require('@isomorphic-git/kbpgp-plugin')
const git = require('isomorphic-git')
git.plugins.set('pgp', pgp)
// Now you can use git.sign() and git.verify()
```
```js
// Browser
import { plugins } from 'isomorphic-git'
import { pgp } from '@isomorphic-git/kbpgp-plugin'
git.plugins.set('pgp', pgp)
// Now you can use git.sign() and git.verify()
```
## Tests
```sh
npm test
```
## License
MIT