30 lines
523 B
Plaintext
30 lines
523 B
Plaintext
|
|
{{alias}}( str )
|
|
Tests whether a string matches a Node.js built-in module name.
|
|
|
|
Parameters
|
|
----------
|
|
str: string
|
|
Input string.
|
|
|
|
Returns
|
|
-------
|
|
bool: boolean
|
|
Boolean indicating whether a string matches a Node.js built-in module
|
|
name.
|
|
|
|
Examples
|
|
--------
|
|
> var bool = {{alias}}( 'cluster' )
|
|
true
|
|
> bool = {{alias}}( 'crypto' )
|
|
true
|
|
> bool = {{alias}}( 'fs-extra' )
|
|
false
|
|
> bool = {{alias}}( '' )
|
|
false
|
|
|
|
See Also
|
|
--------
|
|
|