Implementation of the Stateless OpenPGP Command Line Interface for openpgp-js.
Install the dependencies and build the binary (Node.js and npm required):
npm iAnd then run it:
./sopenpgpjs <command>When developing, you can run the tests with
npm run build
npm testTo run sop-openpgpjs using an OpenPGP.js version different than the bundled one, you can set the OPENPGPJS_PATH environment variable:
OPENPGPJS_PATH='../path-to-custom-openpgpjs-lib' ./sopenpgpjs <command>To load additional profiles (possibly relevant when testing a custom built of OpenPGP.js), you can set the OPENPGPJS_CUSTOM_PROFILES environment variable to point to a JSON string declaring an object of the form:
{
[targetCommandName: string]: {
[profileName: string]: {
description: string,
options: object
}
}
}Where the valid options depend on the target OpenPGP.js function to be run.
See ./src/profiles.js for examples of valid profile declarations.