dqcore 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.
Files changed (4) hide show
  1. package/README.md +32 -0
  2. package/index.d.ts +14 -0
  3. package/index.js +27 -0
  4. package/package.json +36 -0
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # dqcore
2
+
3
+ A simple JavaScript core utility library that provides basic functionality.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install dqcore
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```javascript
14
+ const dqcore = require('dqcore');
15
+
16
+ console.log(dqcore.helloWorld()); // Outputs: Hello World!
17
+ ```
18
+
19
+ ## API
20
+
21
+ ### `helloWorld()`
22
+
23
+ Returns a greeting message.
24
+
25
+ ```javascript
26
+ const greeting = dqcore.helloWorld();
27
+ console.log(greeting); // Hello World!
28
+ ```
29
+
30
+ ## License
31
+
32
+ MIT License - see the [LICENSE](LICENSE) file for details.
package/index.d.ts ADDED
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Type definitions for dqcore
3
+ * @module dqcore
4
+ */
5
+
6
+ /**
7
+ * Returns a greeting message
8
+ * @returns {string} Hello World message
9
+ */
10
+ declare function helloWorld(): string;
11
+
12
+ export = {
13
+ helloWorld
14
+ };
package/index.js ADDED
@@ -0,0 +1,27 @@
1
+ /**
2
+ * dqcore - A simple JavaScript core utility library
3
+ *
4
+ * @module dqcore
5
+ */
6
+
7
+ /**
8
+ * Returns a greeting message
9
+ * @returns {string} Hello World message
10
+ */
11
+ function helloWorld() {
12
+ return "Hello World!";
13
+ }
14
+
15
+ // Export the function for module usage
16
+ module.exports = {
17
+ helloWorld
18
+ };
19
+
20
+ // For browser usage
21
+ if (typeof window !== 'undefined') {
22
+ window.dqcore = {
23
+ helloWorld
24
+ };
25
+ }
26
+
27
+ console.log(helloWorld());
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "dqcore",
3
+ "version": "1.0.0",
4
+ "description": "A simple JavaScript core utility library",
5
+ "main": "index.js",
6
+ "types": "index.d.ts",
7
+ "scripts": {
8
+ "test": "node test.js",
9
+ "start": "node index.js",
10
+ "build": "tsc"
11
+ },
12
+ "keywords": [
13
+ "javascript",
14
+ "core",
15
+ "utility",
16
+ "hello",
17
+ "greeting"
18
+ ],
19
+ "author": "Your Name",
20
+ "license": "MIT",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/yourusername/dqcore.git"
24
+ },
25
+ "bugs": {
26
+ "url": "https://github.com/yourusername/dqcore/issues"
27
+ },
28
+ "homepage": "https://github.com/yourusername/dqcore#readme",
29
+ "engines": {
30
+ "node": ">=10.0.0"
31
+ },
32
+ "files": [
33
+ "index.js",
34
+ "index.d.ts"
35
+ ]
36
+ }