The Rest of the Cast
As of this writing, the other modules Node provides, which we won’t be looking at in
detail but which I wanted to at least make you aware of, are as follows:
•
Assertion Testing – The Assert module provides a simple set of
assertion tests that can be used to test invariants.
•
Async Hooks – The async_hooks module provides an API to register
callbacks tracking the lifetime of asynchronous resources created
inside a Node application.
•
Buffer – This is, in fact, a class, not a module, and as such, it's in
global scope. Either way, it's a class created before JavaScript offered
the TypedArray that provides the ability to work with streams of
binary data.
•
C++ Addons – Node addons are dynamically linked shared objects,
written in C++, that can be loaded into Node using the require()
function and used just as if they were an ordinary Node module. They
are mainly used to provide an interface between JavaScript running
in Node and C/C++ libraries. This module allows you to work with
them. The N-API module goes along with this and enables you to
build them.
•
Do'stlaringiz bilan baham: |