
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@payw/cau-food-scraper
Advanced tools
A CAU restaurant menu scraper for Node.js
NOTE: You should follow the migration guide in favor of v2 release.
npm install @payw/cau-food-scraper
# OR
yarn add @payw/cau-food-scraper
// Node.js
const { CAUFS } = require('@payw/cau-food-scraper')
// webpack
// import { CAUFS } from '@payw/cau-food-scraper'
CAUFS({
id: 'portalId',
pw: 'portalPw',
days: 1 // optional (default: 5)
}).then(data => {
// Do something
})
You should import the library differently.
/* v1 */
// Node.js
const foodScrape = require('@payw/cau-food-scraper').default
// webpack
import foodScrape from '@payw/cau-food-scraper'
/* v2 */
// Node.js
const { CAUFS } = require('@payw/cau-food-scraper')
// webpack
import { CAUFS } from '@payw/cau-food-scraper'
Currently, the chage below is deprecated and will be reverted back on the next major release.
Returning data type of Day
and its children types had been slightly changed. The package includes a type definition with more detailed information.
/* v1 */
type Day = {
date: string
breakfast: Food[]
lunch: Food[]
supper: Food[]
}
/* v2 */
type Day = {
date: string
timeGroup: {
breakfast: Restaurant[]
lunch: Restaurant[]
supper: Restaurant[]
}
}
FAQs
A CAU restaurant menu scraper for Node.js
The npm package @payw/cau-food-scraper receives a total of 30 weekly downloads. As such, @payw/cau-food-scraper popularity was classified as not popular.
We found that @payw/cau-food-scraper 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 how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.