trangpackage 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 +9 -0
  2. package/package.json +16 -0
  3. package/readme.md +4 -0
package/index.js ADDED
@@ -0,0 +1,9 @@
1
+ const trang = {
2
+ author: "Trang Pham",
3
+ email: "pham0116@algonquinlive.com",
4
+ message() {
5
+ return `Hello my name is ${this.author}!. My email is ${this.email}`;
6
+ },
7
+ };
8
+
9
+ export default trang;
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "trangpackage",
3
+ "version": "1.0.0",
4
+ "description": "NPM package for exercise 1",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Trang's name and email.\" && exit 1"
8
+ },
9
+ "keywords": [
10
+ "trang",
11
+ "pham0116"
12
+ ],
13
+ "author": "",
14
+ "license": "ISC",
15
+ "type": "module"
16
+ }
package/readme.md ADDED
@@ -0,0 +1,4 @@
1
+ # Trang Package
2
+
3
+ This package is created for MAD9124 Exercise 1. It has two properties and one method. It uses ES Modules, which means that you will need to `import` the default package to access it.
4
+