This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| const requestPromise = require('request-promise-native') | |
| const notifier = require('node-notifier') | |
| const path = require('path') | |
| async function searchStockLaptop ({name, url, search, shouldFind = true}) { | |
| const pageBody = await requestPromise(url) | |
| const isSearchFound = pageBody.indexOf(search) !== -1 | |
| if (isSearchFound === shouldFind) { |
NewerOlder