/
var
/
www
/
greso.tech
/
server
/
nsm
/
node_modules
/
@types
/
node
/
ts4.8
/
/var/www/greso.tech/server/nsm/node_modules/@types/node/ts4.8
mkdir
upload
Name
Size
Mode
Actions
assert/
-
0755
rm
dns/
-
0755
rm
fs/
-
0755
rm
readline/
-
0755
rm
stream/
-
0755
rm
timers/
-
0755
rm
assert.d.ts
41218
0755
edit
dl
rm
async_hooks.d.ts
22585
0755
edit
dl
rm
buffer.d.ts
107224
0755
edit
dl
rm
child_process.d.ts
67998
0755
edit
dl
rm
cluster.d.ts
20640
0755
edit
dl
rm
console.d.ts
18342
0755
edit
dl
rm
constants.d.ts
613
0755
edit
dl
rm
crypto.d.ts
183913
0755
edit
dl
rm
dgram.d.ts
26787
0755
edit
dl
rm
diagnostics_channel.d.ts
7685
0755
edit
dl
rm
dns.d.ts
30126
0755
edit
dl
rm
dom-events.d.ts
5521
0755
edit
dl
rm
domain.d.ts
7820
0755
edit
dl
rm
events.d.ts
34401
0755
edit
dl
rm
fs.d.ts
182973
0755
edit
dl
rm
globals.d.ts
9714
0755
edit
dl
rm
globals.global.d.ts
39
0755
edit
dl
rm
http.d.ts
79056
0755
edit
dl
rm
http2.d.ts
113815
0755
edit
dl
rm
https.d.ts
23594
0755
edit
dl
rm
index.d.ts
3751
0755
edit
dl
rm
inspector.d.ts
125369
0755
edit
dl
rm
module.d.ts
4259
0755
edit
dl
rm
net.d.ts
40921
0755
edit
dl
rm
os.d.ts
18033
0755
edit
dl
rm
path.d.ts
7751
0755
edit
dl
rm
perf_hooks.d.ts
24303
0755
edit
dl
rm
process.d.ts
73684
0755
edit
dl
rm
punycode.d.ts
5482
0755
edit
dl
rm
querystring.d.ts
6545
0755
edit
dl
rm
readline.d.ts
22862
0755
edit
dl
rm
repl.d.ts
19489
0755
edit
dl
rm
stream.d.ts
72452
0755
edit
dl
rm
string_decoder.d.ts
2838
0755
edit
dl
rm
test.d.ts
43820
0755
edit
dl
rm
timers.d.ts
11675
0755
edit
dl
rm
tls.d.ts
54923
0755
edit
dl
rm
trace_events.d.ts
7928
0755
edit
dl
rm
tty.d.ts
10053
0755
edit
dl
rm
url.d.ts
39490
0755
edit
dl
rm
util.d.ts
82262
0755
edit
dl
rm
v8.d.ts
26127
0755
edit
dl
rm
vm.d.ts
38873
0755
edit
dl
rm
wasi.d.ts
6874
0755
edit
dl
rm
worker_threads.d.ts
33894
0755
edit
dl
rm
zlib.d.ts
19561
0755
edit
dl
rm
Edit:
/var/www/greso.tech/server/nsm/node_modules/@types/node/ts4.8/string_decoder.d.ts
(2838B)
/** * The `node:string_decoder` module provides an API for decoding `Buffer` objects * into strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16 * characters. It can be accessed using: * * ```js * const { StringDecoder } = require('node:string_decoder'); * ``` * * The following example shows the basic use of the `StringDecoder` class. * * ```js * const { StringDecoder } = require('node:string_decoder'); * const decoder = new StringDecoder('utf8'); * * const cent = Buffer.from([0xC2, 0xA2]); * console.log(decoder.write(cent)); * * const euro = Buffer.from([0xE2, 0x82, 0xAC]); * console.log(decoder.write(euro)); * ``` * * When a `Buffer` instance is written to the `StringDecoder` instance, an * internal buffer is used to ensure that the decoded string does not contain * any incomplete multibyte characters. These are held in the buffer until the * next call to `stringDecoder.write()` or until `stringDecoder.end()` is called. * * In the following example, the three UTF-8 encoded bytes of the European Euro * symbol (`€`) are written over three separate operations: * * ```js * const { StringDecoder } = require('node:string_decoder'); * const decoder = new StringDecoder('utf8'); * * decoder.write(Buffer.from([0xE2])); * decoder.write(Buffer.from([0x82])); * console.log(decoder.end(Buffer.from([0xAC]))); * ``` * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/string_decoder.js) */ declare module 'string_decoder' { class StringDecoder { constructor(encoding?: BufferEncoding); /** * Returns a decoded string, ensuring that any incomplete multibyte characters at * the end of the `Buffer`, or `TypedArray`, or `DataView` are omitted from the * returned string and stored in an internal buffer for the next call to`stringDecoder.write()` or `stringDecoder.end()`. * @since v0.1.99 * @param buffer A `Buffer`, or `TypedArray`, or `DataView` containing the bytes to decode. */ write(buffer: Buffer): string; /** * Returns any remaining input stored in the internal buffer as a string. Bytes * representing incomplete UTF-8 and UTF-16 characters will be replaced with * substitution characters appropriate for the character encoding. * * If the `buffer` argument is provided, one final call to `stringDecoder.write()`is performed before returning the remaining input. * After `end()` is called, the `stringDecoder` object can be reused for new input. * @since v0.9.3 * @param buffer A `Buffer`, or `TypedArray`, or `DataView` containing the bytes to decode. */ end(buffer?: Buffer): string; } } declare module 'node:string_decoder' { export * from 'string_decoder'; }
Save
cmd:
run