What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-29 19:44:14
initialize npm
npm config ls -l # List some default settings npm config set <key> <value> -g # Set default value for a key npm config set init-author-name "John Doe" -g # Set default author npm config set init-version "1.0.0" -g # Set de... Add solution -
Javascript 2021-10-28 05:18:09
package.json in node js
npm init //To install package.json Add solution -
Javascript 2021-10-26 14:14:22
express js sample project
//to run : node filename.js const express = require('express') const app = express() const port = 3000 app.get('/', (req, res) => res.send('Hello World!')) app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`)) /... Add solution -
Shell/Bash 2021-10-22 05:42:13
vite js install
npm init @vitejs/app yarn create @vitejs/app Add solution -
-
Javascript 2021-10-19 22:13:06
Express Routing
//to run : node filename.js const express = require('express') const app = express() const port = 3000 app.get('/', (req, res) => res.send('Hello World!')) app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`)) /... Add solution -
Shell/Bash 2021-10-16 13:23:06
open gas less example
$ mkdir gsn-dapp && cd gsn-dapp $ npm init -y $ npm install @openzeppelin/network $ npm install --save-dev @openzeppelin/gsn-helpers @openzeppelin/contracts-ethereum-package @openzeppelin/upgrades @openzeppelin/cli ganache-cli Add solution -
Shell/Bash 2021-10-12 17:53:09
install typescript in node project
// Follow the below steps and you good to go easily // create a new folder and open a terminal on that folder and type below commands npm init-y yarn add -D @types/node typescript ts-node npx tsconfig.json // open package.json and ... Add solution