random-str-vocairius 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +2 -0
- package/bin/global.js +4 -0
- package/package.json +24 -0
- package/src/index.js +23 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nicolas
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
package/bin/global.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "random-str-vocairius",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Random string message",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/vocairius/random-str-vocairius.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [],
|
|
14
|
+
"author": "Nicolas Murcia (nicolas.murcia8487@gmail.com)",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/vocairius/random-str-vocairius/issues"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://github.com/vocairius/random-str-vocairius#readme",
|
|
20
|
+
"bin": {
|
|
21
|
+
"random-str-vocairius": "./bin/global.js"
|
|
22
|
+
},
|
|
23
|
+
"preferGlobal": true
|
|
24
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const messages = [
|
|
2
|
+
"This is where it all begins...",
|
|
3
|
+
"Commit committed",
|
|
4
|
+
"Version control is awful",
|
|
5
|
+
"COMMIT ALL THE FILES!",
|
|
6
|
+
"The same thing we do every night, Pinky - try to take over the world!",
|
|
7
|
+
"Lock S-foils in attack position",
|
|
8
|
+
"This commit is a lie",
|
|
9
|
+
"I'll explain when you're older!",
|
|
10
|
+
"Here be Dragons",
|
|
11
|
+
"Reinventing the wheel. Again.",
|
|
12
|
+
"This is not the commit message you are looking for",
|
|
13
|
+
"Batman! (this commit has no parents)",
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
const funnyCommit = () => {
|
|
17
|
+
const message = messages[Math.floor(Math.random() * messages.length)];
|
|
18
|
+
console.log(`\x1b[34m${message}\x1b[89m`);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
module.exports = {
|
|
22
|
+
funnyCommit
|
|
23
|
+
};
|