Pick the right one and add to your repo to show what kind of module it is
[](https://nodejs.org/api/esm.html)
name: List Todos | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
pull_request: | |
branches: |
diff --git a/include/distversion.h b/include/distversion.h | |
new file mode 100644 | |
index 00000000000..b8a3724b76b | |
--- /dev/null | |
+++ wine/include/distversion.h | |
@@ -0,0 +1,12 @@ | |
+/* --------------------------------------------------------------- | |
+* distversion.c | |
+* |
license:CDDL-1.0 | |
license:CDDL-1.1 | |
license:CPL-1.0 | |
license:EPL-1.0 | |
license:EPL-2.0 | |
license:ErlPL-1.1 | |
license:IPL-1.0 | |
license:LGPL-2.0-only | |
license:LGPL-2.0-or-later | |
license:LGPL-2.1-only |
This is my config for the Starship
cross-shell prompt.
// My own take | |
const JSON_ESCAPE = { | |
'&': '\\u0026', | |
'>': '\\u003e', | |
'<': '\\u003c', | |
'\u2028': '\\u2028', | |
'\u2029': '\\u2029' | |
}; |
# **** History setup **** | |
setopt EXTENDED_HISTORY | |
# share history across multiple zsh sessions | |
setopt SHARE_HISTORY | |
# append to history | |
setopt APPEND_HISTORY | |
# adds commands as they are typed, not at shell exit | |
setopt INC_APPEND_HISTORY | |
# expire duplicates first |
/** | |
* @template T | |
* @param {T} value | |
* @returns {T} | |
*/ | |
const passthrough = value => value; | |
/** | |
* @param {object} [options] | |
* @param {(value: string) => string} [options.staticCallback] |
// Used in real world eg. here: https://github.com/voxpelli/node-format-microformat/blob/5381268dbcdb1aef6a5757758710e4b9f75cbea3/index.js#L72-L78 | |
// Works | |
/** @typedef {null|undefined|boolean|string|number|Array} NonObject */ | |
/** | |
* @template T | |
* @typedef {T|Promise<T>} MaybePromised | |
const fbUserAgentPattern = /\]|(?:[\;\[](?=FB|$]))/; | |
const parseFbUserAgentOptions = (input) => input.split(fbUserAgentPattern) | |
.filter(text => text.startsWith('FB')) | |
.reduce(text => { | |
const [ name, value ] = text.split('/'); | |
return { name, value }; | |
}, result); | |
const prettifyFbUserAgentOptions = (fbUserAgentOptions) => fbUserAgentOptions.map(({name, value}) => name + ': ' + value).join('\n'); |