test-package-ghosh 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.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # Say hello
2
+
3
+ Just a test from techno-ghosh
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "test-package-ghosh",
3
+ "version": "1.0.0",
4
+ "description": "testing from nirmal for starting a project to create an actual utility for developers",
5
+ "license": "ISC",
6
+ "author": "techno-ghosh",
7
+ "types": "./dist/index.d.ts",
8
+ "main": "./dist/index.js",
9
+ "module": "./dist/index.mjs",
10
+ "homepage": "https://google.com",
11
+ "repository": {
12
+
13
+ },
14
+ "scripts": {
15
+ "build": "tsup"
16
+ },
17
+ "keywords": [
18
+ "test"
19
+ ],
20
+ "devDependencies": {
21
+ "tsup": "^8.5.1",
22
+ "typescript": "^5.9.3"
23
+ }
24
+ }
@@ -0,0 +1,12 @@
1
+ import { sayHelloProps } from "./types"
2
+
3
+ export function sayHello({
4
+ firstName,
5
+ lastName,
6
+ age }: sayHelloProps) {
7
+
8
+ console.log('Hello...')
9
+ console.log(`Welcome to learning or relearning typescript Mr ${firstName} ${lastName? lastName : ''}`)
10
+ console.log(`aged ${age? age: '-'}`)
11
+
12
+ }
package/src/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './functions';
2
+ export * from './types';
package/src/types.ts ADDED
@@ -0,0 +1,5 @@
1
+ export type sayHelloProps = {
2
+ firstName: string,
3
+ lastName: string,
4
+ age: number
5
+ }