Extracted from tooling-agenda labelled issues and pull requests from the nodejs org prior to the meeting.
fs
hooks #63
// no args
const args = process.parseArgs()
// node foo.js
// { _: [] }
// node foo.js something
// { _: ['something'] }
// flags are default, strings can be specified:
// node foo.js --foo hello --bar
// {_: [], foo: 'hello', bar: true}
const args = process.parseArgs({
strings: ['foo', 'a']
})
// Better property name?
requiresValue?
wantsValue?
prefersValue?
takesValue?
// without strings option:
// {_:['hello'], foo: true, bar: true}
// node foo.js --bar
// then result: {_: [], bar: ''}
const args = process.parseArgs({
strings: ['bar']
})
// or
// maybe, this might be V2:
const args = process.parseArgs(someOtherArrayOfArgs, {
strings: ['foo', 'a']
})
// Negative numbers are kind of annoying and we're
// trying to think it through:
// add -- -9 -1 // -9, -8
// grep -r -99999 ./foo
// result:
{
_: ['-9', '-1']
}
// Stop parsing, e.g., npm test -- --grep="some suite"
// foo.js --foo -- --bar --apple
Click +GoogleCalendar
at the bottom right to add to your own Google calendar.
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing