All Projects → hecomi → Node Execsync

hecomi / Node Execsync

node.js で shell コマンドを同期的に実行するアドオンです

node-execsync

はじめに

node.js の exec の同期版です。 shell のコマンドを引数で指定して実行して、その実行結果を戻り値で返してくれます。

ライセンス

NYSL ライセンスです。

インストール

以下のコマンドを実行して下さい。

$ npm install execsync

使い方

次のように使います。

var execSync = require('execsync');
console.log(execSync('ls'));

詳細

その他詳細は Twitter:@hecomi へご質問いただくか、http://d.hatena.ne.jp/hecomi/ をご参照下さい。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].