the-forest/client/node_modules/builtin-modules/index.js

12 lines
349 B
JavaScript
Raw Normal View History

2024-09-17 20:35:18 -04:00
'use strict';
const {builtinModules} = require('module');
const ignoreList = [
'sys'
];
// eslint-disable-next-line node/no-deprecated-api
module.exports = (builtinModules || (process.binding ? Object.keys(process.binding('natives')) : []) || [])
.filter(x => !/^_|^(internal|v8|node-inspect)\/|\//.test(x) && !ignoreList.includes(x))
.sort();