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 82,538 public repositories matching this topic...

freeCodeCamp
RandellDawson
RandellDawson commented Mar 2, 2020

Following up on the comment on PR 38309, the following English challenge tests need to be updated as described, as the non-English version were translating these when they should not have been translated.

  • Standardize Times with the HTML5 datetime Attribute
    Issues: All tests need to be re-translated

  • Use

electron
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
li000306
li000306 commented Mar 11, 2020

注意:这里只处理 FreeCodeCamp.cn 的相关问题,不处理 w3cschool 的任何问题

注意:请不要乱开无意义的 Issue,违者直接加黑名单

注意:Issue 是用来处理代码库中的 bug,不是用来提问题的。完成挑战过程中遇到的代码问题请在gitter 讨论组 或者 QQ 群 526289580 中讨论 (QQ 群验证答案: freeCodeCamp 注意大小写)

FreeCodeCamp.cn Issue 模板

如何使用本模板:

  • 尽可能多填些相关信息,方便管理员参考
  • 对于无法给出的内容,请删除掉那一行

以上内容请在提交 Issue 之前删除

浏览器信息

  • 浏览器名称,版本号
  • 操作系统
arudnev
arudnev commented Feb 28, 2020

NWJS Version : 0.44.3
Operating System : macOS Catalina (10.15.3)

Expected behavior

Window should be centered vertically

Actual behavior

Window is centered around 1/3 of screen height, closer to the top

How to reproduce

rm -rf "${HOME}/Library/Application Support/nwjs-test" && \
cd /tmp && rm -rf nwjs-test && mkdir nwjs-test && cd nwjs-test && \
echo '{"name":
Ghost
formerandroider
formerandroider commented Dec 18, 2019

Issue Summary

In Safari 13.0.4 on macOS 10.15.2, the 'Upload routes YAML' button triggers a file browser that only allows selection of files ending in .yml. These are not accepted by the application, which requires a .yaml extension. This results in routes not being uploadable with Safari.

To Reproduce

  1. In Safari, click the 'Upload routes YAML' button in Labs.

This doesn'

AoDev
AoDev commented Apr 1, 2020

What's going wrong?

The docs say that the default exec_mode is fork. However, when exec_mode is not defined in the config, my processes start in cluster mode.

How could we reproduce this issue?

A config without exec_mode defined.

feross
feross commented Sep 14, 2019

https://eslint.org/docs/rules/default-param-last

Putting default parameter at last allows function calls to omit optional tail arguments.

// Correct: optional argument can be omitted
function createUser(id, isAdmin = false) {}
createUser("tabby")

// Incorrect: optional argument can **not** be omitted
function createUser(isAdmin = false, id) {}
createUser(undefined, "tabby")
``
dlight
dlight commented Aug 25, 2019

Description

Clicking the tray icon should minimize the window (like other apps with systray support, such as Telegram).

This is not the same issue as having Nativefier minimize to tray after the window is closed (as in #97, #127 or #158), which already works. It's just annoying having to manually close the window.

Steps to reproduce issue

Open a website with --tray. You shoul

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

outsideris
outsideris commented Oct 5, 2019

If specify non-existed file with --file option, mocha throw expection.

./bin/mocha --file non-existed
/Users/mocha/node_modules/yargs/yargs.js:1163
      else throw err
           ^

Error: Cannot find module '/Users/mocha/non-existed'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
    at Function.Module._load (internal/modules/cjs/loader.js:508:25
ava
lovell
lovell commented Apr 21, 2015

As suggested by @jcupitt in #19.

You could also consider taking a histogram of L* and setting the range to 1% and 99%, ie. letting the top 1% and the bottom 1% over- and under-expose. This would make it less sensitive to noise and probably produce a more pleasing image in more cases.

vips_percent() does almost this, you'd swap your vips_stats() for this code:
https://github.com/jcupitt/

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

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.