Skip to content
#

Node.js

nodejs logo

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 61,962 public repositories matching this topic...

freeCodeCamp
goldbergyoni
goldbergyoni commented Jan 26, 2020

Given the immense popularity of Docker and the need to harden it different per platform (see ideas below) - we'd like to start writing a Docker best practices section.

You're welcome to contribute ideas and write best practices - writing and brainstorming will people is an amazing way to deepen your Docker understanding.

At first, we want to collect ideas for best practices, solidify a list

MastroLindus
MastroLindus commented Feb 24, 2020

Some of the issues below are already mentioned in other tickets, but I have the feeling that a proper generic issue is due to give it visibility, as for now the current package is unusable for many users.

  1. The typescript package doesn't respect the tsconfig flags, and many of them are hardcoded inside the meteor/babel package.
    I understand that meteor needs to control some compilation option
Gryphn
Gryphn commented Apr 15, 2020

Minor thing, but would be nice to be able to get to dev tools without right click + Inspect, especially when menu is shown by the app on right click.

NWJS Version : 0.45.1
Operating System : macOS Catalina

Expected behavior

Devtools menu item or command + option + I should open dev tools

Actual behavior

It works in nw1 mode, but not in nw2, has been like that for a whil

Ghost
rishabhgrg
rishabhgrg commented Oct 8, 2019

Issue Summary

Bookmark card has few minor issues atm as listed below -

  • Better error message handling: Currently bookmark card fails with Unable to parse URL error in case of all failures including insufficient metadata available. We should differentiate between "unable to parse" and "page has insufficient metadata" cases and show appropriate error message to avoid confusion (ref: ht
amrsalama
amrsalama commented Apr 24, 2020

Describe the bug
Find-one endpoint /resource/:id responses with 500 status code instead of 404, this happens with MongoDB setup.

Steps to reproduce the behavior

  1. Setup Strapi with MongoDB configuration.
  2. Create a collection (resource).
  3. Give findOne access to the public.
  4. Send a request to /resource-name/any-invalid-id.

Expected behavior
404 response.

**Sys

icleolion
icleolion commented Jan 16, 2020

parseISO v2 documentation currently states

The previous parse implementation was renamed to parseISO.

parse v2 documentation currently states

Old parse was renamed to toDate. Now parse is a new function which parses a string using a provided format.

I think considering the sentence is to divert people who have previously been using v1 parse to the correct v2 equivalent, it only

sheetjs
dandv
dandv commented Jan 6, 2020
const XLSX = require('xlsx');

const wb = XLSX.utils.book_new();

const ws = XLSX.utils.json_to_sheet([]);

XLSX.utils.book_append_sheet(wb, ws, 'Bug sheet');

ws.A1 = { t: 's', f: 'square' };

XLSX.writeFile(wb, 'formula.ods');

The resulting .ODS file contains:

<table:table-cell table:formula="of:=square" office:value-type="string"><text:p>undefined</text:p></table
langpavel
langpavel commented Oct 24, 2017

Too wide (and falsy) segregation of GraphQL Types and Resolvers

The first example of this is new ObjectType in src/data/queries/index.js importing fields.
Fields should be taken in context of parent type, not as standalone information.

This can ensure some users that custom types cannot have own field resolvers which is false.

In fact, much of fields which can have own resolvers

boneskull
boneskull commented Apr 14, 2020

I'm getting bit with failing documentation builds because I'm writing docstrings that JSDoc doesn't like (specifically, TS-style). But there's no linting happening before getting to Netlify.

We may be able to make JSDoc just check the syntax and exit (and make it part of the lint scripts).

This is moot if we want to move forward with maintaining our own TS types (for which there is an op

ava
sunshineo
sunshineo commented Apr 9, 2020

Is your feature request related to a problem? Please describe.
Deployed Parse server using k8 and used /parse/health for the readinessProbe and livenessProbe probe. But when deploy new code and broke the database connection, /parse/health still returns 200 OK. So old container was killed and new broken one brought online

Describe the solution you'd like
Only return 200 ok after db is

dadiu
dadiu commented Jul 12, 2017

具体报错如下图

F:\github\myStudy\node\lesson6>mocha

test/main.test.js
1) should equal 0 when n === 0
2) should equal 1 when n === 1
3) should equal 55 when n === 10
√ should throw when n > 10
√ should throw when n < 0
√ should throw when is not Number

3 passing (35ms)
3 failing

  1. test/main.test.js should equal 0 when n === 0:
    AssertionError: e
john1625b
john1625b commented Apr 2, 2018

I am making a health check endpoint for kubernetes (google cloud's service to host containerized applications) for my mySql application.

right now I am using this package https://www.npmjs.com/package/health-check-mysql

But is there something built into the package itself, something like a isConnected method. ie:
connection.isConnected() ? throw new Error('not connected to mysql') : null

ajprax
ajprax commented Dec 20, 2017

With log: {backend: "stdout", level: "..."} in config.js the daemon ignores the log level and still prints everything to stdout. This seems to be the result of lib/logger.js using util.log (deprecated since 6.0.0 20 months ago) which does not support log levels.

If the stdout logger cannot be easily made to respect the log level, it would be helpful if the config documentation in `exam

bug

Created by Ryan Dahl

Released May 27, 2009

Organization
nodejs
Website
nodejs.org/en
Wikipedia
Wikipedia
You can’t perform that action at this time.