1.11.0 • Published 10 months ago

numary v1.11.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Formance Typescript SDK

This repository contains the Typescript SDK for Formance Ledger (fka Numary) for Node.js, wrapping the automatic generated API client with higher-level functionality.

Installation

yarn add numary

Usage

import Cluster from "numary";

const cluster = new Cluster({
  uri: 'http://localhost:3068',
});

const ledger = cluster.getLedger('some-ledger');

(async () => {
  const r = await ledger.getTransactions();

  for (const tx of r.data) {
    console.log(tx);
  }
})();

Using Formance Cloud

Moved to @formancehq/formance

Advanced options

Axios interceptors can be used on the underlying cluster connection, e.g. to add authentication headers:

const cluster = new Cluster({
  uri: 'http://example.com:3068',
});

cluster.conn.interceptors.request.use(config => {
  config.headers['Authorization'] = `Basic Zm9vOmJhcg==`;

  return config;
});
1.11.0

10 months ago

1.11.0-sdk.rc.1

1 year ago

1.8.2-sdk.rc.1

2 years ago

1.7.3

3 years ago

1.7.2

3 years ago

1.7.1

3 years ago

1.8.0

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.0-rc.7

4 years ago

1.0.0-rc.5

4 years ago

1.0.0-rc.6

4 years ago

1.0.5

3 years ago

1.0.0-alpha.5

4 years ago

1.0.0-alpha.4

4 years ago

1.0.0-rc.3

4 years ago

1.0.0-rc.4

4 years ago

1.0.0-rc.1

4 years ago

1.0.0-rc.2

4 years ago

1.0.0-alpha.3

4 years ago

1.0.0-alpha.2

4 years ago

1.0.0-alpha.1

4 years ago