onchange

  • Version 7.1.0
  • Published
  • 41.7 kB
  • 7 dependencies
  • MIT license

Install

npm i onchange
yarn add onchange
pnpm add onchange

Overview

Use glob patterns to watch file sets and run a command when anything is added, changed or deleted.

Index

Functions

function onchange

onchange: (options: Options) => () => void;
  • Onchange manages

Interfaces

interface Options

interface Options {}
  • Onchange configuration options.

property add

add?: boolean;

    property awaitWriteFinish

    awaitWriteFinish?: number;

      property command

      command?: string[];

        property cwd

        cwd?: string;

          property defaultExclude

          defaultExclude?: boolean;

            property delay

            delay?: number;

              property env

              env?: NodeJS.ProcessEnv;

                property exclude

                exclude?: (string | ((path: string) => boolean))[];

                  property filter

                  filter?: string[];

                    property initial

                    initial?: boolean;

                      property jobs

                      jobs?: number;

                        property kill

                        kill?: boolean;

                          property killSignal

                          killSignal?: NodeJS.Signals;

                            property matches

                            matches: string[];

                              property onReady

                              onReady?: () => void;

                                property outpipe

                                outpipe?: string;

                                  property poll

                                  poll?: number;

                                    property stderr

                                    stderr?: Writable;

                                      property stdin

                                      stdin?: Readable;

                                        property stdout

                                        stdout?: Writable;

                                          property verbose

                                          verbose?: boolean;

                                            Package Files (1)

                                            Dependencies (7)

                                            Dev Dependencies (7)

                                            Peer Dependencies (0)

                                            No peer dependencies.

                                            Badge

                                            To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                            You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/onchange.

                                            • Markdown
                                              [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/onchange)
                                            • HTML
                                              <a href="https://www.jsdocs.io/package/onchange"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>