var Crawler = require('./crawler.js'); Crawler .getPage('cf279a') .then((d) => Crawler.findPosition(d)) .then((d) => console.log(d));