• Stars
    star
    244
  • Rank 160,729 (Top 4 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 4 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Chrome devtools protocol JavaScript implementation

chobitsu

NPM version Build status Test coverage License

Chrome devtools protocol JavaScript implementation.

Install

You can get it on npm.

npm install chobitsu --save

Usage

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'
    }
  }
}));

!(async () => {
  console.log(await chobitsu.sendMessage('Storage.clearDataForOrigin', {
    storageTypes: 'local_storage'
  }));
})();

const domStorage = chobitsu.domain('DOMStorage');
domStorage.enable();
domStorage.on('domStorageItemUpdated', params => console.log(params));

API

sendRawMessage(message: string)

Send message to chobitsu.

setOnMessage(onMessage: (message: string) => void)

Set message handler.

sendMessage(method: string, params: any): Promise

Send message without setting id and get result.

domain(name: string)

Get domain object.

Related Projects

  • chii: Remote debugging tool.

More Repositories

1

eruda

Console for mobile browsers
JavaScript
17,281
star
2

licia

Useful utility collection with zero dependencies
JavaScript
2,258
star
3

chii

Remote debugging tool
JavaScript
1,569
star
4

eustia

Tool for generating utility libraries
TypeScript
285
star
5

luna

UI library
TypeScript
202
star
6

eruda-android

Simple webview with eruda loaded automatically
Kotlin
85
star
7

webvn

HTML5 visual novel engine
JavaScript
82
star
8

vivy-docs

Stable diffusion desktop app
53
star
9

whistle.chii

Whistle Chii plugin
JavaScript
40
star
10

liriliri

HTML5 visual novel engine
JavaScript
38
star
11

eruda-code

Eruda plugin for running JavaScript code
JavaScript
26
star
12

eruda-fps

Eruda plugin for displaying fps info
JavaScript
24
star
13

eruda-dom

Eruda plugin for navigating dom tree
JavaScript
19
star
14

vscode-settings-editor

VS Code visual editor for settings like npm package.json
TypeScript
18
star
15

eruda-features

Eruda plugin for browser feature detections
JavaScript
11
star
16

fione

A collection of utility libraries used by liriliri projects
JavaScript
10
star
17

eruda-plugin

Eruda plugin template
JavaScript
9
star
18

eruda-memory

Eruda plugin for displaying memory
JavaScript
9
star
19

eruda-timing

Eruda plugin for performance and resource timing
JavaScript
8
star
20

tinker

Toolbox for developers
TypeScript
5
star
21

eruda-geolocation

Eruda plugin for testing geolocation
JavaScript
4
star
22

webvn-demo

WebVN Html5 Visual Novel Engine Sample Project
JavaScript
4
star
23

eruda-docs

Eruda website
JavaScript
4
star
24

eruda-monitor

Eruda plugin for displaying fps and memory
JavaScript
4
star
25

eruda-touches

Eruda plugin for visualizing screen touches
JavaScript
3
star
26

eruda-worker

Eruda plugin for displaying web worker status
JavaScript
3
star
27

eruda-orientation

Eruda plugin for testing orientation api
JavaScript
3
star
28

eris

Node c++ addon utilities
C++
3
star
29

lina

Mobile UI library
3
star
30

eruda-vue

Eruda plugin for vue
JavaScript
3
star
31

eustia-component

Eustia component transpiler
JavaScript
3
star
32

deedlit

Simple scripting language
JavaScript
2
star
33

eustia-docs

Eustia website
JavaScript
2
star
34

eustia-babel

Eustia es6 transpiler
JavaScript
2
star
35

eustia-json

Eustia json transpiler
JavaScript
2
star
36

licia-docs

Licia website
JavaScript
1
star
37

webvn-jsdoc3

Jsdoc3 template for WebVN
JavaScript
1
star
38

eriri

WebGL 2d library
1
star
39

eruda-benchmark

Eruda plugin for running JavaScript benchmarks
JavaScript
1
star
40

eustia-lodash

Eustia lodash adapter
JavaScript
1
star