{"id":18410051,"url":"https://github.com/isomorphic-git/openpgp-plugin","last_synced_at":"2025-04-07T09:34:32.317Z","repository":{"id":57119426,"uuid":"129641071","full_name":"isomorphic-git/openpgp-plugin","owner":"isomorphic-git","description":null,"archived":false,"fork":false,"pushed_at":"2020-02-15T22:46:06.000Z","size":34,"stargazers_count":0,"open_issues_count":4,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-26T07:02:31.169Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isomorphic-git.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-15T18:58:40.000Z","updated_at":"2018-10-26T00:02:25.000Z","dependencies_parsed_at":"2022-08-23T22:10:15.134Z","dependency_job_id":null,"html_url":"https://github.com/isomorphic-git/openpgp-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isomorphic-git%2Fopenpgp-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isomorphic-git%2Fopenpgp-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isomorphic-git%2Fopenpgp-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isomorphic-git%2Fopenpgp-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isomorphic-git","download_url":"https://codeload.github.com/isomorphic-git/openpgp-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223277164,"owners_count":17118500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T03:28:46.063Z","updated_at":"2024-11-06T03:28:47.904Z","avatar_url":"https://github.com/isomorphic-git.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @isomorphic-git/openpgp-plugin\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fisomorphic-git%2Fopenpgp-plugin.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fisomorphic-git%2Fopenpgp-plugin?ref=badge_shield)\n\n\nOpenPGP.js plugin for [a future version of] isomorphic-git\n\nNote: no version of isomorphic-git has been released that uses this plugin yet.\n\nIt's a chicken and egg problem. Gotta write the plugin first, then modify isomorphic-git to use it.\n\n## Usage\n\n```js\n// Node\nconst { pgp } = require('@isomorphic-git/openpgp-plugin')\nconst git = require('isomorphic-git')\n\ngit.plugins.set('pgp', pgp)\n\n// Now you can use git.sign() and git.verify()\n```\n\nOpenPGP.js is unfortunately licensed under the LGPL-3.0 and thus cannot be included in a minified bundle with\nisomorphic-git which is an MIT/BSD style library, because that would violate the \"dynamically linked\" stipulation.\nIf you are building a browser app, you should include this plugin as separate script.\n\nI'm not a lawyer, but I suspect that code-splitting counts as \"dynamically linked\".\nHere I use a dynamic import statement to load the module.\n\n```js\n// Browser\nimport { plugins } from 'isomorphic-git'\n\nimport('@isomorphic-git/openpgp-plugin').then(({ pgp }) =\u003e {\n  git.plugins.set('pgp', pgp)\n  // Now you can use git.sign() and git.verify()\n})\n```\n\n## Tests\n\n```sh\nnpm test\n```\n\n## License\n\nIn keeping with the OpenPGP.js license, this project is licensed under the\nGNU Lesser General Public License v3.0\n\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fisomorphic-git%2Fopenpgp-plugin.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fisomorphic-git%2Fopenpgp-plugin?ref=badge_large)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisomorphic-git%2Fopenpgp-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisomorphic-git%2Fopenpgp-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisomorphic-git%2Fopenpgp-plugin/lists"}