@anusha_bhura/fsd_lab 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/index.js +11 -0
  2. package/package.json +13 -0
  3. package/student.js +4 -0
package/index.js ADDED
@@ -0,0 +1,11 @@
1
+ function getDetails() {
2
+ return {
3
+ name: "Anusha",
4
+ rollNumber: "23321A0514",
5
+ course: "Computer Science"
6
+ };
7
+ }
8
+
9
+ module.exports = {
10
+ getDetails
11
+ };
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "@anusha_bhura/fsd_lab",
3
+ "version": "1.0.0",
4
+ "description": "",
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
+ }
package/student.js ADDED
@@ -0,0 +1,4 @@
1
+ const { getDetails } = require('./index');
2
+
3
+ const student = getDetails();
4
+ console.log(student);