Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Oscar Barajas Tavares

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# funny-commit

Whenever I start a new project, I don't know what to write for the first commit. After doing a “git init” there is technically nothing there...

## Install

```npm
npm install -g funny-commit
```

# Usage

```bash
funny-commit
```

# Contributing
If someone wants to add or improve something, I invite you to collaborate directly in this repository: [funny-commit](https://github.com/gndx/funny-initial-git-commit/)

# License
funny-commit is released under the [MIT License](https://opensource.org/licenses/MIT).
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env node
let random = require('../src/index.js');

random.funnyCommit();
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "funny-commit",
"version": "1.1.0",
"description": "Funny initial git commit messages",
"main": "./src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/gndx/funny-initial-git-commit.git"
},
"keywords": [
"javascript",
"npm",
"package",
"module",
"funny",
"commits",
"messages"
],
"bin": {
"funny-commit": "./bin/global.js"
},
"preferGlobal": true,
"author": "Oscar Barajas <oscar@arepa.dev>",
"license": "MIT",
"bugs": {
"url": "https://github.com/gndx/funny-initial-git-commit/issues"
},
"homepage": "https://github.com/gndx/funny-initial-git-commit#readme"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const messages = [
"in case of fire: git commit, git push and leave building",
"This is where it all begins...",
"Commit committed",
"Version control is awful",
"COMMIT ALL THE FILES!",
"The same thing we do every night, Pinky - try to take over the world!",
"Lock S-foils in attack position",
"This commit is a lie",
"I'll explain when you're older!",
"Here be Dragons",
"Reinventing the wheel. Again.",
"This is not the commit message you are looking for",
"Batman! (this commit has no parents)",
"the greats murmur as learning with this commit",
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live",
"naruto, The programmer ninja!",
"The covid-19 block my commit",
"I do a PING to his heart and I never received a reply",
];

const funnyCommit = () => {
const message = messages[Math.floor(Math.random() * messages.length)];
console.log(`\x1b[34m${message}\x1b[89m`);
}

module.exports = {
funnyCommit
};