mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
12 lines
318 B
JavaScript
12 lines
318 B
JavaScript
|
'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();
|