jstransformer-function

1.0.1 • Public • Published

jstransformer-function

Function support for JSTransformers.

Build Status Coverage Status Dependency Status Greenkeeper badge NPM version

Installation

npm install jstransformer-function

API

var func = require('jstransformer')(require('jstransformer-function'))
 
var input = 'return "Hello, " + this.name + "!"';
var locals = { name: 'World' };
func.render(input, locals).body;
//=> 'Hello, World'

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i jstransformer-function

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

4.28 kB

Total Files

5

Last publish

Collaborators

  • calebeby
  • forbeslindesay
  • hemanth
  • robloach
  • stoeffel
  • timothygu