What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2022-02-20 03:10:16
typescript class import csv file
// # csv file import csvData from './latlong.csv'; //# text import import textData from '../common/text/info.txt'; //# json import import jsonData from '../common/json/jsondata.json'; export const TextResource = textData; // not-work export const JsonRe... Add solution -
Javascript 2022-02-03 10:51:26
nodejs csv to json from link
const { Parser } = require('json2csv'); const myCars = [ { "car": "Audi", "price": 40000, "color": "blue" }, { "car": "BMW", "price": 35000, "... Add solution -
Javascript 2022-01-31 22:01:25
jquery parse html
// use for nodejs (without window) const jsdom = require("jsdom"); const { JSDOM } = jsdom; const { window } = new JSDOM(); const { document } = (new JSDOM('')).window; global.document = document; const $ = jQuery = require('jquery')(window); ... Add solution -
Javascript 2022-01-26 07:40:31
Working with XLSX in JavaScript
/* This code comes from Vincent Lab And it has a video version linked here: https://www.youtube.com/watch?v=TDGsVqVzW4A */ // Import dependencies const fs = require("fs"); const XLSX = require("xlsx"); const jsontoxml = requir... Add solution -
Other 2021-10-20 21:55:06
postman bearer token
// Add to collection pre scripts // Also don’t forget to set auth in endpoint as {{access_token}} let tokenUrl = 'Your url to get token'; let email = 'Your email'; let password = 'Your password'; if (pm.environment.name === 'Your env') { token... Add solution -
Javascript 2021-10-18 23:59:04
node.js untrusted_authority: The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."
const fetch = require('node-fetch-with-proxy'); async function sendGetRequestAsync(url, options) { const response = await fetch(url, options); const json = await response.json(); const headers = response.headers.raw(); return { headers: Objec... Add solution -
Javascript 2021-10-06 21:16:04
react fetch data in for loop
/* ORIGINAL CODE */ videoUrls=()=>{ let i=0; let urllist=[] for(i;i< this.state.data.length;i++){ fetch(`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${this.state.data[i].name}&key=xxxxxxxxxxx0`) .then(respo... Add solution
Best helpers
Ranking is empty