srilalitha5 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/app.js +3 -0
  2. package/index.js +10 -0
  3. package/package.json +13 -0
package/app.js ADDED
@@ -0,0 +1,3 @@
1
+ const myModule=require('./index')
2
+ console.log(myModule.intro());
3
+ console.log(myModule.greet("Sri"));
package/index.js ADDED
@@ -0,0 +1,10 @@
1
+ function intro(){
2
+ return {rollno:'23321a05a5',name:"Sri"};
3
+ }
4
+ function greet(name){
5
+ return `hello ${name} this is my module`;
6
+ }
7
+ module.exports={
8
+ intro,
9
+ greet
10
+ };
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "srilalitha5",
3
+ "version": "1.0.0",
4
+ "description": "This is a custom module created by a5",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "type": "commonjs"
13
+ }