bola511 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/index.js +48 -0
- package/package.json +20 -0
package/index.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// bola511 - Utility Package
|
|
2
|
+
// Version 1.0.0
|
|
3
|
+
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Simple utility module
|
|
8
|
+
* @module bola511
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const VERSION = '1.0.0';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Returns package information
|
|
15
|
+
* @returns {Object} Package info object
|
|
16
|
+
*/
|
|
17
|
+
function getInfo() {
|
|
18
|
+
return {
|
|
19
|
+
name: 'bola511',
|
|
20
|
+
version: VERSION,
|
|
21
|
+
status: 'active'
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Initialize the package
|
|
27
|
+
* @returns {boolean} Success status
|
|
28
|
+
*/
|
|
29
|
+
function init() {
|
|
30
|
+
console.log('Package initialized successfully');
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Hello world function
|
|
36
|
+
* @param {string} name - Name to greet
|
|
37
|
+
* @returns {string} Greeting message
|
|
38
|
+
*/
|
|
39
|
+
function hello(name) {
|
|
40
|
+
return `Hello, ${name || 'World'}!`;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
module.exports = {
|
|
44
|
+
VERSION,
|
|
45
|
+
getInfo,
|
|
46
|
+
init,
|
|
47
|
+
hello
|
|
48
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bola511",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Utility package for bate5a",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"No tests specified\" && exit 0"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"utility",
|
|
11
|
+
"helper",
|
|
12
|
+
"tools"
|
|
13
|
+
],
|
|
14
|
+
"author": "Developer",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": ""
|
|
19
|
+
}
|
|
20
|
+
}
|