Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "read-art", | ||
"version": "0.0.2", | ||
"description": "Scrape article from any page, automatically.", | ||
"version": "0.0.3", | ||
"description": "Scrape article from any page, automatically, make web page readability.", | ||
"main": "index.js", | ||
@@ -36,6 +36,3 @@ "scripts": { | ||
}, | ||
"readmeFilename": "README.md", | ||
"_id": "read-art@0.0.1", | ||
"_from": "read-art@*", | ||
"_resolved": "http://registry.cnpmjs.org/read-art/download/read-art-0.0.1.tgz" | ||
"readmeFilename": "README.md" | ||
} |
@@ -46,3 +46,3 @@ # read-art -- readability reference to Arc90's | ||
```javascript | ||
read('<div><p>hello, node-read!</p></div>', { overrideCharset: 'utf8' }, function(err, art, options){ | ||
read('<title>node-art</title><body><div><p>hello, read-art!</p></div></body>', { overrideCharset: 'utf8' }, function(err, art, options){ | ||
... | ||
@@ -54,3 +54,3 @@ }); | ||
```javascript | ||
read({ uri: '<div><p>hello, node-read!</p></div>', overrideCharset: 'utf8' }, function(err, art, options){ | ||
read({ uri: '<title>node-art</title><body><div><p>hello, read-art!</p></div></body>', overrideCharset: 'utf8' }, function(err, art, options){ | ||
... | ||
@@ -63,3 +63,3 @@ }); | ||
```javascript | ||
read({ html: '<div><p>hello, node-read!</p></div>', overrideCharset: 'utf8' }, function(err, art, options){ | ||
read({ html: '<title>node-art</title><body><div><p>hello, read-art!</p></div></body>', overrideCharset: 'utf8' }, function(err, art, options){ | ||
... | ||
@@ -69,2 +69,4 @@ }); | ||
**CAUTION** title must be wrapped in a *title* tag and content must be wrapped in a *body* tag. | ||
## Options | ||
@@ -71,0 +73,0 @@ ### cacheable |
28291
153