1Password / op-js

A JS library powered by the 1Password CLI
https://developer.1password.com/docs/cli
MIT License
91 stars 8 forks source link

Rebuild OPJS for class-based instantiation #113

Closed jodyheavener closed 1 year ago

jodyheavener commented 1 year ago

Closes https://github.com/1Password/op-js/issues/76

The current implementation of OPJS uses a singleton approach, and while it's generally fine it's sort of an awkward pattern to be using for a JS client for a CLI. It also prohibits multiple instances of the client.

This PR rewrites the codebase so that it's class-based. Specifically: