You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
318 B
11 lines
318 B
'use strict';
|
|
const {builtinModules} = require('module');
|
|
|
|
const ignoreList = [
|
|
'sys'
|
|
];
|
|
|
|
// eslint-disable-next-line node/no-deprecated-api
|
|
module.exports = (builtinModules || Object.keys(process.binding('natives')))
|
|
.filter(x => !/^_|^(internal|v8|node-inspect)\/|\//.test(x) && !ignoreList.includes(x))
|
|
.sort();
|