https://github.com/i-e-b/metaret-npm
A node-ready version of https://github.com/glathoud/js.metaret packaged for NPM
https://github.com/i-e-b/metaret-npm
Last synced: 2 months ago
JSON representation
A node-ready version of https://github.com/glathoud/js.metaret packaged for NPM
- Host: GitHub
- URL: https://github.com/i-e-b/metaret-npm
- Owner: i-e-b
- Created: 2014-09-09T14:58:14.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-10-07T19:52:45.000Z (over 11 years ago)
- Last Synced: 2025-10-09T02:14:09.713Z (9 months ago)
- Language: JavaScript
- Size: 266 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
metaret-npm
===========
Node-ready versions of https://github.com/glathoud/js.metaret packaged for `npm`
`plain` folder contains the library itself, in a state that can be installed and required as normal.
`grunt` folder contains a grunt task that will apply the jsm-to-js transform to any `.jsm` files specified.
metaret
-------
Exposes 2 functions which transform Javascript source code:
metafun recursive composition:
```ecmascript
var metaret = require('metaret');
var output_source = metaret.jsm2js(input_source);
```
inlining function calls:
```ecmascript
var metaret = require('metaret');
var output_source = metaret.inline(input_source);
```