@sujeetmainali/hello-world 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 +23 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/package.json +20 -5
- package/index.js +0 -5
package/README.md
CHANGED
|
@@ -1,9 +1,28 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @sujeetmainali/hello-world
|
|
2
2
|
|
|
3
|
-
A simple
|
|
3
|
+
A simple **Hello World** npm package written in TypeScript.
|
|
4
|
+
This package provides a utility to print a greeting to the console.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
6
9
|
|
|
7
10
|
```bash
|
|
8
|
-
|
|
11
|
+
# Using npm
|
|
12
|
+
npm install @sujeetmainali/hello-world
|
|
13
|
+
|
|
14
|
+
# Or using Yarn
|
|
15
|
+
yarn add @sujeetmainali/hello-world
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Example usage
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
import { hello } from '@sujeetmainali/hello-world';
|
|
23
|
+
|
|
24
|
+
// Default greeting
|
|
25
|
+
hello(); // Output: Hello, world!
|
|
26
|
+
|
|
27
|
+
hello('Sujeet'); // Output: Hello, Sujeet!
|
|
9
28
|
```
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,GAAI,OAAM,MAAgB,SAE3C,CAAC"}
|
package/dist/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sujeetmainali/hello-world",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "This is a simple hello world package",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md",
|
|
11
|
+
"LICENSE"
|
|
12
|
+
],
|
|
6
13
|
"scripts": {
|
|
7
|
-
"
|
|
14
|
+
"build": "tsc",
|
|
15
|
+
"prepublishOnly": "npm run build"
|
|
16
|
+
},
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
8
19
|
},
|
|
9
20
|
"author": "Sujeet Mainali",
|
|
10
|
-
"license": "ISC"
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/node": "^25.0.9",
|
|
24
|
+
"typescript": "^5.9.3"
|
|
25
|
+
}
|
|
11
26
|
}
|