
Product
Socket for Asana Is Now Available
Create and manage Asana tasks directly from Socket alerts, with manual task creation, automated ticketing rules, and two-way sync.
@lightsparkdev/lightspark-cli
Advanced tools
The lightspark script is a wrapper around the lightspark-sdk which can simplify testing simple lightspark API commands from your command-line. You can install it from source via npm i -g or from the npm package: npm i -g @lightsparkdev/lightspark-cli.
The first command you'll need to run get set up is init-env.
You'll need to provide your API token's client ID and client secret. You can set this up from the Lightspark API config page. For more info on API authentication, see the Lightspark API Authentication docs.
If you run it without any arguments, it will prompt you for your API token's client ID and client secret:
lightspark init-env
You can also directly pass these on the command line:
lightspark init-env -c <your client ID here> -s <your client secret here>
Once you've run init-env, it will create a .lightsparkapienv file in your home directory with your API token's client ID and client secret. You can add source ~/.lightsparkapienv to your .bashrc, .zshrc, .zprofile, etc. to make sure the environment variables are always available.
There are lots of commands! Check out lightspark --help for more usage info.
Here's full example of how you might use the lightspark script to test out the lightspark SDK:
# Get the balances for the account.
lightspark balances
# Create a bitcoin funding address for the account.
lightspark funding-address
# Fund the account by sending bitcoin to the address you just created.
# Once that transaction is confirmed, you can check the balances again.
lightspark balances
# Create an invoice.
lightspark create-invoice -a 100 -m "Pizza time"
# Pay the invoice with a test payment.
lightspark create-test-mode-payment -i <encoded invoice here>
FAQs
CLI for the Lightspark JS sdk
The npm package @lightsparkdev/lightspark-cli receives a total of 5 weekly downloads. As such, @lightsparkdev/lightspark-cli popularity was classified as not popular.
We found that @lightsparkdev/lightspark-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.

Product
Create and manage Asana tasks directly from Socket alerts, with manual task creation, automated ticketing rules, and two-way sync.

Security News
Open VSX has removed three extension IDs from its malicious-extension list as the legitimate publishers they impersonated move to claim the names for themselves.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.