0.1.2 • Published 10 years ago

rocambole-commafirst v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

Transforms your code, converting comma last to comma first.

Install with npm i rocambole-commafirst

var commafirst = require('rocambole-commafirst')
  , rocambole = require('rocambole')

var source = fs.readFileSync('path/to/js/file.js').toString()

var ast = rocambole.parse(source)

commafirst.transform(ast)

ast.toString() // is your transformed source

// OR

rocambole.moonwalk(ast, commafirst)
0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.0

10 years ago