Official JavaScript client for the YNAB API
https://api.ynab.com โ HEALTH ? 98 / Healthy
Official JavaScript client for the YNAB API
https://api.ynab.com โ// readme
Please read the YNAB API documentation for an overview of using the API and a complete list of available resources.
This client is generated using the OpenAPI Generator.
First, install the module with npm:
npm install ynab
Then, depending upon your usage context, add a reference to it:
const ynab = require("ynab");
Requires Node 22 or later.
import * as ynab from "ynab";
The API supports Cross Origin Resource Sharing (CORS) for asynchronous browser requests from any origin.
The dist/browser/ynab.js file (located in node_modules/ynab after installation) is specifically built to run in a browser / window context and exports ynab variable to global namespace. No other dependencies are needed.
<script src="ynab.js" async></script>
...
<script>
// This assignment is not necessary but demonstrates that
// once the library is loaded, the global 'ynab' object will be available.
var ynab = window.ynab;
</script>
```โฆ