Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

parse-ingredient

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-ingredient - npm Package Compare versions

Comparing version 0.6.0 to 1.0.0

dist/cjs/index.js

55

package.json
{
"name": "parse-ingredient",
"author": "Jake Boone",
"version": "0.6.0",
"version": "1.0.0",
"license": "MIT",

@@ -10,6 +10,14 @@ "description": "Recipe ingredient parser with support for mixed numbers and vulgar fractions",

],
"main": "./dist/parse-ingredient.cjs.js",
"module": "./dist/parse-ingredient.es.js",
"unpkg": "./dist/parse-ingredient.umd.js",
"typings": "dist/index.d.ts",
"main": "./dist/cjs/index.js",
"module": "./dist/parse-ingredient.legacy-esm.js",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/parse-ingredient.d.ts",
"import": "./dist/parse-ingredient.mjs",
"require": "./dist/cjs/index.js"
}
},
"types": "./dist/parse-ingredient.d.ts",
"unpkg": "./dist/parse-ingredient.umd.min.js",
"keywords": [

@@ -34,26 +42,25 @@ "parse",

"scripts": {
"start": "vite",
"build": "vite build && tsc",
"test": "jest --coverage",
"pretty-print": "prettier --write src",
"start": "bun ./server.ts",
"build": "tsup",
"test": "jest",
"watch": "jest --watch",
"pretty-print": "prettier --write src *.{mjs,json,html,ts}",
"publish:npm": "np",
"publish:demo": "node gh-pages.publish.js",
"generate-changelog": "npx github-changes -o jakeboone02 -r parse-ingredient -a --use-commit-body --date-format=\"(YYYY-MM-DD)\""
"publish:demo": "node gh-pages.publish.js"
},
"devDependencies": {
"@babel/core": "^7.19.3",
"@babel/preset-env": "^7.19.4",
"@babel/preset-typescript": "^7.18.6",
"@types/jest": "^29.1.2",
"gh-pages": "^4.0.0",
"jest": "^29.2.0",
"np": "^7.6.2",
"prettier": "^2.7.1",
"typescript": "^4.8.4",
"vite": "^3.1.8"
"@types/jest": "^29.5.2",
"bun-types": "^0.6.9",
"gh-pages": "^5.0.0",
"jest": "^29.5.0",
"np": "^8.0.4",
"open": "^9.1.0",
"prettier": "^2.8.8",
"ts-jest": "^29.1.0",
"tsup": "^7.0.0",
"typescript": "^5.1.3"
},
"dependencies": {
"numeric-quantity": "^1.0.4"
},
"packageManager": "yarn@3.2.3"
"numeric-quantity": "2.0.0"
}
}
# parse-ingredient
[![npm version](https://badge.fury.io/js/parse-ingredient.svg)](//npmjs.com/package/parse-ingredient)
![workflow status](https://github.com/jakeboone02/parse-ingredient/workflows/Continuous%20Integration/badge.svg)
[![codecov.io](https://codecov.io/github/jakeboone02/parse-ingredient/coverage.svg?branch=master)](https://codecov.io/github/jakeboone02/parse-ingredient?branch=master)
[![npm][badge-npm]](https://www.npmjs.com/package/parse-ingredient)
![workflow status](https://github.com/jakeboone02/parse-ingredient/actions/workflows/main.yml/badge.svg)
[![codecov.io](https://codecov.io/github/jakeboone02/parse-ingredient/coverage.svg?branch=main)](https://codecov.io/github/jakeboone02/parse-ingredient?branch=main)
[![downloads](https://img.shields.io/npm/dm/parse-ingredient.svg)](http://npm-stat.com/charts.html?package=parse-ingredient&from=2015-08-01)
[![MIT License](https://img.shields.io/npm/l/parse-ingredient.svg)](http://opensource.org/licenses/MIT)
[![All Contributors][badge-all-contributors]](#contributors-)

@@ -64,6 +65,5 @@ Parses a string, which can include mixed numbers or vulgar fractions (thanks to [numeric-quantity](https://www.npmjs.com/package/numeric-quantity)), into an array of recipe ingredient objects with the following signature:

In the browser, all exports including the `parseIngredient` function are available on the global object `ParseIngredient`. (Remember to first include `numeric-quantity`.)
In the browser, all exports including the `parseIngredient` function are available on the global object `ParseIngredient`.
```html
<script src="https://unpkg.com/numeric-quantity"></script>
<script src="https://unpkg.com/parse-ingredient"></script>

@@ -219,1 +219,32 @@ <script>

| `UnitOfMeasureDefinitions` | `type` | Object with keys representing a `unitOfMeasureID` and values of type `UnitOfMeasure` |
## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tbody>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jakeboone02"><img src="https://avatars.githubusercontent.com/u/366438?v=4?s=100" width="100px;" alt="Jake Boone"/><br /><sub><b>Jake Boone</b></sub></a><br /><a href="https://github.com/jakeboone02/parse-ingredient/commits?author=jakeboone02" title="Code">💻</a> <a href="https://github.com/jakeboone02/parse-ingredient/commits?author=jakeboone02" title="Documentation">📖</a> <a href="#example-jakeboone02" title="Examples">💡</a> <a href="#maintenance-jakeboone02" title="Maintenance">🚧</a> <a href="https://github.com/jakeboone02/parse-ingredient/commits?author=jakeboone02" title="Tests">⚠️</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://studioterabyte.nl/"><img src="https://avatars.githubusercontent.com/u/25407622?v=4?s=100" width="100px;" alt="Stefan van der Weide"/><br /><sub><b>Stefan van der Weide</b></sub></a><br /><a href="https://github.com/jakeboone02/parse-ingredient/commits?author=StefanVDWeide" title="Code">💻</a> <a href="https://github.com/jakeboone02/parse-ingredient/commits?author=StefanVDWeide" title="Tests">⚠️</a></td>
</tr>
</tbody>
</table>
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
<!-- prettier-ignore-start -->
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[badge-all-contributors]: https://img.shields.io/badge/all_contributors-2-orange.svg
<!-- ALL-CONTRIBUTORS-BADGE:END -->
<!-- prettier-ignore-end -->
[badge-npm]: https://img.shields.io/npm/v/parse-ingredient.svg?cacheSeconds=3600&logo=npm
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc