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

  • 0.12.2
  • Source
  • npm
  • Socket score

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

Amok(1)

tips chat npm

Synopsis

amok [options] <script>

Installation

npm install amok -g

Description

Amok 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 and bundled as needed, and re-compiled in the client session without refreshing or restarting the client.

This re-compilation is done through a debugging session, unlike reloading or reevaluation, re-compilation leaves the application state intact, no side effects are executed when doing re-compilation.

Additional features include a zero configuration http development server for developing front end applications, an interactive mode (read–eval–print loop) and console redirection.

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.

--client <identifier>
  specify the client to spawn

--compiler <identifier>
  specify the compiler to spawn

-i, --interactive
  start in interactive mode

-v, --verbose
  enable verbose logging mode

You must have a client is already listening on the remote debugging port when launching, or specified via the --client option.

Optionally a compiler may be specified to process script sources via the --compiler option, Any extra arguments and options following the option parsing terminator --, will be passed as extra options to the compiler.

Example

  1. git https://gist.github.com/d58c3eecb72ba3dd0846.git examples
  2. cd examples
  3. amok --client chrome canvas.js

Webpack

amok --client chrome --compiler webpack canvas.js

Browserify

amok --client chrome --compiler browserify canvas.js

Babel

amok --client chrome --compiler babel canvas.js

TypeScript

amok --client chrome --compiler typescript canvas.js

CoffeeScript

amok --client chrome --compiler coffeescript canvas.js

Keywords

FAQs

Package last updated on 03 Apr 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