const logger = createLogger({ // change level if in dev environment versus production level: env === 'production' ? 'info' : 'debug', format: format.combine( format.label({ label: path.basename(process.mainModul
Added Napi::TypedThreadSafeFunction class that is a new implementation for thread-safe functions. Fixed leak on Napi::AsyncProgressWorkerBase. Fixed empty data on Napi::AsyncProgressWorker::OnProgress caused by race conditions of Napi::AsyncProgressWorker. Added Napi::ArrayBuffer::Detach() and ...
Now that we have support for private class fields... we need to figure out how (and if) we want to support them with regards to util.inspect()... Right now, those properties are hidden from the output even when showHidden is true... clas...
Node.js itself exports a number of C/C++ APIs that Addons can use — the most important of which is the node::ObjectWrap class. Node.js includes a number of other statically linked libraries including OpenSSL. These other libraries are located in the deps/ directory in the Node.js source...
Class: BlobA Blob encapsulates immutable, raw data that can be safely shared across multiple worker threads.new buffer.Blob([sources[, options]])sources {string[]|ArrayBuffer[]|TypedArray[]|DataView[]|Blob[]} An array of string, {ArrayBuffer}, {TypedArray}, {DataView}, or {Blob} objects...
When using non-type template parameters in templated class member function a syntax error is emmited https://godbolt.org/z/xsz5oM87T The error can be fixed when using brackets like this: Foo<F1{}, S1{}> foo(){} or when function foo() is a free function Go to details and discussio...
Class Method: Buffer.from(buffer) Class Method: Buffer.from(string[, encoding]) Class Method: Buffer.isBuffer(obj) Class Method: Buffer.isEncoding(encoding) Class Property: Buffer.poolSize buf[index] buf.compare(target[, targetStart[, targetEnd[, sourceStart[, sourceEnd]]]) buf.copy(target...
Maybe it's a bug, maybe it's by design. Documentation doesn't mention anything about whether or not the "exit" event should fire, but it's a bit silly I have to write: process.on('SIGINT', function () { process.exit(somecode); // now the...