4.0.0 • Published 3 years ago

kpow v4.0.0

Weekly downloads
3
License
Unlicense
Repository
github
Last release
3 years ago

about

A featureless JS-only pipe-to-browser utility like scat sans deps useful for running client side unit tests a-la testling for example. At core equivalent to:

printf 'HTTP/1.1 200 OK\r\n\n%s\n' "<script>console.log('coucou');</script>" | nc -c -l 1234

setup

Download from the npm registry:

# Add to package.json
npm install kpow --save-dev

usage

Fires up a transient server on a random port with the passed in file attached to an empty HTML page, then attempts to launch a browser prewiew using -c in one go.

Override the default open(1) command:

npx kpow -c xdg-open file.js

Be piping:

echo "alert('coucou')" | cat - file.js | npx kpow
4.0.0

3 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

5 years ago

0.1.1

6 years ago

0.1.0

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago