All Projects → hmontazeri → Is Vegan

hmontazeri / Is Vegan

Licence: mit
Is-Vegan helps you to find out which food ingredients are vegan / non-vegan

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Is Vegan

Website
Yarn package manager website
Stars: ✭ 374 (-11.79%)
Mutual labels:  npm
Benchmarks Of Javascript Package Managers
Benchmarks of JavaScript Package Managers
Stars: ✭ 388 (-8.49%)
Mutual labels:  npm
Disposable
A list of disposable/temporary email address domains
Stars: ✭ 407 (-4.01%)
Mutual labels:  npm
Npminstall
Make `npm install` fast and easy.
Stars: ✭ 374 (-11.79%)
Mutual labels:  npm
Npm Consider
Check package dependencies before installing it
Stars: ✭ 386 (-8.96%)
Mutual labels:  npm
Smartbanner.js
Customisable smart app banners for iOS and Android
Stars: ✭ 391 (-7.78%)
Mutual labels:  npm
Epub Press Clients
📦 Clients for building books with EpubPress.
Stars: ✭ 370 (-12.74%)
Mutual labels:  npm
Strongbox
Strongbox is an artifact repository manager.
Stars: ✭ 412 (-2.83%)
Mutual labels:  npm
Stmux
Simple Terminal Multiplexer for Node.js Environments
Stars: ✭ 388 (-8.49%)
Mutual labels:  npm
Esm.sh
A fast, global content delivery network for ES Modules.
Stars: ✭ 404 (-4.72%)
Mutual labels:  npm
Npx card
use npx anmol to connect with me
Stars: ✭ 377 (-11.08%)
Mutual labels:  npm
Awesome Npm
Awesome npm resources and tips
Stars: ✭ 3,894 (+818.4%)
Mutual labels:  npm
Lein template descjop
A Leiningen template(Clojure/ClojureScript Project) for Web based desktop application with Electron (atom-shell).
Stars: ✭ 394 (-7.08%)
Mutual labels:  npm
Hukum
An NPM module that displays Github Action progress in the terminal and aims to improve your development experience by printing status in realtime.
Stars: ✭ 375 (-11.56%)
Mutual labels:  npm
Lockfile Lint
Lint an npm or yarn lockfile to analyze and detect security issues
Stars: ✭ 411 (-3.07%)
Mutual labels:  npm
Front End Doc
前端文档汇总(觉得对您有用的话,别忘了star收藏哦^_^ !)
Stars: ✭ 372 (-12.26%)
Mutual labels:  npm
Recipes App React Native
Recipes App in React Native
Stars: ✭ 386 (-8.96%)
Mutual labels:  food
Phaser Ce Npm Webpack Typescript Starter Project
Project to get you started with your Phaser-CE (using the npm module) game using Typescript and Webpack for building! No hassle asset management, Google Web Font loader, live server, development vs distribution build pipeline, Electron packaging for desktop builds, and more...
Stars: ✭ 414 (-2.36%)
Mutual labels:  npm
Release It
🚀 Automate versioning and package publishing
Stars: ✭ 4,773 (+1025.71%)
Mutual labels:  npm
Cpx
A cli tool to watch and copy file globs.
Stars: ✭ 394 (-7.08%)
Mutual labels:  npm

Build Status npm version codecov

is-vegan

Is-Vegan helps you to find out which food ingredients are vegan / non-vegan. It can answer that on 1 ingredient or on a list of ingredients. It uses a 850+ entries list of non-vegan ingredients.

Wanna buy me a Coffee?

How to use?

Free API Service?

Why?

We are aware that 'veganism' and the definition of it can be a hot topic. We created the non-vegan list keeping in mind that veganism in dietary terms, it denotes the practice of dispensing with all products derived wholly or partly from animals.

Our first step is the approach to help people understand, which products, and where applicable its ingredients, do not involve, or have involved, the use of any animal product, by-product or derivative. It is not driven about any vegan lifestyle choice or stereotype. We welcome and appreciate any help and concerence regarding the nonvegan/canbevegan list.

Currently we are unfortunatly not adressing any other forms of exploitation of, and cruelty to, animals for clothing, cosmetics or any other purpose.

Thank you all for your comments, we appreciate the discussion, as we grow and learn from your input.

All comments on Hacker News

Sources

We want to make sure that you understand how is-vegan is implemented. We analyzed as many good information websites for vegan / non-vegan ingredients as we found to get a very accurate list of ingredients. However, feel free to send a pull request with an updated version of the list.

Websites we parsed:

and we added also a few ourselves...

Usage

Add

yarn add is-vegan

or

npm install is-vegan --save

example

const isVegan = require('is-vegan');

// or

import * as isVegan from 'is-vegan';

// example for single ingredient
isVegan.isVeganIngredient('soy'); // true
isVegan.isVeganIngredient('milk'); // false

// example for list of ingredients
isVegan.isVeganIngredientList(['aspic', 'albumin']); // false
isVegan.isVeganIngredientList(['soy', 'cacao butter']); // true

// example for list of ingredients
isVegan.containsNonVeganIngredients(['aspic', 'albumin', 'soy']); // ['aspic', 'albumin']
isVegan.containsNonVeganIngredients(['soy', 'cacao butter']); // []

// example for list of ingredients wich contain flagged and non-vegan ingredients
isVegan.checkIngredients(['soy', 'cacao butter', 'pork', 'beef', 'glycine']);
// returns
// {
//   nonvegan: ['pork', 'beef'],
//   flagged: ['glycine']
// }

// example for list of ingredients in Italian language
isVegan.setIngredientsLanguage('it'); // 'it' is the two-letter ISO 639-1 code for the Italian language
isVegan.checkIngredients([
  'manzo',
  'maiale',
  'glicina',
  'biotina',
  'soia',
  'aglio',
]);
// returns
// {
//   nonvegan: ['manzo', 'maiale'],
//   flagged: ['glicina', 'biotina']
// }

// or

import { checkIngredients } from 'is-vegan';

// example for list of ingredients wich contain flagged and non-vegan ingredients
checkIngredients(['soy', 'cacao butter', 'pork', 'beef', 'glycine']);

// returns
// {
//   nonvegan: ['pork', 'beef'],
//   flagged: ['glycine']
// }

real world example

Products searched on USDA Food Composition Databases

const isVegan = require('is-vegan');

// MOSER ROTH, DARK CHOCOLATE
isVegan.isVeganIngredientList([
  'COCOA LIQUOR',
  'SUGAR',
  'COCOA BUTTER',
  'ALKALIZED REDUCED FAT COCOA POWDER',
  'SOY LECITHIN EMULSIFIER',
  'GROUND VANILLA',
]); // returns true

Checkout: RunKit "is-vegan-playground" for more examples

Free API

https://is-vegan.netlify.com/

Test

yarn test

Thanks for translating the lists to italian

gianantoniopini

Alfred Workflow by Kyle Brumm (kjbrum)

alfred-is-vegan

TODO

  • extend list

Authors

  • Hamed Montazeri
  • Meike Rittmeier
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].