node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

imageviewurlreplace

node-imageviewurlreplace

Installation

$ npm install imageviewurlreplace

Usage

var ivur = require("imageviewurlreplace");
 
ivur({uri: "http://ascii.jp/elem/000/000/686/686849/img.html"}, function (url, referer, res) {
  console.log(url); // http://ascii.jp/elem/000/000/686/686849/sv1_c_640x480.jpg 
}).on("error", function (error) {
  console.log(error);
});
 
ivur("http://ascii.jp/elem/000/000/686/686849/img.html", function (url, referer, res) {
  console.log(url); // http://ascii.jp/elem/000/000/686/686849/sv1_c_640x480.jpg 
});

Copyright

Copyright (c) 2012 Kazuki Suda. See LICENSE.txt for further details.