Skip to content

Commit 7db0f0e

Browse files
committed
feat: add entry point for imports by commonjs
1 parent c75e8f2 commit 7db0f0e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

index.cjs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/**
2+
* @author Victor Giovanni Beltrán Rodríguez
3+
* @file Manages main entry point.
4+
*/
5+
6+
// ━━ TYPE DEFINITIONS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
7+
/**
8+
* The `argv2Object()` function, converts command-line arguments to a key-value
9+
* object.
10+
*
11+
* This function takes an array of command-line arguments and converts them to a
12+
* JavaScript object with keys and values based on the provided argument format.
13+
* The format can be either simple key-value pairs (e.g. "key=value") or
14+
* Unix-style command-line options (e.g. "-o --option=value").
15+
*
16+
* @version 1.0.0
17+
* @author Victor Giovanni Beltrán Rodríguez
18+
* @module argv2Object
19+
*/
20+
const argv2Object = require('#argv2Object');
21+
22+
// ━━ EXPORT MODULE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
23+
module.exports = argv2Object.default;

0 commit comments

Comments
 (0)