
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@fnet/chrome-profiles
Advanced tools
The @fnet/chrome-profiles tool is designed to help users easily retrieve the names of user profiles from their Google Chrome browser. This can be particularly useful for developers or anyone who needs to manage or access different user profiles on a Chrome installation.
This tool reads the 'Local State' file within the Google Chrome user data directory. It extracts and returns an array of profile names associated with the Chrome browser. By default, it automatically determines the correct file path based on the operating system being used, ensuring a seamless experience.
The @fnet/chrome-profiles tool is a straightforward utility for extracting user profile names from the Chrome browser, tailored for those who need quick access to this information without delving into Chrome's user data manually.
@fnet/chrome-profiles LibraryThe @fnet/chrome-profiles library provides a straightforward way to extract information about user profiles from the Chrome browser. Primarily, it reads the 'Local State' file of the Chrome browser to gather and return a list of user profile names along with their corresponding directory paths. This can be particularly useful for applications needing to interface directly with user-specific Chrome settings or data.
To install the @fnet/chrome-profiles library, you can use either npm or yarn:
Using npm:
npm install @fnet/chrome-profiles
Using yarn:
yarn add @fnet/chrome-profiles
This library is designed to be simple and minimalistic. Here's how you can use it to retrieve Chrome user profiles:
import getChromeProfiles from '@fnet/chrome-profiles';
(async () => {
try {
const profiles = await getChromeProfiles({
// Optional: You can specify a custom path to Chrome's user data directory.
// chromeDataPath: '/path/to/custom/chrome/user/data'
});
console.log('Chrome User Profiles:', profiles);
} catch (error) {
console.error('Error fetching profiles:', error);
}
})();
%LOCALAPPDATA%\Google\Chrome\User Data~/Library/Application Support/Google/Chrome~/.config/google-chromeHere’s how you might use this library for a typical use case where you want to display all Chrome user profiles:
import getChromeProfiles from '@fnet/chrome-profiles';
(async () => {
try {
const profiles = await getChromeProfiles();
profiles.forEach(profile => {
console.log(`Profile Name: ${profile.name}, Directory: ${profile.dir}`);
});
} catch (error) {
console.error('Error fetching profiles:', error);
}
})();
In this example, the code fetches the profiles and logs each profile’s name and directory to the console.
This library internally utilizes Node.js built-in modules such as fs for file system operations and path for handling file paths. Acknowledging the efforts of contributors and maintainers of Node.js, which provides these essential modules that enable this library to function effectively.
$schema: https://json-schema.org/draft/2020-12/schema
type: object
properties:
chromeDataPath:
type: string
description: Optional. The path to Chrome's user data directory. If not
provided, defaults to the standard path based on the current operating
system.
mode:
type: string
description: "Optional. Operation mode: 'default' to list profiles, or 'open' to
launch a profile."
profile:
type: string
description: Optional. The profile name to launch in 'open' mode.
required: []
FAQs
## Introduction
The npm package @fnet/chrome-profiles receives a total of 1 weekly downloads. As such, @fnet/chrome-profiles popularity was classified as not popular.
We found that @fnet/chrome-profiles 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.

Security News
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.