Neverending Plethora of Modules
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    restartpublic

    Node.js Restart

    This module is designed to restart Node.js app in development mode, e.g. after compilation with Babel/TypeScript is complete.

    How to Install

    $ npm install restart --save-dev

    How to Use

    const restart = require('restart');
    const build = require('./build');
     
    const server = {
      entry: './build/server.js',
    };
     
    build({
      watch: true,
      onComplete() {
        restart(server);
      },
    });

    License

    Copyright (c) 2018-present Kriasoft | MIT License

    install

    npm i restart

    Downloadsweekly downloads

    28

    version

    0.1.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar