watchexec-bin

1.0.0 • Public • Published

watchexec-bin

npm version Build Status Coverage Status

An npm package to install a watchexec prebuilt binary

Installation

Use npm.

npm install watchexec-bin

As this package makes use of install npm script in order to download a binary for the current platform, ignore-scripts npm-config cannot be enabled while executing the command above.

API

require('watchexec-bin')

Type: string

An absolute path to the installed watchexec binary, which can be used with child_process functions.

const {spawn} = require('child_process');
const watchexec = require('watchexec');
 
spawn(watchexec, ['--', 'ls', '-la']);

CLI

Once this package is installed to the project directory, users can execute watchexec command inside npm scripts of the project.

"watch-js""watchexec --ext js eslint ."
$ npm run-script watch-js

License

ISC License © 2018 Shinnosuke Watanabe

watchexec

Apache License 2.0 © 2016 Matt Green

/watchexec-bin/

    Package Sidebar

    Install

    npm i watchexec-bin

    Weekly Downloads

    318

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    16.4 kB

    Total Files

    6

    Last publish

    Collaborators

    • shinnn