ShellJS - にほんご。

exit()

更新日: 2018-09-11

exit(code)

渡された終了ステータス(code)でプロセスを終了します。

使用例

動作中のプロセスを終了します。

JavaScript
var sh = require('shelljs');
sh.echo('処理を終了します。');
sh.exit(0);
結果
$ node sample.js
処理を終了します。


© 2012 Artur Adib Released under the BSD License. See LICENSE file for details.

このコンテンツはArtur Adib(arturadib)によるShellJSドキュメントを翻訳/改変したものです。