Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import builtins from 'builtins';
const docs = builtins.reduce((result, builtin) => {
let filename = builtin;
if (filename === 'module') {
filename = 'modules';
}
result[builtin] = `https://nodejs.org/api/${filename}.html`;
return result;
}, {});
docs.constants = 'https://github.com/nodejs/node/blob/master/lib/constants.js';
export default docs;