GoScrobble/web/node_modules/builtin-modules/index.js

12 lines
318 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
'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();