index.js 318 B

1234567891011
  1. 'use strict';
  2. const {builtinModules} = require('module');
  3. const ignoreList = [
  4. 'sys'
  5. ];
  6. // eslint-disable-next-line node/no-deprecated-api
  7. module.exports = (builtinModules || Object.keys(process.binding('natives')))
  8. .filter(x => !/^_|^(internal|v8|node-inspect)\/|\//.test(x) && !ignoreList.includes(x))
  9. .sort();