/usr/lib/nodejs/is-binary-path/index.js is in node-is-binary-path 2.0.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 | 'use strict';
const path = require('path');
const binaryExtensions = require('binary-extensions');
const exts = new Set(binaryExtensions);
module.exports = filepath => exts.has(path.extname(filepath).slice(1).toLowerCase());
|