@onahhas/hello-dev 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 +21 -0
  2. package/index.js +7 -0
  3. package/package.json +15 -0
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # @OMNahhas/hello-dev
2
+
3
+ A simple Node.js package that greets the user. This package exports a single function, `hello`, which returns a greeting string for the provided name.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @OMNahhas/hello-dev
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```js
14
+ const { hello } = require('@OMNahhas/hello-dev');
15
+ console.log(hello('Omar'));
16
+ // => "Hello, Omar!"
17
+ ```
18
+
19
+ ## License
20
+
21
+ This project is licensed under the MIT License.
package/index.js ADDED
@@ -0,0 +1,7 @@
1
+ function hello(name = 'developer') {
2
+ return `Hello, ${name}!`;
3
+ }
4
+
5
+ module.exports = {
6
+ hello
7
+ };
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@onahhas/hello-dev",
3
+ "version": "1.0.0",
4
+ "description": "A simple package that greets the user by name.",
5
+ "main": "index.js",
6
+ "type": "commonjs",
7
+ "keywords": [
8
+ "hello",
9
+ "greeting",
10
+ "sample",
11
+ "npm"
12
+ ],
13
+ "author": "Omar Nahhas",
14
+ "license": "MIT"
15
+ }