string editor:在您的节点应用程序中使用$ EDITOR编辑字符串 源码
字符串编辑器 在您的节点应用程序中使用$ EDITOR编辑字符串。 npm install string-editor 用法 var edit = require ( 'string-editor' ) ; // this launches your $EDITOR with a tmp file containing "hello world" edit ( 'hello world' , function ( err , result ) { // when you are done editing result will contain the string console . log ( result ) ; } ) ; 有时设置文件名以帮助您的编辑器启用突出显示等很有用。 // we pass app.js as a filename to help with high
下载地址
用户评论