
Research
5 Malicious Chrome Extensions Enable Session Hijacking in Enterprise HR and ERP Systems
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.
pear-user-dirs
Advanced tools
Get the path of user-specific directories on all major platforms
npm install pear-user-dirs
Use pear-user-dirs to get the Downloads directory:
const pearUserDirs = require('pear-user-dirs')
pearUserDirs().then(dirs => {
console.log('Downloads folder path:', dirs.downloads)
})
pearUserDirs({ asFileLinks: true }).then(dirs => {
console.log('Downloads folder path as URL:', dirs.downloads)
})
const pearUserDirs = require('pear-user-dirs')
const dirs = pearUserDirs({ sync: true })
console.log('Downloads folder path:', dirs.downloads)
const dirsURL = pearUserDirs({ sync: true, asFileLinks: true })
console.log('Downloads folder path as URL:', dirsURL.downloads)
pearUserDirs(opts)opts:
sync (boolean): If true, directly returns an object with the paths of the user directories, otherwise returns a Promise. Default is false.asFileLinks (boolean): If true, returns the path as a file URL. Default is false.Apache-2.0
FAQs
Get the path of user-specific directories
The npm package pear-user-dirs receives a total of 336 weekly downloads. As such, pear-user-dirs popularity was classified as not popular.
We found that pear-user-dirs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.