
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
The ospath npm package provides a simple and consistent way to work with operating system-specific path operations. It abstracts away the differences between Windows and POSIX (Unix-like) systems, allowing developers to write code that works seamlessly across different environments. This package is particularly useful for file path manipulation, construction, and normalization.
Home Directory
Retrieves the current user's home directory in a cross-platform way.
const ospath = require('ospath');
console.log(ospath.home());
Temporary Directory
Provides the path to the system's temporary directory, which is useful for storing temporary files.
const ospath = require('ospath');
console.log(ospath.tmp());
Data Directory
Gets the path to the system's data directory where applications can store application-specific data.
const ospath = require('ospath');
console.log(ospath.data());
The 'path' module is a core Node.js module that provides utilities for working with file and directory paths. It is similar to ospath in that it helps with path manipulation, but it does not automatically handle OS-specific differences.
A JavaScript component that provides operating specific path values.
npm i --save ospath
Returns the directory where an application should store its data directory.
%APPDATA%
~/Library/Application Support
$XDG_CONFIG_HOME
or ~/.config
Returns the users desktop directory. On every OS, this is just the home()
dir and Desktop
.
Returns the user's home directory.
%USERPROFILE%
$HOME
Returns a temporary directory. Could also use require('os').tmpdir()
.
%TEMP%
/tmp
MIT
FAQs
Operating system specific paths.
The npm package ospath receives a total of 0 weekly downloads. As such, ospath popularity was classified as not popular.
We found that ospath 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.
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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.