hammad-greet 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/README.md +10 -0
  2. package/index.js +7 -0
  3. package/package.json +11 -0
package/README.md ADDED
@@ -0,0 +1,10 @@
1
+ package:
2
+ # My First NPM Package
3
+
4
+ This is an example package that exports a simple greeting function.
5
+
6
+ ## Usage
7
+
8
+ ```javascript
9
+ const greet = require('my-first-npm-package');
10
+ console.log(greet('World'));
package/index.js ADDED
@@ -0,0 +1,7 @@
1
+ // index.js
2
+ function greet(name) {
3
+ return `Hello, ${name}! Welcome to my First NPM Pakacge (SP23-BSE-071)`;
4
+ }
5
+
6
+ module.exports = greet;
7
+
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "hammad-greet",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1"
7
+ },
8
+ "author": "Hammad Ahmed",
9
+ "license": "ISC",
10
+ "description": ""
11
+ }