UNPKG
npub
Version:
latest (2.2.0)
2.2.0
2.1.0
2.0.1
2.0.0
1.1.1
1.1.0
1.0.0
0.5.1
0.5.0
0.4.0
0.3.0
0.2.0
0.1.0
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
publishing tool for your node projects hosted on github
npub
/
src
/
publish
/
editor.coffee
14 lines
(9 loc)
•
299 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"
) callback()