Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

@galoymoney/client

Package Overview
Dependencies
0
Maintainers
5
Versions
99
Issues
File Explorer

Advanced tools

@galoymoney/client

JavaScript client library for the Galoy stack. This is used in front-end applications like the web and mobile wallets.

    0.1.77latest
    Github

Version published
Maintainers
5
Weekly downloads
328
decreased by-70.64%

Weekly downloads

Changelog

Source

v0.1.77 Release

Miscellaneous Tasks

  • Use const object instead of enums (#214)
  • Bump @typescript-eslint/eslint-plugin (#202)
  • Prettier:fix (#208)

Readme

Source

Galoy Client

JavaScript client library for the Galoy stack. This is used in front-end applications like the web and mobile wallets.

Installation

Install the package with:

yarn add @galoymoney/client

Usage

parsePaymentDestination

import { parsePaymentDestination } from "@galoymoney/client" const { valid, paymentType, amount } = parsePaymentDestination({ destination: "username or invoice or bitcoin address", network: "mainnet", // or signet or regtest })

Test

Test with Jest framework:

yarn test

Build

Build production (distribution) files in dist folder:

yarn build

Local development

using yarn

Run:

yarn link

and in your test project run:

yarn link @galoymoney/client

If you want to remove the symlink, run:

# in your test project yarn unlink @galoymoney/client # in galoymoney/client folder yarn unlink

using yalc

Run:

# in galoymoney/client folder yalc publish

in your test project run:

yalc add @galoymoney/client

If you want to remove the symlink, run:

# in your test project yalc remove @galoymoney/client

to update changes, you have to run yalc publish before run:

# in your test project yalc update

FAQs

Last updated on 18 Jan 2023

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc