@dotpi/tools 2.9.2 → 2.9.5
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/dotpi_root/bin/dotpi_prepare_system +8 -0
- package/dotpi_root/dist/@dotpi/avahi-monitor-module/package.json +1 -1
- package/dotpi_root/dist/@dotpi/javascript/package.json +1 -1
- package/dotpi_root/dist/@dotpi/module/package.json +2 -2
- package/dotpi_root/dist/@dotpi/module-module/package.json +3 -3
- package/package.json +5 -5
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/index.d.ts +0 -279
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/index.js +0 -292
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/license +0 -9
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/package.json +0 -49
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/readme.md +0 -337
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/LICENSE +0 -201
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/README.md +0 -180
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/core.js +0 -273
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/main.d.ts +0 -206
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/main.js +0 -70
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/realtime.js +0 -16
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/signals.js +0 -34
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/package.json +0 -64
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/index.d.ts +0 -35
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/index.js +0 -8
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/license +0 -9
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/package.json +0 -41
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/readme.md +0 -58
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/index.d.ts +0 -12
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/index.js +0 -21
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/license +0 -9
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/package.json +0 -47
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/readme.md +0 -35
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/index.d.ts +0 -90
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/index.js +0 -55
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/license +0 -9
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/package.json +0 -52
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/readme.md +0 -104
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/index.d.ts +0 -31
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/index.js +0 -12
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/license +0 -9
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/package.json +0 -41
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/readme.md +0 -57
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/index.d.ts +0 -18
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/index.js +0 -26
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/license +0 -9
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/package.json +0 -49
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/readme.md +0 -34
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/index.d.ts +0 -279
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/index.js +0 -292
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/package.json +0 -49
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/readme.md +0 -337
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/ignore.js +0 -109
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/index.d.ts +0 -207
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/index.js +0 -264
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/index.d.ts +0 -44
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/index.js +0 -223
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/package.json +0 -49
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/readme.md +0 -53
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/default.js +0 -14
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/index.d.ts +0 -29
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/node.js +0 -7
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/package.json +0 -49
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/readme.md +0 -25
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/package.json +0 -94
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/readme.md +0 -177
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/utilities.js +0 -1
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/LICENSE +0 -201
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/README.md +0 -180
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/core.js +0 -273
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/main.d.ts +0 -206
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/main.js +0 -70
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/realtime.js +0 -16
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/signals.js +0 -34
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/package.json +0 -64
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/index.d.ts +0 -35
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/index.js +0 -8
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/package.json +0 -41
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/readme.md +0 -58
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/index.d.ts +0 -12
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/index.js +0 -21
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/package.json +0 -47
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/readme.md +0 -35
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/index.d.ts +0 -90
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/index.js +0 -55
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/package.json +0 -52
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/readme.md +0 -104
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/index.d.ts +0 -31
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/index.js +0 -12
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/package.json +0 -41
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/readme.md +0 -57
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/index.d.ts +0 -51
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/index.js +0 -41
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/package.json +0 -47
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/readme.md +0 -74
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/index.d.ts +0 -23
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/index.js +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/package.json +0 -39
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/readme.md +0 -36
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/index.d.ts +0 -18
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/index.js +0 -26
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/package.json +0 -49
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/readme.md +0 -34
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
# npm-run-path
|
|
2
|
-
|
|
3
|
-
> Get your [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) prepended with locally installed binaries
|
|
4
|
-
|
|
5
|
-
In [npm run scripts](https://docs.npmjs.com/cli/run-script) you can execute locally installed binaries by name. This enables the same outside npm.
|
|
6
|
-
|
|
7
|
-
## Install
|
|
8
|
-
|
|
9
|
-
```sh
|
|
10
|
-
npm install npm-run-path
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
import childProcess from 'node:child_process';
|
|
17
|
-
import {npmRunPath, npmRunPathEnv} from 'npm-run-path';
|
|
18
|
-
|
|
19
|
-
console.log(process.env.PATH);
|
|
20
|
-
//=> '/usr/local/bin'
|
|
21
|
-
|
|
22
|
-
console.log(npmRunPath());
|
|
23
|
-
//=> '/Users/sindresorhus/dev/foo/node_modules/.bin:/Users/sindresorhus/dev/node_modules/.bin:/Users/sindresorhus/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/usr/local/bin'
|
|
24
|
-
|
|
25
|
-
// `foo` is a locally installed binary
|
|
26
|
-
childProcess.execFileSync('foo', {
|
|
27
|
-
env: npmRunPathEnv()
|
|
28
|
-
});
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## API
|
|
32
|
-
|
|
33
|
-
### npmRunPath(options?)
|
|
34
|
-
|
|
35
|
-
`options`: [`Options`](#options)\
|
|
36
|
-
_Returns_: `string`
|
|
37
|
-
|
|
38
|
-
Returns the augmented PATH string.
|
|
39
|
-
|
|
40
|
-
### npmRunPathEnv(options?)
|
|
41
|
-
|
|
42
|
-
`options`: [`Options`](#options)\
|
|
43
|
-
_Returns_: `object`
|
|
44
|
-
|
|
45
|
-
Returns the augmented [`process.env`](https://nodejs.org/api/process.html#process_process_env) object.
|
|
46
|
-
|
|
47
|
-
### options
|
|
48
|
-
|
|
49
|
-
Type: `object`
|
|
50
|
-
|
|
51
|
-
#### cwd
|
|
52
|
-
|
|
53
|
-
Type: `string | URL`\
|
|
54
|
-
Default: `process.cwd()`
|
|
55
|
-
|
|
56
|
-
The working directory.
|
|
57
|
-
|
|
58
|
-
#### execPath
|
|
59
|
-
|
|
60
|
-
Type: `string | URL`\
|
|
61
|
-
Default: [`process.execPath`](https://nodejs.org/api/process.html#processexecpath)
|
|
62
|
-
|
|
63
|
-
The path to the current Node.js executable.
|
|
64
|
-
|
|
65
|
-
This can be either an absolute path or a path relative to the [`cwd` option](#cwd).
|
|
66
|
-
|
|
67
|
-
#### addExecPath
|
|
68
|
-
|
|
69
|
-
Type: `boolean`\
|
|
70
|
-
Default: `true`
|
|
71
|
-
|
|
72
|
-
Whether to push the current Node.js executable's directory ([`execPath`](#execpath) option) to the front of PATH.
|
|
73
|
-
|
|
74
|
-
#### preferLocal
|
|
75
|
-
|
|
76
|
-
Type: `boolean`\
|
|
77
|
-
Default: `true`
|
|
78
|
-
|
|
79
|
-
Whether to push the locally installed binaries' directory to the front of PATH.
|
|
80
|
-
|
|
81
|
-
#### path
|
|
82
|
-
|
|
83
|
-
Type: `string`\
|
|
84
|
-
Default: [`PATH`](https://github.com/sindresorhus/path-key)
|
|
85
|
-
|
|
86
|
-
The PATH to be appended.
|
|
87
|
-
|
|
88
|
-
Set it to an empty string to exclude the default PATH.
|
|
89
|
-
|
|
90
|
-
Only available with [`npmRunPath()`](#npmrunpathoptions), not [`npmRunPathEnv()`](#npmrunpathenvoptions).
|
|
91
|
-
|
|
92
|
-
#### env
|
|
93
|
-
|
|
94
|
-
Type: `object`\
|
|
95
|
-
Default: [`process.env`](https://nodejs.org/api/process.html#processenv)
|
|
96
|
-
|
|
97
|
-
Accepts an object of environment variables, like `process.env`, and modifies the PATH using the correct [PATH key](https://github.com/sindresorhus/path-key). Use this if you're modifying the PATH for use in the `child_process` options.
|
|
98
|
-
|
|
99
|
-
Only available with [`npmRunPathEnv()`](#npmrunpathenvoptions), not [`npmRunPath()`](#npmrunpathoptions).
|
|
100
|
-
|
|
101
|
-
## Related
|
|
102
|
-
|
|
103
|
-
- [npm-run-path-cli](https://github.com/sindresorhus/npm-run-path-cli) - CLI for this module
|
|
104
|
-
- [execa](https://github.com/sindresorhus/execa) - Execute a locally installed binary
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export interface Options {
|
|
2
|
-
/**
|
|
3
|
-
Use a custom environment variables object.
|
|
4
|
-
|
|
5
|
-
Default: [`process.env`](https://nodejs.org/api/process.html#process_process_env).
|
|
6
|
-
*/
|
|
7
|
-
readonly env?: Record<string, string | undefined>;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
Get the PATH key for a specific platform.
|
|
11
|
-
|
|
12
|
-
Default: [`process.platform`](https://nodejs.org/api/process.html#process_process_platform).
|
|
13
|
-
*/
|
|
14
|
-
readonly platform?: NodeJS.Platform;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
Get the [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) environment variable key cross-platform.
|
|
19
|
-
|
|
20
|
-
@example
|
|
21
|
-
```
|
|
22
|
-
import pathKey from 'path-key';
|
|
23
|
-
|
|
24
|
-
const key = pathKey();
|
|
25
|
-
//=> 'PATH'
|
|
26
|
-
|
|
27
|
-
const PATH = process.env[key];
|
|
28
|
-
//=> '/usr/local/bin:/usr/bin:/bin'
|
|
29
|
-
```
|
|
30
|
-
*/
|
|
31
|
-
export default function pathKey(options?: Options): string;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default function pathKey(options = {}) {
|
|
2
|
-
const {
|
|
3
|
-
env = process.env,
|
|
4
|
-
platform = process.platform
|
|
5
|
-
} = options;
|
|
6
|
-
|
|
7
|
-
if (platform !== 'win32') {
|
|
8
|
-
return 'PATH';
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
return Object.keys(env).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';
|
|
12
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "path-key",
|
|
3
|
-
"version": "4.0.0",
|
|
4
|
-
"description": "Get the PATH environment variable key cross-platform",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/path-key",
|
|
7
|
-
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
-
"author": {
|
|
9
|
-
"name": "Sindre Sorhus",
|
|
10
|
-
"email": "sindresorhus@gmail.com",
|
|
11
|
-
"url": "https://sindresorhus.com"
|
|
12
|
-
},
|
|
13
|
-
"type": "module",
|
|
14
|
-
"exports": "./index.js",
|
|
15
|
-
"engines": {
|
|
16
|
-
"node": ">=12"
|
|
17
|
-
},
|
|
18
|
-
"scripts": {
|
|
19
|
-
"test": "xo && ava && tsd"
|
|
20
|
-
},
|
|
21
|
-
"files": [
|
|
22
|
-
"index.js",
|
|
23
|
-
"index.d.ts"
|
|
24
|
-
],
|
|
25
|
-
"keywords": [
|
|
26
|
-
"path",
|
|
27
|
-
"key",
|
|
28
|
-
"environment",
|
|
29
|
-
"env",
|
|
30
|
-
"variable",
|
|
31
|
-
"get",
|
|
32
|
-
"cross-platform",
|
|
33
|
-
"windows"
|
|
34
|
-
],
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@types/node": "^14.14.37",
|
|
37
|
-
"ava": "^3.15.0",
|
|
38
|
-
"tsd": "^0.14.0",
|
|
39
|
-
"xo": "^0.38.2"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
# path-key
|
|
2
|
-
|
|
3
|
-
> Get the [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) environment variable key cross-platform
|
|
4
|
-
|
|
5
|
-
It's usually `PATH` but on Windows it can be any casing like `Path`...
|
|
6
|
-
|
|
7
|
-
## Install
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
$ npm install path-key
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
import pathKey from 'path-key';
|
|
17
|
-
|
|
18
|
-
const key = pathKey();
|
|
19
|
-
//=> 'PATH'
|
|
20
|
-
|
|
21
|
-
const PATH = process.env[key];
|
|
22
|
-
//=> '/usr/local/bin:/usr/bin:/bin'
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## API
|
|
26
|
-
|
|
27
|
-
### pathKey(options?)
|
|
28
|
-
|
|
29
|
-
#### options
|
|
30
|
-
|
|
31
|
-
Type: `object`
|
|
32
|
-
|
|
33
|
-
##### env
|
|
34
|
-
|
|
35
|
-
Type: `object`\
|
|
36
|
-
Default: [`process.env`](https://nodejs.org/api/process.html#process_process_env)
|
|
37
|
-
|
|
38
|
-
Use a custom environment variables object.
|
|
39
|
-
|
|
40
|
-
#### platform
|
|
41
|
-
|
|
42
|
-
Type: `string`\
|
|
43
|
-
Default: [`process.platform`](https://nodejs.org/api/process.html#process_process_platform)
|
|
44
|
-
|
|
45
|
-
Get the PATH key for a specific platform.
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
<div align="center">
|
|
50
|
-
<b>
|
|
51
|
-
<a href="https://tidelift.com/subscription/pkg/npm-path-key?utm_source=npm-path-key&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
|
|
52
|
-
</b>
|
|
53
|
-
<br>
|
|
54
|
-
<sub>
|
|
55
|
-
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
|
56
|
-
</sub>
|
|
57
|
-
</div>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Strip the final [newline character](https://en.wikipedia.org/wiki/Newline) from a string or Uint8Array.
|
|
3
|
-
|
|
4
|
-
@returns The input without any final newline.
|
|
5
|
-
|
|
6
|
-
@example
|
|
7
|
-
```
|
|
8
|
-
import stripFinalNewline from 'strip-final-newline';
|
|
9
|
-
|
|
10
|
-
stripFinalNewline('foo\nbar\n\n');
|
|
11
|
-
//=> 'foo\nbar\n'
|
|
12
|
-
|
|
13
|
-
const uint8Array = new TextEncoder().encode('foo\nbar\n\n')
|
|
14
|
-
new TextDecoder().decode(stripFinalNewline(uint8Array));
|
|
15
|
-
//=> 'foo\nbar\n'
|
|
16
|
-
```
|
|
17
|
-
*/
|
|
18
|
-
export default function stripFinalNewline<T extends string | Uint8Array>(input: T): T;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export default function stripFinalNewline(input) {
|
|
2
|
-
if (typeof input === 'string') {
|
|
3
|
-
return stripFinalNewlineString(input);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
if (!(ArrayBuffer.isView(input) && input.BYTES_PER_ELEMENT === 1)) {
|
|
7
|
-
throw new Error('Input must be a string or a Uint8Array');
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
return stripFinalNewlineBinary(input);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const stripFinalNewlineString = input =>
|
|
14
|
-
input.at(-1) === LF
|
|
15
|
-
? input.slice(0, input.at(-2) === CR ? -2 : -1)
|
|
16
|
-
: input;
|
|
17
|
-
|
|
18
|
-
const stripFinalNewlineBinary = input =>
|
|
19
|
-
input.at(-1) === LF_BINARY
|
|
20
|
-
? input.subarray(0, input.at(-2) === CR_BINARY ? -2 : -1)
|
|
21
|
-
: input;
|
|
22
|
-
|
|
23
|
-
const LF = '\n';
|
|
24
|
-
const LF_BINARY = LF.codePointAt(0);
|
|
25
|
-
const CR = '\r';
|
|
26
|
-
const CR_BINARY = CR.codePointAt(0);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "strip-final-newline",
|
|
3
|
-
"version": "4.0.0",
|
|
4
|
-
"description": "Strip the final newline character from a string or Uint8Array",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/strip-final-newline",
|
|
7
|
-
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
-
"author": {
|
|
9
|
-
"name": "Sindre Sorhus",
|
|
10
|
-
"email": "sindresorhus@gmail.com",
|
|
11
|
-
"url": "https://sindresorhus.com"
|
|
12
|
-
},
|
|
13
|
-
"type": "module",
|
|
14
|
-
"exports": {
|
|
15
|
-
"types": "./index.d.ts",
|
|
16
|
-
"default": "./index.js"
|
|
17
|
-
},
|
|
18
|
-
"sideEffects": false,
|
|
19
|
-
"engines": {
|
|
20
|
-
"node": ">=18"
|
|
21
|
-
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"test": "xo && ava && tsd"
|
|
24
|
-
},
|
|
25
|
-
"files": [
|
|
26
|
-
"index.js",
|
|
27
|
-
"index.d.ts"
|
|
28
|
-
],
|
|
29
|
-
"keywords": [
|
|
30
|
-
"strip",
|
|
31
|
-
"trim",
|
|
32
|
-
"remove",
|
|
33
|
-
"delete",
|
|
34
|
-
"final",
|
|
35
|
-
"last",
|
|
36
|
-
"end",
|
|
37
|
-
"file",
|
|
38
|
-
"newline",
|
|
39
|
-
"linebreak",
|
|
40
|
-
"character",
|
|
41
|
-
"string",
|
|
42
|
-
"uint8array"
|
|
43
|
-
],
|
|
44
|
-
"devDependencies": {
|
|
45
|
-
"ava": "^6.0.1",
|
|
46
|
-
"tsd": "^0.29.0",
|
|
47
|
-
"xo": "^0.56.0"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# strip-final-newline
|
|
2
|
-
|
|
3
|
-
> Strip the final [newline character](https://en.wikipedia.org/wiki/Newline) from a string or Uint8Array.
|
|
4
|
-
|
|
5
|
-
This can be useful when parsing the output of, for example, `ChildProcess#execFile()`, as [binaries usually output a newline at the end](https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline). You cannot use `stdout.trimEnd()` for this as it removes all trailing newlines and whitespaces at the end.
|
|
6
|
-
|
|
7
|
-
## Install
|
|
8
|
-
|
|
9
|
-
```sh
|
|
10
|
-
npm install strip-final-newline
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
import stripFinalNewline from 'strip-final-newline';
|
|
17
|
-
|
|
18
|
-
stripFinalNewline('foo\nbar\n\n');
|
|
19
|
-
//=> 'foo\nbar\n'
|
|
20
|
-
|
|
21
|
-
const uint8Array = new TextEncoder().encode('foo\nbar\n\n')
|
|
22
|
-
new TextDecoder().decode(stripFinalNewline(uint8Array));
|
|
23
|
-
//=> 'foo\nbar\n'
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Performance
|
|
27
|
-
|
|
28
|
-
When using an `Uint8Array`, the original value is referenced, not copied. This is much more efficient, requires almost no memory, and remains milliseconds fast even on very large inputs.
|
|
29
|
-
|
|
30
|
-
If you'd like to ensure that modifying the return value does not also modify the value passed as input, please use `.slice()`.
|
|
31
|
-
|
|
32
|
-
```js
|
|
33
|
-
const value = new TextDecoder().decode(stripFinalNewline(uint8Array).slice());
|
|
34
|
-
```
|
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
declare const figureSet: {
|
|
2
|
-
readonly tick: string;
|
|
3
|
-
readonly info: string;
|
|
4
|
-
readonly warning: string;
|
|
5
|
-
readonly cross: string;
|
|
6
|
-
readonly square: string;
|
|
7
|
-
readonly squareSmall: string;
|
|
8
|
-
readonly squareSmallFilled: string;
|
|
9
|
-
readonly squareDarkShade: string;
|
|
10
|
-
readonly squareMediumShade: string;
|
|
11
|
-
readonly squareLightShade: string;
|
|
12
|
-
readonly squareTop: string;
|
|
13
|
-
readonly squareBottom: string;
|
|
14
|
-
readonly squareLeft: string;
|
|
15
|
-
readonly squareRight: string;
|
|
16
|
-
readonly squareCenter: string;
|
|
17
|
-
readonly circle: string;
|
|
18
|
-
readonly circleFilled: string;
|
|
19
|
-
readonly circleDotted: string;
|
|
20
|
-
readonly circleDouble: string;
|
|
21
|
-
readonly circleCircle: string;
|
|
22
|
-
readonly circleCross: string;
|
|
23
|
-
readonly circlePipe: string;
|
|
24
|
-
readonly circleQuestionMark: string;
|
|
25
|
-
readonly radioOn: string;
|
|
26
|
-
readonly radioOff: string;
|
|
27
|
-
readonly checkboxOn: string;
|
|
28
|
-
readonly checkboxOff: string;
|
|
29
|
-
readonly checkboxCircleOn: string;
|
|
30
|
-
readonly checkboxCircleOff: string;
|
|
31
|
-
readonly questionMarkPrefix: string;
|
|
32
|
-
readonly bullet: string;
|
|
33
|
-
readonly dot: string;
|
|
34
|
-
readonly ellipsis: string;
|
|
35
|
-
readonly pointer: string;
|
|
36
|
-
readonly pointerSmall: string;
|
|
37
|
-
readonly triangleUp: string;
|
|
38
|
-
readonly triangleUpSmall: string;
|
|
39
|
-
readonly triangleUpOutline: string;
|
|
40
|
-
readonly triangleDown: string;
|
|
41
|
-
readonly triangleDownSmall: string;
|
|
42
|
-
readonly triangleLeft: string;
|
|
43
|
-
readonly triangleLeftSmall: string;
|
|
44
|
-
readonly triangleRight: string;
|
|
45
|
-
readonly triangleRightSmall: string;
|
|
46
|
-
readonly lozenge: string;
|
|
47
|
-
readonly lozengeOutline: string;
|
|
48
|
-
readonly home: string;
|
|
49
|
-
readonly hamburger: string;
|
|
50
|
-
readonly smiley: string;
|
|
51
|
-
readonly mustache: string;
|
|
52
|
-
readonly heart: string;
|
|
53
|
-
readonly star: string;
|
|
54
|
-
readonly play: string;
|
|
55
|
-
readonly musicNote: string;
|
|
56
|
-
readonly musicNoteBeamed: string;
|
|
57
|
-
readonly nodejs: string;
|
|
58
|
-
readonly arrowUp: string;
|
|
59
|
-
readonly arrowDown: string;
|
|
60
|
-
readonly arrowLeft: string;
|
|
61
|
-
readonly arrowRight: string;
|
|
62
|
-
readonly arrowLeftRight: string;
|
|
63
|
-
readonly arrowUpDown: string;
|
|
64
|
-
readonly almostEqual: string;
|
|
65
|
-
readonly notEqual: string;
|
|
66
|
-
readonly lessOrEqual: string;
|
|
67
|
-
readonly greaterOrEqual: string;
|
|
68
|
-
readonly identical: string;
|
|
69
|
-
readonly infinity: string;
|
|
70
|
-
readonly subscriptZero: string;
|
|
71
|
-
readonly subscriptOne: string;
|
|
72
|
-
readonly subscriptTwo: string;
|
|
73
|
-
readonly subscriptThree: string;
|
|
74
|
-
readonly subscriptFour: string;
|
|
75
|
-
readonly subscriptFive: string;
|
|
76
|
-
readonly subscriptSix: string;
|
|
77
|
-
readonly subscriptSeven: string;
|
|
78
|
-
readonly subscriptEight: string;
|
|
79
|
-
readonly subscriptNine: string;
|
|
80
|
-
readonly oneHalf: string;
|
|
81
|
-
readonly oneThird: string;
|
|
82
|
-
readonly oneQuarter: string;
|
|
83
|
-
readonly oneFifth: string;
|
|
84
|
-
readonly oneSixth: string;
|
|
85
|
-
readonly oneSeventh: string;
|
|
86
|
-
readonly oneEighth: string;
|
|
87
|
-
readonly oneNinth: string;
|
|
88
|
-
readonly oneTenth: string;
|
|
89
|
-
readonly twoThirds: string;
|
|
90
|
-
readonly twoFifths: string;
|
|
91
|
-
readonly threeQuarters: string;
|
|
92
|
-
readonly threeFifths: string;
|
|
93
|
-
readonly threeEighths: string;
|
|
94
|
-
readonly fourFifths: string;
|
|
95
|
-
readonly fiveSixths: string;
|
|
96
|
-
readonly fiveEighths: string;
|
|
97
|
-
readonly sevenEighth: string;
|
|
98
|
-
readonly line: string;
|
|
99
|
-
readonly lineBold: string;
|
|
100
|
-
readonly lineDouble: string;
|
|
101
|
-
readonly lineDashed0: string;
|
|
102
|
-
readonly lineDashed1: string;
|
|
103
|
-
readonly lineDashed2: string;
|
|
104
|
-
readonly lineDashed3: string;
|
|
105
|
-
readonly lineDashed4: string;
|
|
106
|
-
readonly lineDashed5: string;
|
|
107
|
-
readonly lineDashed6: string;
|
|
108
|
-
readonly lineDashed7: string;
|
|
109
|
-
readonly lineDashed8: string;
|
|
110
|
-
readonly lineDashed9: string;
|
|
111
|
-
readonly lineDashed10: string;
|
|
112
|
-
readonly lineDashed11: string;
|
|
113
|
-
readonly lineDashed12: string;
|
|
114
|
-
readonly lineDashed13: string;
|
|
115
|
-
readonly lineDashed14: string;
|
|
116
|
-
readonly lineDashed15: string;
|
|
117
|
-
readonly lineVertical: string;
|
|
118
|
-
readonly lineVerticalBold: string;
|
|
119
|
-
readonly lineVerticalDouble: string;
|
|
120
|
-
readonly lineVerticalDashed0: string;
|
|
121
|
-
readonly lineVerticalDashed1: string;
|
|
122
|
-
readonly lineVerticalDashed2: string;
|
|
123
|
-
readonly lineVerticalDashed3: string;
|
|
124
|
-
readonly lineVerticalDashed4: string;
|
|
125
|
-
readonly lineVerticalDashed5: string;
|
|
126
|
-
readonly lineVerticalDashed6: string;
|
|
127
|
-
readonly lineVerticalDashed7: string;
|
|
128
|
-
readonly lineVerticalDashed8: string;
|
|
129
|
-
readonly lineVerticalDashed9: string;
|
|
130
|
-
readonly lineVerticalDashed10: string;
|
|
131
|
-
readonly lineVerticalDashed11: string;
|
|
132
|
-
readonly lineDownLeft: string;
|
|
133
|
-
readonly lineDownLeftArc: string;
|
|
134
|
-
readonly lineDownBoldLeftBold: string;
|
|
135
|
-
readonly lineDownBoldLeft: string;
|
|
136
|
-
readonly lineDownLeftBold: string;
|
|
137
|
-
readonly lineDownDoubleLeftDouble: string;
|
|
138
|
-
readonly lineDownDoubleLeft: string;
|
|
139
|
-
readonly lineDownLeftDouble: string;
|
|
140
|
-
readonly lineDownRight: string;
|
|
141
|
-
readonly lineDownRightArc: string;
|
|
142
|
-
readonly lineDownBoldRightBold: string;
|
|
143
|
-
readonly lineDownBoldRight: string;
|
|
144
|
-
readonly lineDownRightBold: string;
|
|
145
|
-
readonly lineDownDoubleRightDouble: string;
|
|
146
|
-
readonly lineDownDoubleRight: string;
|
|
147
|
-
readonly lineDownRightDouble: string;
|
|
148
|
-
readonly lineUpLeft: string;
|
|
149
|
-
readonly lineUpLeftArc: string;
|
|
150
|
-
readonly lineUpBoldLeftBold: string;
|
|
151
|
-
readonly lineUpBoldLeft: string;
|
|
152
|
-
readonly lineUpLeftBold: string;
|
|
153
|
-
readonly lineUpDoubleLeftDouble: string;
|
|
154
|
-
readonly lineUpDoubleLeft: string;
|
|
155
|
-
readonly lineUpLeftDouble: string;
|
|
156
|
-
readonly lineUpRight: string;
|
|
157
|
-
readonly lineUpRightArc: string;
|
|
158
|
-
readonly lineUpBoldRightBold: string;
|
|
159
|
-
readonly lineUpBoldRight: string;
|
|
160
|
-
readonly lineUpRightBold: string;
|
|
161
|
-
readonly lineUpDoubleRightDouble: string;
|
|
162
|
-
readonly lineUpDoubleRight: string;
|
|
163
|
-
readonly lineUpRightDouble: string;
|
|
164
|
-
readonly lineUpDownLeft: string;
|
|
165
|
-
readonly lineUpBoldDownBoldLeftBold: string;
|
|
166
|
-
readonly lineUpBoldDownBoldLeft: string;
|
|
167
|
-
readonly lineUpDownLeftBold: string;
|
|
168
|
-
readonly lineUpBoldDownLeftBold: string;
|
|
169
|
-
readonly lineUpDownBoldLeftBold: string;
|
|
170
|
-
readonly lineUpDownBoldLeft: string;
|
|
171
|
-
readonly lineUpBoldDownLeft: string;
|
|
172
|
-
readonly lineUpDoubleDownDoubleLeftDouble: string;
|
|
173
|
-
readonly lineUpDoubleDownDoubleLeft: string;
|
|
174
|
-
readonly lineUpDownLeftDouble: string;
|
|
175
|
-
readonly lineUpDownRight: string;
|
|
176
|
-
readonly lineUpBoldDownBoldRightBold: string;
|
|
177
|
-
readonly lineUpBoldDownBoldRight: string;
|
|
178
|
-
readonly lineUpDownRightBold: string;
|
|
179
|
-
readonly lineUpBoldDownRightBold: string;
|
|
180
|
-
readonly lineUpDownBoldRightBold: string;
|
|
181
|
-
readonly lineUpDownBoldRight: string;
|
|
182
|
-
readonly lineUpBoldDownRight: string;
|
|
183
|
-
readonly lineUpDoubleDownDoubleRightDouble: string;
|
|
184
|
-
readonly lineUpDoubleDownDoubleRight: string;
|
|
185
|
-
readonly lineUpDownRightDouble: string;
|
|
186
|
-
readonly lineDownLeftRight: string;
|
|
187
|
-
readonly lineDownBoldLeftBoldRightBold: string;
|
|
188
|
-
readonly lineDownLeftBoldRightBold: string;
|
|
189
|
-
readonly lineDownBoldLeftRight: string;
|
|
190
|
-
readonly lineDownBoldLeftBoldRight: string;
|
|
191
|
-
readonly lineDownBoldLeftRightBold: string;
|
|
192
|
-
readonly lineDownLeftRightBold: string;
|
|
193
|
-
readonly lineDownLeftBoldRight: string;
|
|
194
|
-
readonly lineDownDoubleLeftDoubleRightDouble: string;
|
|
195
|
-
readonly lineDownDoubleLeftRight: string;
|
|
196
|
-
readonly lineDownLeftDoubleRightDouble: string;
|
|
197
|
-
readonly lineUpLeftRight: string;
|
|
198
|
-
readonly lineUpBoldLeftBoldRightBold: string;
|
|
199
|
-
readonly lineUpLeftBoldRightBold: string;
|
|
200
|
-
readonly lineUpBoldLeftRight: string;
|
|
201
|
-
readonly lineUpBoldLeftBoldRight: string;
|
|
202
|
-
readonly lineUpBoldLeftRightBold: string;
|
|
203
|
-
readonly lineUpLeftRightBold: string;
|
|
204
|
-
readonly lineUpLeftBoldRight: string;
|
|
205
|
-
readonly lineUpDoubleLeftDoubleRightDouble: string;
|
|
206
|
-
readonly lineUpDoubleLeftRight: string;
|
|
207
|
-
readonly lineUpLeftDoubleRightDouble: string;
|
|
208
|
-
readonly lineUpDownLeftRight: string;
|
|
209
|
-
readonly lineUpBoldDownBoldLeftBoldRightBold: string;
|
|
210
|
-
readonly lineUpDownBoldLeftBoldRightBold: string;
|
|
211
|
-
readonly lineUpBoldDownLeftBoldRightBold: string;
|
|
212
|
-
readonly lineUpBoldDownBoldLeftRightBold: string;
|
|
213
|
-
readonly lineUpBoldDownBoldLeftBoldRight: string;
|
|
214
|
-
readonly lineUpBoldDownLeftRight: string;
|
|
215
|
-
readonly lineUpDownBoldLeftRight: string;
|
|
216
|
-
readonly lineUpDownLeftBoldRight: string;
|
|
217
|
-
readonly lineUpDownLeftRightBold: string;
|
|
218
|
-
readonly lineUpBoldDownBoldLeftRight: string;
|
|
219
|
-
readonly lineUpDownLeftBoldRightBold: string;
|
|
220
|
-
readonly lineUpBoldDownLeftBoldRight: string;
|
|
221
|
-
readonly lineUpBoldDownLeftRightBold: string;
|
|
222
|
-
readonly lineUpDownBoldLeftBoldRight: string;
|
|
223
|
-
readonly lineUpDownBoldLeftRightBold: string;
|
|
224
|
-
readonly lineUpDoubleDownDoubleLeftDoubleRightDouble: string;
|
|
225
|
-
readonly lineUpDoubleDownDoubleLeftRight: string;
|
|
226
|
-
readonly lineUpDownLeftDoubleRightDouble: string;
|
|
227
|
-
readonly lineCross: string;
|
|
228
|
-
readonly lineBackslash: string;
|
|
229
|
-
readonly lineSlash: string;
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
type FigureSet = typeof figureSet;
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
Symbols to use when the terminal supports Unicode symbols.
|
|
236
|
-
*/
|
|
237
|
-
export const mainSymbols: FigureSet;
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
Symbols to use when the terminal does not support Unicode symbols.
|
|
241
|
-
*/
|
|
242
|
-
export const fallbackSymbols: FigureSet;
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
Symbols to use on any terminal.
|
|
246
|
-
*/
|
|
247
|
-
export default figureSet;
|
|
248
|
-
|
|
249
|
-
export type Options = {
|
|
250
|
-
/**
|
|
251
|
-
Whether to replace symbols with fallbacks.
|
|
252
|
-
|
|
253
|
-
This can be set to `true` to always use fallback symbols, whether the terminal has poor Unicode support or not.
|
|
254
|
-
|
|
255
|
-
@default `true` if the terminal has poor Unicode support
|
|
256
|
-
*/
|
|
257
|
-
readonly useFallback?: boolean;
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
Returns the input with replaced fallback symbols if the terminal has poor Unicode support.
|
|
262
|
-
|
|
263
|
-
@param string - String where the Unicode symbols will be replaced with fallback symbols depending on the terminal.
|
|
264
|
-
@returns The input with replaced fallback Unicode symbols.
|
|
265
|
-
|
|
266
|
-
@example
|
|
267
|
-
```
|
|
268
|
-
import figures, {replaceSymbols} from 'figures';
|
|
269
|
-
|
|
270
|
-
console.log(replaceSymbols('✔ check'));
|
|
271
|
-
// On terminals with Unicode symbols: ✔ check
|
|
272
|
-
// On other terminals: √ check
|
|
273
|
-
|
|
274
|
-
console.log(replaceSymbols('✔ check', {useFallback: true}));
|
|
275
|
-
// On terminals with Unicode symbols: √ check
|
|
276
|
-
// On other terminals: √ check
|
|
277
|
-
```
|
|
278
|
-
*/
|
|
279
|
-
export function replaceSymbols(string: string, options?: Options): string;
|