4.0.0 • Published 4 years ago
kpow v4.0.0
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
4 years ago
3.0.3
4 years ago
3.0.2
4 years ago
3.0.1
4 years ago
3.0.0
4 years ago
2.0.3
4 years ago
2.0.2
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
0.1.8
5 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.2
6 years ago
0.1.1
7 years ago
0.1.0
8 years ago
0.0.4
8 years ago
0.0.3
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago
0.0.0
8 years ago