1.2.3 • Published 5 years ago

fakecommitjs v1.2.3

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Logo

FakeCommitJS

This is a simple node module that allows you to create fake commits in a repository every now and then.

Getting Started

There are two ways to use this module. One is by installing it globally and using it with the command fakecommit. The second one is by extending the module as shown in the example section.

Installation

Before installing, download and install Node.js. You need to download and install git aswell. Installation of git ensures that 'git' command is accessible from the terminal which is essential for this module.

Global Installation

$ npm install -g fakecommitjs --save

Local Installation (i.e if you want to customize the module)

$ npm install fakecommitjs --save

Global Module Usage

Run fakecommit <repo-path> <target-file> [interval=5] to simply use this project without any customization. The interval should be specified in seconds.

You need to install the module globally inorder to use the above command.

Local Module Usage

The module exports two main functions:

* addCommitMessages(commitMessages: String[])
* startAutoCommit(repoPath: String, targetFile: String, interval: number)

Example

// index.js file

var { startAutoCommit, addCommitMessages } = require('fakecommitjs')

addCommitMessages([
	'what\'s going on',
	'how come is this happening',
	'what the hell do we do',
	'oh no'
])

startAutoCommit(
	'../example-repo',
	'../example-repo/app.js',
	3
)

To see the result execute the file as shown

$ node index.js
1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago