This repository has been archived by the owner on Dec 4, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all the damn browser bundlers dropped support for node.js so if you h…
…ave #! in the file everyone complains about it
- Loading branch information
1 parent
71ab561
commit debb492
Showing
3 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#! /usr/bin/env node | ||
|
||
var JSONStream = require('./') | ||
|
||
if(!module.parent && process.title !== 'browser') { | ||
process.stdin | ||
.pipe(JSONStream.parse(process.argv[2])) | ||
.pipe(JSONStream.stringify('[', ',\n', ']\n', 2)) | ||
.pipe(process.stdout) | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters