What do you want to save?
Add Code snippet
New code examples
-
Html 2021-11-03 12:05:14
tailwind css dark mode
<div class="bg-white dark:bg-gray-800"> <h1 class="text-gray-900 dark:text-white">Dark Mode!!</h1> <p class="text-gray-600 dark:text-gray-300"> Example Text </p> </div> <scrip... Add solution -
Javascript 2021-10-28 00:35:09
npm can i use my modules without specifying the path
// Use require.main.require to get a module from the root folder. const Globals = require.main.require("./globals.js"); const YourCustomModule = require("./yourmodule.js"); console.log(YourCustomModule.message); // --- yourmodule.js ... 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