# node-traceurified **Repository Path**: mirrors_samcday/node-traceurified ## Basic Information - **Project Name**: node-traceurified - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-01-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # traceurified **This project lives at https://bitbucket.org/samcday/node-traceurified. This repository is a mirror.** Easily use Google's awesome-sauce [traceur-compiler](https://github.com/google/traceur-compiler) in your Node projects. *bootstrap.js* ``` require("traceurified")(function() { return true; }); var app = require("./app"); app.go() ``` *app.js* ``` import {omggenerators} from "./lib"; export var go = () => omggenerators().next() }; ``` *lib.js* ``` export var omggenerators = function*() { var [harmony, ...isawesome] = ["lol!", "you", "bet!"]; yield isawesome.join(" "); } ``` This library will: * Patch your require() to compile your JS using Traceur on the fly. * Patch your Error stacks to be source-mapped and free of Traceur eval() frames. The second point is the primary utility of this library. ## Installation ``` npm install traceurified ``` ## API ``` require("traceurified")(function(file) { return true; }); ``` The main (and only) API for this library. The function passed in is used as a filter to determine if the given `file` path should be compiled using Traceur, or intepreted as vanilla ES5. ## License This project is licensed under [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0). Please see accompanying [LICENSE](LICENSE) file.