Skip to content

Soldy/initrc

Repository files navigation

initrc

What is this.

initrc a simple tool which helps to build a software (backend/ frontend) with designed start and graceful shutdown.

install

npm i initrc

init

const initrc = new (require('initrc')).init();

add process

initrc.start.add(
    function(){
        something
    },
    runlevel,
    name
);

boot

frontend

window.onload = initrc.start.run;

backend

initrc.start.run();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published