Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[doc] update

  • Loading branch information...
commit 93d1f6ca9c85be1e7a27c5dcf06473a4c4b2c40b 1 parent 5bf671d
Paolo Fragomeni authored

Showing 1 changed file with 11 additions and 2 deletions. Show diff stats Hide diff stats

  1. +11 2 README.md
13 README.md
Source Rendered
@@ -24,11 +24,20 @@ A library for `precision code extraction`. Also optionally performs code minific
24 24 `npm install codesurgeon`
25 25
26 26 # Usage
  27 +Simply write a javascript file like the example below. And run it.
27 28
28   -All writes are done synchronously by default (can be done asynchronously), so you can chain them. Here are a few examples.
29   -Here is a Build script examples using the above source file
  29 +```bash
  30 +$node mybuildfile.js
  31 +```
  32 +
  33 +Codesurgeon will appreciate piped input!
  34 +
  35 +```bash
  36 +$cat myfile1 myfile2 | node mybuildfile.js
  37 +```
30 38
31 39 ## Synchronous example
  40 +All writes are done synchronously by default (can be done asynchronously), so you can chain them. Here are a few examples. Here is a Build script examples using the above source file
32 41
33 42 ```js
34 43 var Codesurgeon = require('codesurgeon').Codesurgeon;

0 comments on commit 93d1f6c

Please sign in to comment.
Something went wrong with that request. Please try again.