Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Jan 30, 2013
1 parent 654c414 commit 7d46072
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# markupify
# json-markup

Highlight your JSON with HTML markup

npm install markupify
npm install json-markup

Markupify will take a JSON document and add markup to it so it can be styled in a browser.
json-markup will take a JSON document and add markup to it so it can be styled in a browser.

``` js
var markupify = require('markupify');
var jsonMarkup = require('json-markup');

var html = markupify({hello:'world'});
var html = jsonMarkup({hello:'world'});

console.log(html);
```
Expand All @@ -23,4 +23,4 @@ The above example will print the following HTML
```

Afterwards you can use css to style your output to your liking.
A stylesheet similar to [JSON view](https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc) is included in [style.css](https://github.com/mafintosh/markupify/blob/master/style.css)
A stylesheet similar to [JSON view](https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc) is included in [style.css](https://github.com/mafintosh/markupify/blob/master/style.css)

0 comments on commit 7d46072

Please sign in to comment.