Socket
Socket
Sign inDemoInstall

js1k-harness

Package Overview
Dependencies
8
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    js1k-harness

Tools for developing js1k entries


Version published
Weekly downloads
2
Maintainers
1
Install size
694 kB
Created
Weekly downloads
 

Readme

Source

JS1K Development Harness

A collection of command-line tools for developing JS1K entries.

Installation

# TODO: upload to npm

Usage

Run the js1k executable. It provides three main subcommands:

js1k init

Creates a boilerplate js file that you can add your entry's code to.

js1k serve

Starts a web server that serves your entry inside the js1k shim. This will automatically minify your code for you (with uglify-js), and show the current size of your entry in the browser. It reloads and minifies your javascript on every request, so you don't need to restart the server when your code changes (just refresh your browser).

js1k build

Dumps your minified entry code to the console. You can submit this directly to js1k, although you can probably still save a couple more bytes by editing the output manually (removing var, etc).

Full command list (js1k -h)

Usage: js1k [options] [command]

Commands:

  init                   Create a new js1k boilerplate javascript file
  serve                  Serve your minified js in the js1k shim (on port 3001)
  build                  Outputs a minified version of your javascript, suitable for submission
  rules                  Open the js1k rules page
  submit                 Open the js1k submission page

Options:

  -h, --help     output usage information
  -V, --version  output the version number

Keywords

FAQs

Last updated on 10 Feb 2013

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc