Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'bolt11 decode' command as excutable #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

grunklejp
Copy link

Is there any interest in exposing any of the payreq.js's exports as executables?

I've found my self regularly opening a node repl then calling require('bolt11').decode(<invoice>) and thought it might be nice to add this small functionality to this lib. It's also nice to be able to easily pipe this into jq or other shell tools.

This PR only exposes the decode command but i'd be happy to do the rest if there is interest for them, although I do suspect decode is the most useful in this context.

To test this out yourself pull down my branch and run

$ npm link
$ bolt11 decode <invoice>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant