1.8.2-sdk.rc.1 • Published 1 year ago
numary v1.8.2-sdk.rc.1
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.8.2-sdk.rc.1
1 year ago
1.7.3
2 years ago
1.7.2
2 years ago
1.7.1
2 years ago
1.8.0
2 years ago
1.7.0
2 years ago
1.6.0
2 years ago
1.5.0
2 years ago
1.4.0
2 years ago
1.2.0
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
1.0.0-rc.7
2 years ago
1.0.0-rc.5
2 years ago
1.0.0-rc.6
2 years ago
1.0.5
2 years ago
1.0.0-alpha.5
2 years ago
1.0.0-alpha.4
2 years ago
1.0.0-rc.3
2 years ago
1.0.0-rc.4
2 years ago
1.0.0-rc.1
2 years ago
1.0.0-rc.2
2 years ago
1.0.0-alpha.3
2 years ago
1.0.0-alpha.2
3 years ago
1.0.0-alpha.1
3 years ago