ape-formatting
Version:
19 lines (15 loc) • 299 B
JavaScript
const apeFormatting = require('ape-formatting')
// Format javascript files
apeFormatting.formatJs('lib/*.js', {
ignore: 'index.js'
}).then(() => {
/* ... */
})
// Format json files
apeFormatting.formatJson('lib/*.json', {
indent: 2,
sort: true
}).then(() => {
/* ... */
})