@protik-swachalit/test-npm 1.0.0 → 2.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/README.md +87 -0
- package/index.js +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# @protik-swachalit/test-npm
|
|
2
|
+
|
|
3
|
+
A simple Express.js demo package that returns the current date.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Using npm:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @protik-swachalit/test-npm
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Using pnpm:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pnpm add @protik-swachalit/test-npm
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
import app from '@protik-swachalit/test-npm';
|
|
25
|
+
|
|
26
|
+
app.listen(3000, () => {
|
|
27
|
+
console.log('Server running on port 3000');
|
|
28
|
+
});
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Then open:
|
|
32
|
+
|
|
33
|
+
```txt
|
|
34
|
+
http://localhost:3000
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
You should see:
|
|
38
|
+
|
|
39
|
+
```txt
|
|
40
|
+
Hello World!, Today is DD/MM/YYYY
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Example
|
|
46
|
+
|
|
47
|
+
```js
|
|
48
|
+
import express from 'express';
|
|
49
|
+
|
|
50
|
+
const app = express();
|
|
51
|
+
|
|
52
|
+
app.get('/', (req, res) => {
|
|
53
|
+
res.send('Hello World!');
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export default app;
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## Features
|
|
62
|
+
|
|
63
|
+
* Express.js server
|
|
64
|
+
* Simple date formatter
|
|
65
|
+
* ES Module support
|
|
66
|
+
* Lightweight setup
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Requirements
|
|
71
|
+
|
|
72
|
+
* Node.js 18+
|
|
73
|
+
* npm or pnpm
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## License
|
|
78
|
+
|
|
79
|
+
ISC
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Author
|
|
84
|
+
|
|
85
|
+
Protik Sarkar
|
|
86
|
+
|
|
87
|
+
GitHub: https://github.com/protik-swachalit
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protik-swachalit/test-npm",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "it's package just for testing",
|
|
5
5
|
"homepage": "https://github.com/protik-swachalit/test-npm#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"express": "^5.2.1"
|
|
22
22
|
}
|
|
23
|
-
}
|
|
23
|
+
}
|