Skip to content

mitzerh/node-git-changelog-listener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Changelog Listener

Listen for file changes in your target path Cron-driven changelog listener for git repositories

Options

basePath

Type: String
Default: __dirname

Set the git repository directory of where to run the listener.

interval

Type: Number
Default: 1000

(Optional) Set the interval of how often to check for changes.

Example

const Changelog = require('git-changelog-listener');

const listener = new Changelog({
    interval: 1000, // defaults to 1000ms if not defined
    basePath: '/path/to/my/repo' // basePath
});

listener.onChange((info) => {
    console.log('information here >>', info);
});

About

Cron-driven changelog listener for git repositories

Resources

License

Stars

Watchers

Forks

Packages

No packages published