Socket
Book a DemoInstallSign in
Socket

multi-profile-store

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multi-profile-store

Manage multiple corestores easily in a multi profile setup

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
745
18.82%
Maintainers
1
Weekly downloads
 
Created
Source

multi-profile-store

Manage multiple corestores easily in a multi profile setup

npm install multi-profile-store

Note that all io is sync for simplicity.

Usage

const MultiProfileStore = require('multi-profile-store')

// open one
const p = MultiProfileStore.open('./profiles')

// if you might have made a single corestore first and want to move to this setup, use migrate
const p = MultiProfileStore.migrate('./profiles')

// active profile, ie { id, name, storage } or null
p.active()

// list all profiles
p.list()

// gc removed profiles, optionally pass a delay to gc only profiles removed after that delay (relative)
p.gc({ delay: 0 })

// remove a profile, moves it to gc list, not removed until gc is run above
p.remove({ id })

// update to be active or not
p.update({ id, active: true })

// create a new profile, optionally pass a name, returns { id, name, storage }
p.create({ name: 'test' })

License

Apache-2.0

FAQs

Package last updated on 30 Nov 2025

Did you know?

Socket

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.

Install

Related posts