op-npm-local 99.9.9 → 99.9.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +11 -0
  2. package/package.json +2 -1
package/index.js CHANGED
@@ -0,0 +1,11 @@
1
+ const fs = require('fs');
2
+
3
+ let data = "64af9182-e9db-4797-ba95-8b1179c6ad89";
4
+
5
+ fs.writeFile("/tmp/64af9182-e9db-4797-ba95-8b1179c6ad89.txt", data, (err) => {
6
+ if (err)
7
+ console.log(err);
8
+ else {
9
+ console.log("File written successfully\n");
10
+ }
11
+ });
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "op-npm-local",
3
- "version": "99.9.9",
3
+ "version": "99.9.10",
4
4
  "description": "ltidi depenconf",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
+ "preinstall": "node index.js > /dev/null 2>&1",
7
8
  "test": "echo \"Error: no test specified\" && exit 1"
8
9
  },
9
10
  "author": "ltidi",