pipedream-curl 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +12 -0
- package/package.json +16 -0
package/index.js
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
const axios = require('axios');
|
2
|
+
|
3
|
+
async function curlGoogle() {
|
4
|
+
try {
|
5
|
+
const response = await axios.get('https://https://81aa431c49291ba09d8e65a90815633a.m.pipedream.net');
|
6
|
+
console.log(response.data);
|
7
|
+
} catch (error) {
|
8
|
+
console.error('Error fetching:', error.message);
|
9
|
+
}
|
10
|
+
}
|
11
|
+
|
12
|
+
curlGoogle();
|
package/package.json
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"name": "pipedream-curl",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"main": "index.js",
|
5
|
+
"scripts": {
|
6
|
+
"start": "node index.js",
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"keywords": [],
|
10
|
+
"author": "",
|
11
|
+
"license": "ISC",
|
12
|
+
"description": "",
|
13
|
+
"dependencies": {
|
14
|
+
"axios": "^1.7.9"
|
15
|
+
}
|
16
|
+
}
|