JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 15
  • Score
    100M100P100Q57837F

synchronous exec command

Package Exports

  • execsync

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (execsync) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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/ をご参照下さい。