/bfx-api-client-generator

Multi purpose template rendering machine

Primary LanguageJavaScript

Build Status

~ bfx-client-generator

The Bitfinex client generator is a multi purpose template rendering machine, it's built with the goal of generating bitfinex api clients for multiple programming languages

~ installing

git clone
npm install

~ basic example

const generate = require('bfx-client-generator')

const data     = require('./data-as-object/data.js')
const template = './data-as-object/templates'
const output   = './data-as-object/output'

async function business () {
  // await the machine to do it's thing
  await generate(data, template, output)

  console.log(' - OK')
}

business()

~ partials

There are two examples:

~ development

npm run test:watch
# watch out for readFile cache sometimes between test restarts

~ tests