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 75,956 public repositories matching this topic...
Consider the following snippet run in the main process where one wants to listen for "will-prevent-default" events and after some asynchronous operation (do_something, a call which returns a Promise) initiated by the event listener, depending on the result (result) of the operation, call preventDefault on the even
Section/Content To Improve
Config defaults
Suggested Improvement
The documentation teases with a concept of common when setting default header values:
axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';Presumably, that mean
test-source-map fails on Windows 10. Looking at the test file, there is a special case for Windows that is not being met under certain conditions. I believe it has to do with how git is configured to handle line endings on checkout but I still need to confirm
C:\Users\jasne\Projects\node>Release\node test\parallel\test-source-map
assert.js:93
throw new AssertionError(obj);
^
Description
So our function arrayToHtmlList is in a pretty bad space and could use an update. We already had some discussion over at #675 but I wanted to move the update discussion over to an issue for more visibility.
Current problem:
It uses an awkward query selector instead of the `document.prototype.getElementBy
If you follow the readme procedure, the following error will occur in the first npm install express.
saveError ENOENT: no such file or directory, open '/xxx/xxx/package.json'
As you know, the cause is package.json does not exist.
Other users seem to have a similar error, so it seems better to add npm init to the readme.
Or I thought it would be nice to bring a link `Please follow
Following the instructions in the readme:
If the above doesn't fix the problem, you may try the following:
- Open your
.bash_profile(or~/.zshrc,~/.profile, or~/.bashrc) and add the following line of code:source ~/<your_profile_file>. E.g.source ~/.bashrcorsource ~/.zshrc.- If the above don't work, try adding the [snippet from the install section](#profile_snipp
:white_check_mark: The largest Node.js best practices list (December 2019)
-
Updated
Dec 26, 2019 - JavaScript
Challenge Build a Tribute Page has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
好像VIMEO把GOOGLE的云服务器IP拉黑了,始终打不开视频。想问问是否有其他视频源可以观看
NWJS Version : 0.42.5
Operating System : Win10 (1903)
Expected behavior
Initializing a tray icon via bg-script, according to the tray doc page, the tray icon should still work after an app page reload via context menu or dev tools.
Actual behavior
Well, it does not. It still gets detached from the app after reloading and it als
We've moved to eslint-plugin-ghost@0.5.0 which includes eslint-plugin-mocha.
A number of the mocha linting rules are quite valuable for keeping tests performant and readable but were turned off in Ghost because they caused a lot of noise with our existing codebase. It would be great to resolve the issues so that we can turn the rules back on
What's going wrong?
I discovered this default behavior of PM2 by trial and error:
-outlogs and-errlogs will default to output in~/.pm2/logs, unless and only unless they are [rerouted](http://pm2.keymetrics.io/docs/usage/lo
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.
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"
ESLint supports the notion of "processors" which allows us to extract JS from markdown files and lint it to ensure it is in standard style. https://eslint.org/docs/user-guide/configuring#specifying-processor
That would let us eliminate this whole section of the readme which describes how to install eslint-plugin-markdown, run standard with the --plugin flag. In the end you need to actuall
- Are you nativefying a public website? Yes
- Feature request? Have you looked at
nativefier --helpto see if an existing option could fit your needs? Yes - OS:
Windows 10 - Error message / stack trace (if any):
Resource interpreted as Document but transferred with MIME type text/csv: "https://www.example.com/wp-admin/admin-ajax.php?action=export_appointments".
I'm trying to export cs
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.
When I read the docs, e.g. https://date-fns.org/v2.8.1/docs/Time-Zones , I found some example code has errors (The pattern 'D.M.YYYY HH:mm:ss.SSS [GMT]Z (z)' in the that page is not valid), but can't find a place to post comments.
I also find several other minor issues in the documents too. Consider add a link or something to let readers add comments?
Describe the bug
Probably this is not a real bug but more an enhancement, even if it could be fixed easily I think it would m
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
I noticed a bug in the html_to_sheet function. When reading cells that are empty, the cell index is correctly incremented, but if the cell has HTML tags and is observed to be empty after stripping the tags, the cell index is not incremented. This results in misalignment of the subsequent cells:
https://github.com/SheetJS/js-xlsx/blob/e3c5eac99c3b2be6929adfca455c1be87fab792b/xlsx.js#L18956-L18
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
Document `t.try()`
#1947 landed a new t.try() assertion. It's experimental, one of the reasons for which is that we don't have documentation yet.
We need to document the assertion, how to use it and what the edge cases are.
Apologies for how bare this issue is — happy to elaborate more if you're looking to contribute this
I've spent a while investigating and assessing various options to replace readthedocs, including but not limited to docusaurus, docsify, docpress, gitbook and vuepress.
I really like the docsify approach and then discovered the similar but-with-more-bells-attached docute and it appears to support pretty much everything we need (and more):
- retrieves *vers
The output I get is
$ pkg . --targets node10-alpine-x64 --out-path pkg
> pkg@4.4.1
> Fetching base Node.js binaries to PKG_CACHE_PATH
> Warning Cannot include addon %1 into executable.
The addon must be distributed with executable as %2.
/app/node_modules/node-sass/vendor/linux_musl-x64-64/binding.node
path-to-executable/binding.node
> Error! Cannot read file, ENOENT
worker

The GIF over here depicts fCC in its old design. Even though I don't think there's anything wrong with it, I guess it should be updated to align with how fCC looks now
![image](https://user-images.githubusercontent.com/34807532/70627002-6e7c8280-1c4b-11ea-87d