What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-04 04:51:02
slack file upload axios
const fs = require("fs"); const axios = require("axios"); const FormData = require("form-data"); const form = new FormData(); form.append("token", 'token here'); form.append("channels", channelId); for... Add solution -
Other 2021-09-22 23:17:02
downloading image using axios
/* by Kindacode.com */ const fs = require('fs'); const path = require('path'); const axios = require('axios').default; // fileUrl: the absolute url of the image or video you want to download // downloadFolder: the path of the downloaded file on your mach... Add solution -
Javascript 2021-09-18 15:46:03
nodejs interface
// MenuInterface.jsclass MenuInterface { constructor() { if(!this.getItems) { throw new Error("Menu's must have items!"); } }}// ---// file index.jsimport MenuInterface from './MenuInterface';class Menu extends MenuInterface { // n... Add solution -
Javascript 2021-09-17 20:37:02
async vs await javascript
async function myFetch() { let response = await fetch('coffee.jpg'); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); } let myBlob = await response.blob(); let objectURL = URL.createObjectURL(myBlob); let i... Add solution