demoforpublish 0.0.0-stage → 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 (3) hide show
  1. package/README.md +168 -3
  2. package/index.js +2 -0
  3. package/package.json +10 -4
package/README.md CHANGED
@@ -1,3 +1,168 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ # demoforpublish
2
+
3
+ A simple demo npm package created for learning and testing how to publish packages to the npm registry.
4
+
5
+ ## Purpose
6
+
7
+ The purpose of this package is to demonstrate the basic process of creating and publishing an npm package. It contains a simple JavaScript file that prints welcome messages to the console.
8
+
9
+ This package is intended for:
10
+
11
+ - Learning npm package creation
12
+ - Understanding npm publishing workflows
13
+ - Testing package installation from the npm registry
14
+ - Educational and demonstration purposes
15
+
16
+ ---
17
+
18
+ ## Installation
19
+
20
+ Install the package using npm:
21
+
22
+ ```bash
23
+ npm install demoforpublish
24
+ ```
25
+
26
+ Or using yarn:
27
+
28
+ ```bash
29
+ yarn add demoforpublish
30
+ ```
31
+
32
+ ---
33
+
34
+ ## Important Dependencies and Considerations
35
+
36
+ ### Dependencies
37
+
38
+ This package currently has **no external dependencies**.
39
+
40
+ ### Considerations
41
+
42
+ - Built using CommonJS module format.
43
+ - Designed for testing and learning purposes only.
44
+ - Does not export any functions or classes.
45
+ - Running the package executes the code in `index.js`.
46
+ - Suitable for beginners learning npm package publishing.
47
+
48
+ ---
49
+
50
+ ## Getting Started
51
+
52
+ After installation, you can import or require the package in your project.
53
+
54
+ ### Using CommonJS
55
+
56
+ ```javascript
57
+ require("demoforpublish");
58
+ ```
59
+
60
+ ### Example Output
61
+
62
+ ```text
63
+ Hello World!
64
+ Well come to this package
65
+ ```
66
+
67
+ ---
68
+
69
+ ## Package Structure
70
+
71
+ ```text
72
+ demoforpublish/
73
+ ├── package.json
74
+ ├── index.js
75
+ └── README.md
76
+ ```
77
+
78
+ ### package.json
79
+
80
+ ```json
81
+ {
82
+ "name": "demoforpublish",
83
+ "version": "1.0.0",
84
+ "description": "This package is only for testing purpose, how to publish package on npm registry",
85
+ "license": "ISC",
86
+ "author": "AbdulRahim",
87
+ "type": "commonjs",
88
+ "main": "index.js"
89
+ }
90
+ ```
91
+
92
+ ### index.js
93
+
94
+ ```javascript
95
+ console.log("Hello World!");
96
+ console.log("Well come to this package");
97
+ ```
98
+
99
+ ---
100
+
101
+ ## Sample Code Snippets
102
+
103
+ ### Basic Usage
104
+
105
+ ```javascript
106
+ require("demoforpublish");
107
+ ```
108
+
109
+ ### Running Directly
110
+
111
+ ```bash
112
+ node index.js
113
+ ```
114
+
115
+ Expected output:
116
+
117
+ ```text
118
+ Hello World!
119
+ Well come to this package
120
+ ```
121
+
122
+ ---
123
+
124
+ ## Contributing
125
+
126
+ Contributions are welcome.
127
+
128
+ If you would like to contribute:
129
+
130
+ 1. Fork the repository.
131
+ 2. Create a feature branch.
132
+ 3. Make your changes.
133
+ 4. Test your changes.
134
+ 5. Submit a Pull Request.
135
+
136
+ Please ensure code remains simple and beginner-friendly.
137
+
138
+ ---
139
+
140
+ ## Changelog
141
+
142
+ All notable changes to this project are documented in the changelog file.
143
+
144
+ See:
145
+
146
+ - ./CHANGELOG.md
147
+
148
+ ---
149
+
150
+ ## Version
151
+
152
+ Current Version: **1.0.0**
153
+
154
+ ---
155
+
156
+ ## License
157
+
158
+ ISC License
159
+
160
+ Copyright (c) AbdulRahim
161
+
162
+ ---
163
+
164
+ ## Author
165
+
166
+ **AbdulRahim**
167
+
168
+ Created as a demo package for learning npm package publishing.
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ // console.log("Hello World!");
2
+ // console.log("Well come to this package");
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "demoforpublish",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "This package is only for testing purpose, how to publish package on npm registry",
5
+ "license": "ISC",
6
+ "author": "AbdulRahim",
7
+ "type": "commonjs",
8
+ "main": "index.js",
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1"
11
+ }
12
+ }