UNPKG

zahl

Version:

Simplified wrapper for pluralize.

70 lines (50 loc) 3.76 kB
# zahl Simplified wrapper for pluralize. <a href="https://raw.githubusercontent.com/Jaid/zahl/master/license.txt"><img src="https://img.shields.io/github/license/Jaid/zahl?style=flat-square&color=success" alt="License"/></a> <a href="https://github.com/Jaid/zahl/commits"><img src="https://img.shields.io/github/commits-since/Jaid/zahl/v2.0.6?style=flat-square&logo=github&color=success" alt="Commits since v2.0.6"/></a> <a href="https://github.com/Jaid/zahl/commits"><img src="https://img.shields.io/github/last-commit/Jaid/zahl?style=flat-square&logo=github&color=red" alt="Last commit"/></a> <a href="https://github.com/Jaid/zahl/issues"><img src="https://img.shields.io/github/issues/Jaid/zahl?style=flat-square&logo=github&color=red" alt="Issues"/></a> <a href="https://npmjs.com/package/zahl"><img src="https://img.shields.io/npm/v/zahl?style=flat-square&logo=npm&label=latest%20version&color=success" alt="Latest version on npm"/></a> <a href="https://github.com/Jaid/zahl/network/dependents"><img src="https://img.shields.io/librariesio/dependents/npm/zahl?style=flat-square&logo=npm&color=red" alt="Dependents"/></a> <a href="https://npmjs.com/package/zahl"><img src="https://img.shields.io/npm/dm/zahl?style=flat-square&logo=npm&color=red" alt="Downloads"/></a> ## Installation <a href="https://npmjs.com/package/zahl"><img src="https://img.shields.io/badge/npm-zahl-C23039?style=flat-square&logo=npm" alt="zahl on npm"/></a> ```bash npm install --save zahl@^2.0.6 ``` <a href="https://yarnpkg.com/package/zahl"><img src="https://img.shields.io/badge/Yarn-zahl-2F8CB7?style=flat-square&logo=yarn&logoColor=white" alt="zahl on Yarn"/></a> ```bash yarn add zahl@^2.0.6 ``` <a href="https://jsdelivr.com/package/npm/zahl/"><img src="https://img.shields.io/badge/jsDelivr-zahl-orange?style=flat-square&logo=html5&logoColor=white" alt="zahl on jsDelivr"/></a> <a href="https://unpkg.com/browse/zahl/"><img src="https://img.shields.io/badge/UNPKG-zahl-orange?style=flat-square&logo=html5&logoColor=white" alt="zahl on UNPKG"/></a> ```html <script src="https://cdn.jsdelivr.net/npm/zahl@2.0.6/index.js"/> ``` ## Try it out Open a browser's JavaScript console and execute: ```javascript const scriptElement = document.createElement("script"); scriptElement.setAttribute("type", "text/javascript"); scriptElement.setAttribute("src", "https://cdn.jsdelivr.net/npm/zahl@2.0.6/index.js"); document.querySelector("head").appendChild(scriptElement); ``` zahl is now stored in the global variable `zahl`. The following console expression should return something other than `"undefined"`. ```javascript typeof zahl.default ``` ## License ```text MIT License Copyright © 2019, Jaid <jaid.jsx@gmail.com> (github.com/jaid) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```