Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated readme, using travis

  • Loading branch information...
commit f344c414488826ffde3b93f4a76080dc1c44c959 1 parent 6adfdd7
@substack authored
Showing with 51 additions and 37 deletions.
  1. +4 −0 .travis.yml
  2. +0 −37 README.markdown
  3. +47 −0 readme.markdown
View
4 .travis.yml
@@ -0,0 +1,4 @@
+language: node_js
+node_js:
+ - 0.6
+ - 0.8
View
37 README.markdown
@@ -1,37 +0,0 @@
-ent
-===
-
-Encode and decode HTML entities
-
-example
-=======
-
- var ent = require('ent');
- console.log(ent.encode('<span>©moo</span>'))
- console.log(ent.decode('&pi; &amp; &rho;'));
-
-output:
-
- &lt;span&gt;&copy;moo&lt;/span&gt;
- π & ρ
-
-![ent](http://substack.net/images/ent.png)
-
-methods
-=======
-
-encode(str)
------------
-
-Escape unsafe characters in `str` with html entities.
-
-decode(str)
------------
-
-Convert html entities in `str` back to raw text.
-
-credits
-=======
-
-HTML entity tables shamelessly lifted from perl's
-[HTML::Entities](http://cpansearch.perl.org/src/GAAS/HTML-Parser-3.68/lib/HTML/Entities.pm)
View
47 readme.markdown
@@ -0,0 +1,47 @@
+# ent
+
+Encode and decode HTML entities
+
+[![build status](https://secure.travis-ci.org/substack/node-ent.png)](http://travis-ci.org/substack/node-ent)
+
+# example
+
+``` js
+var ent = require('ent');
+console.log(ent.encode('<span>©moo</span>'))
+console.log(ent.decode('&pi; &amp; &rho;'));
+```
+
+```
+&lt;span&gt;&copy;moo&lt;/span&gt;
+π & ρ
+```
+
+![ent](http://substack.net/images/ent.png)
+
+# methods
+
+## encode(str)
+
+Escape unsafe characters in `str` with html entities.
+
+## decode(str)
+
+Convert html entities in `str` back to raw text.
+
+# credits
+
+HTML entity tables shamelessly lifted from perl's
+[HTML::Entities](http://cpansearch.perl.org/src/GAAS/HTML-Parser-3.68/lib/HTML/Entities.pm)
+
+# install
+
+With [npm](https://npmjs.org) do:
+
+```
+npm install ent
+```
+
+# license
+
+MIT
Please sign in to comment.
Something went wrong with that request. Please try again.