Skip to content

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