npm.io
0.1.0 • Published 10 years ago

tariff

Licence
MIT
Version
0.1.0
Deps
2
Vulns
0
Weekly
0
Stars
2
DeprecatedThis package is deprecated

Tariff

var tariff = import("tariff")
tariff('import {foo} from "./bar"\nexport let baz = foo(1)')
// -> 'var foo = require("./bar").foo\nlet baz = exports.baz = foo(1)'

If you treat exports as values, not bindings, and don't do anything fancy, you can use tariff to convert ES6 import and export declarations into CommonJS equivalents.

Released under an MIT license.