File: README.md

package info (click to toggle)
node-prosemirror-transform 1.2.8-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 344 kB
  • sloc: javascript: 2,179; makefile: 5
file content (13 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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.