<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Vegan on akky@サイボウズラボ・ブログ</title>
		<link>https://labs.cybozu.co.jp/blog/akky/tags/vegan/</link>
		<description>Recent content in Vegan on akky@サイボウズラボ・ブログ</description>
		<generator>Hugo</generator>
		<language>ja</language>
		
		
		
		
			<lastBuildDate>Wed, 07 Feb 2018 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://labs.cybozu.co.jp/blog/akky/tags/vegan/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>is-vegan 菜食主義者のための食品判定ライブラリ in JavaScript</title>
				<link>https://labs.cybozu.co.jp/blog/akky/2018/02/javascript-library-tells-you-which-food-is-vegan/</link>
				<pubDate>Wed, 07 Feb 2018 00:00:00 +0000</pubDate>
				<guid>https://labs.cybozu.co.jp/blog/akky/2018/02/javascript-library-tells-you-which-food-is-vegan/</guid>
				<description>&lt;p&gt;肉や魚だけでなく、牛乳など直接は命を奪わない食材も忌避する完全菜食主義(ヴィーガン)のためのライブラリが &lt;a href=&#34;https://github.com/hmontazeri/is-vegan&#34;&gt;is- vegan&lt;/a&gt; です。&lt;/p&gt;&#xA;&lt;p&gt;利用例はこんな感じ。牛乳はダメで、豆乳はOKと。&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;import * as isVegan from &#39;is-vegan&#39;;  // example for single ingredient isVegan.isVeganIngredient(&#39;soy&#39;); // true isVegan.isVeganIngredient(&#39;milk&#39;); // false&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;作りとしては src/util/canbevegan.json と nonvegan.json に食材の名前が列挙してあるだけのシンプルなもの。これを訳せば日本語でも使えるかもしれないですね。レシピサイトの材料リストを見て、菜食主義対応かどうかを表示する、なんていう拡張を作ったりできそうです。&lt;/p&gt;&#xA;&lt;p&gt;食べ物の規制ということだとイスラム教のハラールについても is-haral 的なライブラリが有ったりするのかな、とGitHub を探してみましたが、見つかりませんでした。あちらは単純に食材の種類で決まるわけではないので同じ手は使えないのかもしれませんね。&lt;/p&gt;&#xA;&lt;p&gt;via Hacker News&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
