Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
boston-food-trucks-info
Advanced tools
Simple library to scrape data from the boston food trucks website
Simple library to scrape data from the boston food trucks website
npm install --save boston-food-trucks-info
const { fetchCurrentPage, getFoodTruckSchedule } = require("boston-food-trucks-info");
fetchCurrentPage().then(page => {
const chinaTradeBuilding = getFoodTruckSchedule(page, "China Trade Building");
console.log(chinaTradeBuilding);
})
{
"lunch": {
"monday": [
{
"name": "Oath Pizza",
"link": "http://oathpizza.com/"
}
],
"tuesday": [
{
"name": "Chef Leo's Kitchen"
}
],
"wednesday": [
{
"name": "Perros Paisas",
"link": "https://www.facebook.com/Perros-Paisas-En-Boston-748803585293605/"
}
],
"thursday": [
{
"name": "IQ Cooking on Wheels",
"link": "https://twitter.com/dragonrollgrill?lang=en"
}
],
"friday": [],
"saturday": [],
"sunday": []
},
"dinner": {
"monday": [],
"tuesday": [],
"wednesday": [],
"thursday": [],
"friday": [],
"saturday": [],
"sunday": []
}
}
interface Page {
/* This type is internal and should be treated as a blackbox */
}
interface VisitingFoodTruck {
name: string;
link?: string;
}
interface FoodTruckSchedule {
lunch: {
monday: VisitingFoodTruck[];
tuesday: VisitingFoodTruck[];
wednesday: VisitingFoodTruck[];
thursday: VisitingFoodTruck[];
friday: VisitingFoodTruck[];
saturday: VisitingFoodTruck[];
sunday: VisitingFoodTruck[];
},
dinner: {
monday: VisitingFoodTruck[];
tuesday: VisitingFoodTruck[];
wednesday: VisitingFoodTruck[];
thursday: VisitingFoodTruck[];
friday: VisitingFoodTruck[];
saturday: VisitingFoodTruck[];
sunday: VisitingFoodTruck[];
}
}
/**
* Uses a http request to fetch the current food truck data page.
* The returned Page object should only be used by passing it to dataByLocation. It
* specifically is not part of the public api.
*/
fetchCurrentPage(): Promise<Page>;
/**
* Processes the Page object to extract the FoodTruckSchedule for the given location.
*/
getFoodTruckSchedule(page: Page, location: string): FoodTruckSchedule;
FAQs
Simple library to scrape data from the boston food trucks website
We found that boston-food-trucks-info demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.