UNPKG

npub

Version:

publishing tool for your node projects hosted on github

16 lines (10 loc) 313 B
editor = require 'editor' debug = require('debug') "editor" module.exports = (filePath, callback) -> debug filePath editor filePath, (exitCode) -> debug "status: #{exitCode}" if exitCode != 0 callback(new Error "editor exited editor with #{exitCode}; aborting") return callback()