
Security News
Frontier AI Is Now Critical Infrastructure
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.
サイゼリヤのメニューを取得する Node.js ライブラリ
npm install saizeriya
import { Saizeriya } from "saizeriya";
const saizeriya = new Saizeriya();
// 全てのメニューを取得
const menus = saizeriya.all();
// 条件を指定してメニューを取得
const filteredMenus = saizeriya.all({
priceMin: 500,
genres: ["パスタ"],
});
// カテゴリを取得
const categories = saizeriya.categories();
// ジャンルを取得
const genres = saizeriya.genres();
// 旧ジャンルを取得
const preGenres = saizeriya.preGenres();
// 特定のIDに対応するメニューを取得
const menu = saizeriya.getById(1);
// 特定の旧IDに対応するメニューを取得
const preMenu = saizeriya.getByPreId("DG01");
// ランダムなメニューの組み合わせを取得
const randomMenus = saizeriya.random();
all(params?: SaizeriyaMenuParams): Menu[]条件に合う全てのメニューの一覧を取得します。
params(オプション): フィルタリング条件Menu[]: メニューの配列categories(): Category[]全てのカテゴリを取得します。
Category[]: カテゴリの配列genres(): Genre[]全てのジャンルを取得します。
Genre[]: ジャンルの配列getById(id: number): Menu | undefined指定した ID に対応するメニューを取得します。
id: メニューの IDMenu: メニューオブジェクト。見つからない場合はundefined。random(params?: SaizeriyaMenuParams, maxSum: number = 1000, allowDuplicates: boolean = true,): RandomMenus指定した総額に対応するランダムなメニューの組み合わせを取得します。
params: フィルタリングの条件maxSum: 総額の上限 (デフォルト: 1000)allowDuplicates: 重複許容フラグ (デフォルト: true)RandomMenus: ランダムなメニューの組み合わせオブジェクト。SaizeriyaMenuParams| パラメータ | 型 | 説明 |
|---|---|---|
priceMin | number | 税抜価格 (最小) |
priceMax | number | 税抜価格 (最大) |
priceWithTaxMin | number | 税込価格 (最小) |
priceWithTaxMax | number | 税込価格 (最大) |
categories | string[] | カテゴリ名 |
name | string | メニュー名 |
calorieMin | number | エネルギー (最小) |
calorieMax | number | エネルギー (最大) |
saltMin | number | 食塩相当量 (最小) |
saltMax | number | 食塩相当量 (最大) |
genres | string[] | ジャンル名 |
excludedMenuIds | number[] | 除外するメニュー ID |
excludeAlcohol | boolean | アルコール類を除外するフラグ |
Menu| フィールド | 型 | 説明 | サンプル |
|---|---|---|---|
id | number | メニュー ID | 1202 |
name | string | メニュー名 | 小エビのサラダ |
nameEn | string | メニュー名(英語) | Shrimp Salad |
nameZh | string | メニュー名(中国語) | 小甜虾沙拉 |
price | number | 税抜価格 | 319 |
priceWithTax | number | 税込価格 | 350 |
calorie | number | エネルギー (カロリー) (kcal) | 192 |
salt | number | 食塩相当量 (g) | 1.5 |
genre | Genre | ジャンル名 | サラダ |
category | string | カテゴリ名 | グランド |
categoryEn | string | カテゴリ名(英語) | Grand Menu |
categoryZh | string | カテゴリ名(中国語) | 主 |
isAlcohol | boolean | アルコールフラグ | false |
icon | string | アイコン (絵文字) | 🍤 |
preId | string | 旧メニュー ID | SA02 |
Category| フィールド | 型 | 説明 | サンプル |
|---|---|---|---|
category | string | カテゴリ名 | グランド |
categoryEn | string | カテゴリ名(英語) | Grand Menu |
categoryZh | string | カテゴリ名(中国語) | 主 |
Genrestring: ジャンル名
RandomMenus| フィールド | 型 | 説明 |
|---|---|---|
menus | Menu[] | 組み合わせ内のメニュー一覧 |
totalSalt | number | 食塩相当量の総額 |
totalCalorie | number | エネルギーの総額 |
totalPriceWithTax | number | 税込価格の総額 |
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
サイゼリヤのメニューを取得する Node.js ライブラリ
The npm package saizeriya receives a total of 21 weekly downloads. As such, saizeriya popularity was classified as not popular.
We found that saizeriya 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.

Security News
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.