Skip to content

Commit

Permalink
lock deps
Browse files Browse the repository at this point in the history
  • Loading branch information
bevacqua committed Mar 17, 2017
1 parent 53a1af4 commit 1123030
Show file tree
Hide file tree
Showing 4 changed files with 376 additions and 12 deletions.
7 changes: 0 additions & 7 deletions index.js
Expand Up @@ -3,7 +3,6 @@
const url = require(`url`)
const request = require(`request`)
const htmlparser = require(`htmlparser2`)
const fileType = require(`file-type`)
const rhttp = /^https?:\/\//i
const whitelist = /charset|author|host|description|twitter:|og:|theme-color/im

Expand All @@ -25,12 +24,6 @@ function extract (endpoint, options, done) {
return
}

const file = fileType(body)
if (file) {
payload.file = file
return
}

const rdoublespaces = /\s{2,}|\n/img

parser.write(body)
Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -12,7 +12,6 @@
"test": "node test.js"
},
"dependencies": {
"file-type": "4.1.0",
"htmlparser2": "3.9.2",
"request": "2.81.0"
}
Expand Down
4 changes: 0 additions & 4 deletions test.js
Expand Up @@ -12,10 +12,6 @@ scrape(`http://www.w3.org/TR/html4/index/list.html`, (err, meta) =>
console.log(err, meta)
)

scrape(`https://www.npmjs.com/static/images/not-found.png`, (err, meta) =>
console.log(err, meta)
)

scrape(`https://medium.freecodecamp.com/functional-setstate-is-the-future-of-react-374f30401b6b#.ih2sesp1k`, (err, meta) =>
console.log(err, meta)
)

0 comments on commit 1123030

Please sign in to comment.