# devtools-live

> Edit your files in devtools console without reloading your browser

Latest version **0.2.2** (published 2017-03-30) · 0 weekly downloads

## Install

```sh
npm install devtools-live
pnpm add devtools-live
yarn add devtools-live
bun add devtools-live
```

Provides the command `devtools-live`.

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2017-03-30 |
| First published | 2016-02-18 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 16 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | StudioLabs |
| Maintainers | steed |
| Keywords | live, edit, hot, dev, tools, console, reload, browser, devtools, live-reload, live-edit, server |

## Links

- npm: https://www.npmjs.com/package/devtools-live
- Repository: https://github.com/StudioLabs/devtools-live
- Homepage: https://github.com/StudioLabs/devtools-live#readme
- Issues: https://github.com/StudioLabs/devtools-live/issues
- npm.io page: https://npm.io/package/devtools-live

## Dependencies (16)

- [opn](https://npm.io/package/opn.md) ^3.0.2
- [mime](https://npm.io/package/mime.md) ^1.3.4
- [sane](https://npm.io/package/sane.md) ~1.0.0
- [utf8](https://npm.io/package/utf8.md) ^2.1.0
- [chalk](https://npm.io/package/chalk.md) ^1.1.1
- [lodash](https://npm.io/package/lodash.md) ^3.9.3
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [connect](https://npm.io/package/connect.md) ^3.4.0
- [through](https://npm.io/package/through.md) ^2.3.8
- [parseurl](https://npm.io/package/parseurl.md) ^1.3.0
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.6
- [memory-fs](https://npm.io/package/memory-fs.md) ^0.3.0
- [websocket](https://npm.io/package/websocket.md) ^1.0.21
- [event-stream](https://npm.io/package/event-stream.md) ^3.3.2
- [pause-stream](https://npm.io/package/pause-stream.md) 0.0.11
- [devtools-live-middleware](https://npm.io/package/devtools-live-middleware.md) 0.0.4

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 0.2.2 (latest) — 2017-03-30
- 0.2.1 — 2017-02-27
- 0.2.0 — 2016-11-15
- 0.1.9 — 2016-05-31
- 0.1.8 — 2016-05-31
- 0.1.6 — 2016-05-27
- 0.1.5 — 2016-05-25
- 0.1.4 — 2016-05-24
- 0.1.3 — 2016-04-29
- 0.1.1 — 2016-03-16
- 0.1.0 — 2016-02-18

## README

[![Stories in Ready](https://badge.waffle.io/StudioLabs/devtools-live.png?label=ready&title=Ready)](https://waffle.io/StudioLabs/devtools-live)
DevtoolsLive
---

DevtoolsLive is a Chrome extension that lets you modify running apps without reloading. It's easy to integrate with your build system, dev environment, and can be used with your favorite editor. 


## Usage

DevtoolsLive is made up of a server and client component. This will guide through configuring your server for your project and installing the Chrome extension.



### 1. Install Chrome Extension

Grab the [Devtools Live extension](https://chrome.google.com/webstore/detail/devtools-live/mibfmhaegkllojggdbddpfdimhmbhkcn?hl). This will add a new tab in your Chrome DevTools called 'Live'.

or 

Visit chrome://extensions in your browser (or open up the Chrome menu by clicking the icon to the far right of the Omnibox:  The menu's icon is three horizontal bars. and select Extensions under the Tools menu to get to the same place).

Ensure that the Developer mode checkbox in the top right-hand corner is checked.

![786508223546859693](https://cloud.githubusercontent.com/assets/231490/15523493/120b291c-221b-11e6-9a84-3fa41d0690a9.png)

Click Load unpacked extension… to pop up a file-selection dialog.

Navigate to the devtools Live directory  and go to src.

Select the Client folder.


### 2. Configure Devtools Live Server

```
$ npm install devtools-live
```

Create a config file named live.js:

```js
var LiveDevtools = require('devtools-live');
 
var live = new LiveDevtools({
	devtools : {
		directory: './src/'
	},
	watch : {
		'./src/' : {
			files : ['js/*.js','css/*.css']
		}
	},
	connect : {
		port:3000,
		open: true,
		root: './src/'
	}
});
 
live.start();
```

### 3. Run the server

```
$ node live.js
```

### 4. Configure Devtools Live

Go to the Live extension in  chrome devtools. Click on Activate.
Devtools Live will be connected automatically.

![mai-25-2016 02-01-54](https://cloud.githubusercontent.com/assets/231490/15523725/b73c534c-221c-11e6-9a2c-3e147f8af492.gif)

If there is an issue, go to configuration and add a new  server configuration.



### 5. Edit your code 

Now you can edit your code when devtools live is open, in your editor or in the devtools Source tab.

---
_Source: https://npm.io/package/devtools-live · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
