New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

amok

Package Overview
Dependencies
Maintainers
1
Versions
808
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amok

Live Editing for JavaScript Without Having to Reload

  • 0.8.10
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
422
decreased by-56.63%
Maintainers
1
Weekly downloads
 
Created
Source

Amok(1)

tips chat npm

View the video

Support the fundraiser

Synopsis

amok [options] <script>

Description

Amok is a standalone command line tool for rapid prototyping and development of JavaScript applications.

It monitors changes in the file system. As soon as you save a file, it is then preprocessed/compiled as needed, and reloaded in the browser session without refreshing. This keeps the application state unchanged while doing live edits.

It does this by connecting directly to the browser via the debugging protocol, which means no browser extension are required, but the browser does have to support the remote debugging protocol (which, is currently only Chrome)

Example

export AMOK_BROWSER="google-chrome --remote-debugging-port=9222"
export AMOK_BUNDLER="watchify"
  
amok myapp.js

Options

-h, --host <HOST>
  specify the http host, default HOST is localhost.

-p, --port <PORT>
  specify the http port, default PORT is 9966.

-H, --debugger-host <HOST>
  specify the remote debugger host, default HOST is localhost.

-P, --debugger-port <PORT>
  specify the remote debugger port, default PORT is 9222.

-v, --verbose
  enable verbose logging mode

--no-browser
  disable browser spawning
    
--no-bundler
  disable bundling

--no-debugger
  disable remote debugger

Any extra arguments following the -- terminator, will be passed along with the invocation to the source bundler if one is specified.

Environment Variables

AMOK_BROWSER
  When set to a executable, will be opened after the server has started.

AMOK_BUNDLER
  When set to an executable, will be used to bundle scripts.

Keywords

FAQs

Package last updated on 27 Mar 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc