create-multi-chrome
v1.0.5
Published
> Implement multi-instance opening of Google Chrome in windows (independent environment, independent cookies)
Downloads
367
Readme
create-multi-chrome
Implement multi-instance opening of Google Chrome in windows (independent environment, independent cookies)
Setup
Install the dependencies:
pnpm install create-multi-chrome --save
Usage
import { genChromeLnkOptions, makeSync } from "create-multi-chrome";
async function run() {
for (let i = 0; i < 1; i++) {
try {
makeSync(
genChromeLnkOptions({
filepath: `C:/Program Files/Google/Chrome/Application/chrome.exe`,
storagePath: `E:/Program Files/GoogleChrome${i}`,
linkName: `Google Chrome${i}`,
})
);
} catch (error) {
console.error(error);
}
}
}
run();
run the code above, you will get a new chrome instance in your windows.