
Threat Research
/Security News
Searchjacked: Hidden Browser Extensions Hijack Searches for 13 Million Users
319 browser extensions installed by 13.4 million users hijack searches, capture queries, and collect referral payments from Yahoo and Bing.
file-extension
Advanced tools
Get the extension of a given filename or path
Differences to path.extname:
.eslintrc => eslintrc)Makefile => makefile).package.json => json).LICENCE => licence).Works in Node.js and the browser. Currently the module size is 260 B bytes gzipped.
$ npm install --save file-extension
<script src="file-extension.js"></script>
<!-- Available as global `fileExtension` -->
var fileExtension = require('file-extension'); // Skip this in the browser
// Case insensitive
fileExtension('file.zip'); //=> 'zip'
fileExtension('.Dockerfile'); //=> 'dockerfile'
fileExtension('file'); //=> 'file'
fileExtension('.file.tar'); //=> 'tar'
// Or with case preserved
fileExtension('.Vagrantfile', {preserveCase: true}); //=> 'Vagrantfile'
fileExtension('INDEX.HTML', {preserveCase: true}); //=> 'HTML'
filename {String} The file name. Required.options {Object} Options object.preserveCase {Boolean} Whether case should be preserved. Default: false.© silverwind, distributed under BSD licence
FAQs
Get the extension of a given filename or path
The npm package file-extension receives a total of 0 weekly downloads. As such, file-extension popularity was classified as not popular.
We found that file-extension demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Threat Research
/Security News
319 browser extensions installed by 13.4 million users hijack searches, capture queries, and collect referral payments from Yahoo and Bing.

Threat Research
Malicious Firefox extensions mimic Phantom, Jupiter, and Bitget wallets to steal recovery phrases and private keys, with one fetching its payload remotely.

Product
Socket Threat Intel now shows which malware campaigns were blocked or detected in your organization, with links to scans and Firewall events.