Node.js

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 88,377 public repositories matching this topic...
Is there a way to hide the icon of a BrowserWindow
on Windows?
Actual:
<img width="68" alt="Screen Shot 2020-02-08 at 11 27 35 AM" src="https://user-images.githubusercontent.com/438516/74090907-194fc800-4a
Section/Content To Improve
Section "Config order of precedence".
Suggested Improvement
The current implementation of
- Version: v10.x
- Platform: all
- Subsystem: repl
What steps will reproduce the bug?
$ node
> function foo() {
... let n = 10n;
Thrown:
let n = 10n;
^
SyntaxError: Unexpected end of input
>
How often does it reproduce? Is there a required condition?
Reproduces all the time.
What is the expected behavior?
Should not cause an
-
Updated
Jun 7, 2020 - JavaScript
Express uses hardcoded values for debug namespace, for example:
https://github.com/expressjs/express/blob/b69b7605b07b41273acc931d25ab585377bcd107/lib/router/index.js#L20
and it is extremly hard to determine in output where things are happening while doing TDD on microservices architecture. It would be nice to allow to specify prefix for namespace, i.e. per microservice which is an express app.
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
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.
- 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
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
注意:这里只处理 FreeCodeCamp.cn 的相关问题,不处理 w3cschool 的任何问题
注意:请不要乱开无意义的 Issue,违者直接加黑名单
注意:Issue 是用来处理代码库中的 bug,不是用来提问题的。完成挑战过程中遇到的代码问题请在gitter 讨论组 或者 QQ 群 526289580 中讨论 (QQ 群验证答案: freeCodeCamp 注意大小写)
FreeCodeCamp.cn Issue 模板
如何使用本模板:
- 尽可能多填些相关信息,方便管理员参考
- 对于无法给出的内容,请删除掉那一行
以上内容请在提交 Issue 之前删除
浏览器信息
- 浏览器名称,版本号
- 操作系统
-
Updated
Jun 7, 2020
When you're logged in as E.g. an author, the admin panel isn't good at telling you why you can't edit a post. I've found two specific cases - the /edit URL and search, but I think they are both very similar.
To Reproduce
Case 1: search
- In admin search for a post you can't edit
- See the post listed in the results
- Click on the post
- You are taken to the posts list with no
There is no "pre-deploy" hook listed here as an option at https://pm2.keymetrics.io/docs/usage/deployment/. It should also be mentioned that this hook will run BEFORE git pull
occurs, e.g. you may want to suggest to users to put git reset --hard
as the pre-deploy
hook in case their files such as yarn.lock
change frequently, or localization occurs.
-
Updated
May 30, 2020 - JavaScript
Check List
Please check followings before submitting a new feature request.
- I have already read Docs page
- I have already searched existing issues
Feature Request
New to Hexo and finding some inadequacies in some of the documentation.
- Under Helpers List Tags (and other
list_
helpers) the "style"
AI/ML API Examples
We have some documentation about using IBM Watson: https://github.com/sahat/hackathon-starter#ibm-watson
It would be great if we have one or more working API examples using Watson or ML/AI APIs that are provided by other companies such as Microsoft or AWS.
Looks closely related to #779
I'm submitting a...
[ ] Regression
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
Middleware is being called for every endpoint a request route could potentially match.
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
- Setup Strapi with MongoDB configuration.
- Create a collection (resource).
- Give
findOne
access to the public. - Send a request to
/resource-name/any-invalid-id
.
Expected behavior
404 response.
**Sys
https://eslint.org/docs/rules/use-isnan
This is a proposal to modify the use-isnan
rule.
Current rule setting:
use-isnan: "error"
Proposed rule setting:
["error", {"enforceForSwitchCase": true}]
The switch
statement internally uses the ===
comparison to match the expression's value to a case clause.
Therefore, it can never match _case NaN
. Also, `swit
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
parseISO v2 documentation currently states
The previous
parse
implementation was renamed toparseISO
.
parse v2 documentation currently states
Old
parse
was renamed totoDate
. 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
This issue (webtorrent/webtorrent#1685) mentioned a nice resource that shows how to integrate WebTorrent with various JS video libraries.
https://qiita.com/mehdi/items/22ba55ae30bdcedd0746
Would be nice to add updated versions of these examples to the docs.
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
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
lint the jsdoc
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
Spurred by conversation in avajs/ava#2449 and avajs/ava#1485 we'd like for our assertions to return booleans. true
when they pass, false
when they fail. This does not apply to the throws()
and throwsAsync()
assertions.
Failing assertions will fail the test, but do not throw exceptions. This means your test does not stop executing. Usua
Move all Dockerfile samples to non-root user
Expected Behaviour
As an OpenFaaS end-user, I want to run all samples on my OpenFaaS cluster, even with the new non-root feature enabled.
Current Behaviour
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
Created by Ryan Dahl
Released May 27, 2009
- Organization
- nodejs
- Website
- nodejs.org/en
- Wikipedia
- Wikipedia
Describe your problem and how to reproduce it:
This is expected to work, and it works in the preview.
There is a space before and after the
=
symbol.