@andrelm1/demo-package 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.
- package/README.md +12 -0
- package/index.mjs +5 -0
- package/package.json +11 -0
package/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Exemplo do pacote: Dominando o Node.js
|
|
2
|
+
Este é um exemplo de pacote para aprender a publicar pacotes no npm
|
|
3
|
+
|
|
4
|
+
## Instalação
|
|
5
|
+
```bash
|
|
6
|
+
npm install @andrelm1/demo-package
|
|
7
|
+
```
|
|
8
|
+
## Uso
|
|
9
|
+
``` js
|
|
10
|
+
import {sum} from '@andrelm1/demo-package'
|
|
11
|
+
console.log(sum(1,2))
|
|
12
|
+
```
|
package/index.mjs
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@andrelm1/demo-package",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Sample package: Node.js for begginers",
|
|
5
|
+
"main": "index.mjs",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1 "
|
|
8
|
+
},
|
|
9
|
+
"author": "André Marques",
|
|
10
|
+
"license": "MIT"
|
|
11
|
+
}
|