Chrome devtools protocol JavaScript implementation.
You can get it on npm.
npm install chobitsu --save
const chobitsu = require('chobitsu');
chobitsu.setOnMessage(message => {
console.log(message);
});
chobitsu.sendRawMessage(JSON.stringify({
id: 1,
method: 'DOMStorage.clear',
params: {
storageId: {
isLocalStorage: true,
securityOrigin: 'http://example.com'
}
}
}));
For more detailed usage instructions, please read the documentation at chii.liriliri.io!