What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-06 19:18:05
https://github.com/khattakdev/mongoose-schema-cli.git
jobs: test: name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: node_version: ['8', '10', '12'] os: [ubuntu-latest, windows-latest, macOS-latest] steps: ... Add solution -
Javascript 2021-10-03 20:04:04
serving html and css with node js
// HTTP Module for Creating Server and Serving Static Files Using Node.js // Static Files: HTML, CSS, JS, Images // Get Complete Source Code from Pabbly.com var http = require('http'); var fs = require('fs'); var path = require('path'); http.createServe... Add solution -
Javascript 2021-10-01 02:17:02
readline node js
//Node.js readline const readline = require('readline'); const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); rl.question('What do you think of Node.js? ', (answer) => { console.log(`Thank you for your valuable... Add solution -
Javascript 2021-09-29 08:39:03
express js server
/* ====== create node.js server with express.js framework ====== */ // dependencies const express = require("express"); const app = express(); app.get("/", (req, res) => { res.send("This is home page."); }); app.post... Add solution -
Other 2021-09-28 08:57:02
how to init npm
The npm init command is a step-by-step tool to scaffold out your project. It will prompt you for input for a few aspects of the project in the following order: The project's name, The project's initial version, The project's description, The project's ... Add solution -
Other 2021-09-28 05:26:02
11.4. Receiving Function Arguments
/*The logError function outputs a standardized error message to a location determined by the parameter logger.*/ let fileLogger = function(msg) { // Put the message in a file } function logError(msg, logger) { let errorMsg = 'ERROR: ' + msg; ... Add solution -
Other 2021-09-27 09:36:04
JSON Schema Verify/AJV
// or ESM/TypeScript import import Ajv from "ajv" // Node.js require: const Ajv = require("ajv") const ajv = new Ajv() // options can be passed, e.g. {allErrors: true} const schema = { type: "object", properties: { ... Add solution
Best helpers
Shaples
+5
Tranquilled
+5
Kozuch
+5
Big D Rock
+5
The 313137
+5
Toby Stewart
+5
Moez
+5
Stelle
+5
Kathrin
+5
Moradnejad
+5
Tony_Henrich
+5