node
Node.js is a tool for executing JavaScript in a variety of environments. JavaScript had humble beginnings as a language that lived only in web browsers, but the Node.js project has expanded its reach and helped make it the most popular programming language in the world. Node.js extends the creative potential of people with web development experience, enabling a new generation of developers to create servers, command-line tools, desktop apps, and even robots.
Here are 14,322 public repositories matching this topic...
Bug report
Describe the bug
When putting getInitialProps in _app.js, and client-side-transitioning to a page with getServerSideProps, the code in getInitialProps runs server-side.
This conflicts with the documentation:
For the initial page load, getInitialProps will run on the server only. getInitial
-
Updated
Nov 5, 2020 - JavaScript
-
Updated
Nov 24, 2020 - JavaScript
-
Updated
Nov 25, 2020 - JavaScript
-
Updated
Nov 23, 2020 - JavaScript
e.g. isPassportNumber, etc.
-
Updated
Nov 8, 2020 - JavaScript
-
Updated
Nov 24, 2020 - JavaScript
-
Updated
Nov 11, 2020 - JavaScript
-
Updated
Nov 18, 2020 - JavaScript
Context
This isn't really a feature request, as what I need is possible with nock as-is. But I spent several hours searching, reading old issues and searching through the source code to find the solution, so I thought this might help others.
I am testing code that accesses a service that sets the statusMessage of the response, as well as the statusCode. I am using nock to mock the server
-
Updated
Jul 7, 2020 - JavaScript
-
Updated
Nov 20, 2020 - JavaScript
-
Updated
Sep 1, 2020 - JavaScript
-
Updated
Nov 25, 2020 - JavaScript
-
Updated
Aug 29, 2020 - JavaScript
-
Updated
Nov 23, 2020 - JavaScript
-
Updated
Nov 24, 2020 - JavaScript
It would be better to use bcrypt, beause its more secure as it's slower (uses more computing cycles).
Your code could also be better:
You wouldn't need salt field in User model, because it's saved into the same field as password does.
For authentication, something like:
var mongoose = require('mongoose'),
bcrypt = require('bcryptjs');
var userSchema = mongoose.Schema({
email: String,
-
Updated
Feb 19, 2020 - JavaScript
Created by Ryan Dahl
Released May 27, 2009
- Organization
- nodejs
- Website
- nodejs.org/en
- Wikipedia
- Wikipedia

Is your feature request related to a problem? Please describe.
The code above just hangs.
Describe the solution you'd like
const readline = require('readline'); const input = readline.createInterface({ input: process.stdin }); +input.unref(