rocambole-commafirst

0.1.2 • Public • Published

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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    0
  • 0.1.1
    0
  • 0.1.0
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i rocambole-commafirst

Weekly Downloads

0

Version

0.1.2

License

MIT

Last publish

Collaborators

  • andrewwinterman