• err {number}
    • Returns: {string}

    Returns the string name for a numeric error code that comes from a Node.js API. The mapping between error codes and error names is platform-dependent. See [Common System Errors][] for the names of common errors.

    1. fs.access('file/that/does/not/exist', (err) => {
    2. const name = util.getSystemErrorName(err.errno);
    3. console.error(name); // ENOENT
    4. });