node-airtable-currency

0.0.5 • Public • Published

node-airtable-currency

Fill open exchange currency rates to Airtable spreadsheet.

Fetches latest currency rates from open-exchange-rates and syncs them to Airtable's table.

Open exchange rates: https://openexchangerates.org/
Airtable: https://airtable.com/

How to use:

var nodeAirtableCurrency = require("node-airtable-currency");

var config = new nodeAirtableCurrency.config();

config.exchange.base = "SEK"; // base currency, default is USD
config.exchange.appId = "<app_id>"; // Get App ID here: https://openexchangerates.org/
config.exchange.decimals = 8; // Number of decimals to use for currency, default is 8

config.airtable.apiKey = "<api_key>"; // Check airtable account settings to get this: https://airtable.com/
config.airtable.base = "<base_key>"; // Check API documentation to get this: https://airtable.com/api
config.airtable.table = "Currency"; // Airtable's table name, should have these 2 columns: Code, Rate
config.airtable.view = "Grid view"; // Airtable table's view

nodeAirtableCurrency.sync(config); // check console for output

Package Sidebar

Install

npm i node-airtable-currency

Weekly Downloads

0

Version

0.0.5

License

MIT

Unpacked Size

6.62 kB

Total Files

7

Last publish

Collaborators

  • rehmat