Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

fakecommitjs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fakecommitjs

Helps you populate the commit chart on github. You don't even have to know what is committed.

latest
npmnpm
Version
1.2.3
Version published
Maintainers
1
Created
Source

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

Keywords

fake

FAQs

Package last updated on 30 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts