edf2csv 0.7.226 → 0.7.228
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +20 -20
- package/dist/cli.js.map +1 -1
- package/dist/convert/run.d.ts +1 -2
- package/dist/convert/run.js +12 -13
- package/dist/convert/run.js.map +1 -1
- package/dist/edf/scale.d.ts +11 -0
- package/dist/edf/scale.js +11 -11
- package/dist/edf/scale.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1953,6 +1953,26 @@ function optionalDecimals(raw) {
|
|
|
1953
1953
|
declaring a negative sample count under a label containing `\x1b[2J` cleared the reader's
|
|
1954
1954
|
screen on the way out.
|
|
1955
1955
|
*/
|
|
1956
|
+
/**
|
|
1957
|
+
* A token as it has to be typed for a shell to hand it over unchanged.
|
|
1958
|
+
*
|
|
1959
|
+
* Every hint in this file that prints a command has to print one that works — the comment on
|
|
1960
|
+
* the `--channels` advice in the header parser lists three separate times it did not. These
|
|
1961
|
+
* two are the same failure at the command line rather than in a channel label. `--out "-my
|
|
1962
|
+
* nightly"` was answered with `Write it as one argument instead: --out=-my nightly`, which is
|
|
1963
|
+
* two arguments; `--chan"nels` was answered with `edf2csv -- "--chan"nels"`, whose quotes
|
|
1964
|
+
* collapse into something else again.
|
|
1965
|
+
*
|
|
1966
|
+
* Left bare when a shell would read it as written, so the ordinary `--out=-nightly` reads as
|
|
1967
|
+
* it always has. Otherwise single-quoted, the one POSIX form with no escapes inside it: a
|
|
1968
|
+
* single quote in the token closes, escapes and reopens.
|
|
1969
|
+
*/
|
|
1970
|
+
function survivesBare(text) {
|
|
1971
|
+
return text !== '' && !/[^\w@%+=:,./-]/u.test(text);
|
|
1972
|
+
}
|
|
1973
|
+
function singleQuoted(text) {
|
|
1974
|
+
return `'${text.replaceAll("'", "'\\''")}'`;
|
|
1975
|
+
}
|
|
1956
1976
|
/**
|
|
1957
1977
|
* A `parseArgs` failure, in this tool's words where they are better than Node's.
|
|
1958
1978
|
*
|
|
@@ -1990,26 +2010,6 @@ function optionalDecimals(raw) {
|
|
|
1990
2010
|
* one keystroke away. This repository's own stdout audit picks errors out of stderr with
|
|
1991
2011
|
* `line.startsWith('error:')`, so by its own reckoning these two runs printed no error and exited 2.
|
|
1992
2012
|
*/
|
|
1993
|
-
/**
|
|
1994
|
-
* A token as it has to be typed for a shell to hand it over unchanged.
|
|
1995
|
-
*
|
|
1996
|
-
* Every hint in this file that prints a command has to print one that works — the comment on
|
|
1997
|
-
* the `--channels` advice in the header parser lists three separate times it did not. These
|
|
1998
|
-
* two are the same failure at the command line rather than in a channel label. `--out "-my
|
|
1999
|
-
* nightly"` was answered with `Write it as one argument instead: --out=-my nightly`, which is
|
|
2000
|
-
* two arguments; `--chan"nels` was answered with `edf2csv -- "--chan"nels"`, whose quotes
|
|
2001
|
-
* collapse into something else again.
|
|
2002
|
-
*
|
|
2003
|
-
* Left bare when a shell would read it as written, so the ordinary `--out=-nightly` reads as
|
|
2004
|
-
* it always has. Otherwise single-quoted, the one POSIX form with no escapes inside it: a
|
|
2005
|
-
* single quote in the token closes, escapes and reopens.
|
|
2006
|
-
*/
|
|
2007
|
-
function survivesBare(text) {
|
|
2008
|
-
return text !== '' && !/[^\w@%+=:,./-]/u.test(text);
|
|
2009
|
-
}
|
|
2010
|
-
function singleQuoted(text) {
|
|
2011
|
-
return `'${text.replaceAll("'", "'\\''")}'`;
|
|
2012
|
-
}
|
|
2013
2013
|
function usageMessage(error, argv) {
|
|
2014
2014
|
/** Node's own wording, carrying this tool's prefix. */
|
|
2015
2015
|
const asError = (text) => (text.startsWith('error:') ? text : `error: ${text}`);
|