Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 720 Bytes

README.md

File metadata and controls

39 lines (25 loc) · 720 Bytes

@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

// 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()
// 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

npm test

License

MIT