0.0.2 • Published 7 years ago

jasonette-toolkit v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Build Status codecov Code Climate npm version

Jasonette Toolkit

The Jasonette Toolkit provides a few shortcuts to make it possible to write a Jasonette with brevity.

For example, Jasonette Toolkit changes this:

{
  "type": "label",
  "text": "Hello world"
}

to this:

JT.components.label('Hello world')

Or this:

"ads": [
  {
    "type": "admob",
    "options": {
      "type": "banner",
      "unitId": "a14dccd0fb24d45"
    }
  }
]

to this:

ads: [JT.view.body.ad('admob', 'banner', 'a14dccd0fb24d45')]

Install

npm install jasonette-toolkit