pax_global_header00006660000000000000000000000064147535123770014530gustar00rootroot0000000000000052 comment=db45763efc30d06ba83f9a2634bed9afda3fe4ba IonicaBizau-noop6-db45763/000077500000000000000000000000001475351237700153245ustar00rootroot00000000000000IonicaBizau-noop6-db45763/.github/000077500000000000000000000000001475351237700166645ustar00rootroot00000000000000IonicaBizau-noop6-db45763/.github/FUNDING.yml000066400000000000000000000001641475351237700205020ustar00rootroot00000000000000github: ionicabizau patreon: ionicabizau open_collective: ionicabizau custom: https://www.buymeacoffee.com/h96wwchmyIonicaBizau-noop6-db45763/.gitignore000066400000000000000000000001201475351237700173050ustar00rootroot00000000000000*.swp *.swo *~ *.log node_modules *.env .DS_Store package-lock.json .bloggify/* IonicaBizau-noop6-db45763/CONTRIBUTING.md000066400000000000000000000026441475351237700175630ustar00rootroot00000000000000# 🌟 Contributing Want to contribute to this project? Great! Please read these quick steps to streamline the process and avoid unnecessary tasks. ✨ ## 💬 Discuss Changes Start by opening an issue in the repository using the [bug tracker][1]. Describe your proposed contribution or the bug you've found. If relevant, include platform info and screenshots. 🖼️ Wait for feedback before proceeding unless the fix is straightforward, like a typo. 📝 ## 🔧 Fixing Issues Fork the project and create a branch for your fix, naming it `some-great-feature` or `some-issue-fix`. Commit changes while following the [code style][2]. If the project has tests, add one. ✅ If a `package.json` or `bower.json` exists, add yourself to the `contributors` array; create it if it doesn't. 🙌 ```json { "contributors": [ "Your Name (http://your.website)" ] } ``` ## 📬 Creating a Pull Request Open a pull request and reference the initial issue (e.g., *fixes #*). Provide a clear title and consider adding visual aids for clarity. 📊 ## ⏳ Wait for Feedback Your contributions will be reviewed. If feedback is given, update your branch as needed, and the pull request will auto-update. 🔄 ## 🎉 Everyone Is Happy! Your contributions will be merged, and everyone will appreciate your effort! 😄❤️ Thanks! 🤩 [1]: /issues [2]: https://github.com/IonicaBizau/code-styleIonicaBizau-noop6-db45763/DOCUMENTATION.md000066400000000000000000000001071475351237700176550ustar00rootroot00000000000000## Documentation You can see below the API reference of this module. IonicaBizau-noop6-db45763/LICENSE000066400000000000000000000021561475351237700163350ustar00rootroot00000000000000The MIT License (MIT) Copyright (c) 2016-25 Ionică Bizău (https://ionicabizau.net) 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. IonicaBizau-noop6-db45763/README.md000066400000000000000000000111311475351237700166000ustar00rootroot00000000000000 # noop6 [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/noop6.svg)](https://www.npmjs.com/package/noop6) [![Downloads](https://img.shields.io/npm/dt/noop6.svg)](https://www.npmjs.com/package/noop6) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/@johnnyb?utm_source=github&utm_medium=button&utm_term=johnnyb&utm_campaign=github) Buy Me A Coffee > No operation as a module using an arrow function. ## :cloud: Installation ```sh # Using npm npm install --save noop6 # Using yarn yarn add noop6 ``` ## :clipboard: Example ```js const noop = require("noop6"); noop(); // Nothing happened, yay! let square = (x, cb) => { cb = cb || noop; cb(x * x); }; square(42, r => { console.log(r); // => 1764 }); // No error, even we don't send the callback function square(42); ``` ## :question: Get Help There are few ways to get help: 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question. 2. For bug reports and feature requests, open issues. :bug: 3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket: ## :yum: How to contribute Have an idea? Found a bug? See [how to contribute][contributing]. ## :sparkling_heart: Support my projects I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute (even resell it). However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it: - Starring and sharing the projects you like :rocket: - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book: - [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea: - [![Support me on Patreon][badge_patreon]][patreon]—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone). - **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6` ![](https://i.imgur.com/z6OQI95.png) Thanks! :heart: ## :dizzy: Where is this library used? If you are using this library in one of your projects, add it in this list. :sparkles: - `3abn` - `angularvezba` - `assured` - `asyncer.js` - `bloggify` - `bloggify-ajs-renderer` - `bloggify-cli` - `bloggify-js-renderer` - `bloggify-plugin-loader` - `bloggify-pug-renderer` - `bloggify-redirect` - `bloggify-renderer-ajs` - `bloggify-renderer-pug` - `bloggify-template-renderer` - `bloggify-theme-renderer` - `coindesk.js` - `construct-new` - `csv-it` - `custom-return` - `face-detectify` - `falsejs` - `fn-wrap` - `fortran` - `function-data-converter` - `function.name` - `image-parser` - `is-eq-ten-thousand` - `jsonrequest` - `lien` - `lwipify` - `markdownalint-cli2` - `nineteenify` - `nodeice` - `parrot-bot` - `pull-from-source` - `rucksack` - `tiny-json-request` - `tinyreq` - `tithe` - `tools_may_24` - `transformer` - `value-nine` ## :scroll: License [MIT][license] © [Ionică Bizău][website] [license]: /LICENSE [website]: https://ionicabizau.net [contributing]: /CONTRIBUTING.md [docs]: /DOCUMENTATION.md [badge_patreon]: https://ionicabizau.github.io/badges/patreon.svg [badge_amazon]: https://ionicabizau.github.io/badges/amazon.svg [badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg [badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg [patreon]: https://www.patreon.com/ionicabizau [amazon]: http://amzn.eu/hRo9sIZ [paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW IonicaBizau-noop6-db45763/example/000077500000000000000000000000001475351237700167575ustar00rootroot00000000000000IonicaBizau-noop6-db45763/example/index.js000066400000000000000000000004211475351237700204210ustar00rootroot00000000000000"use strict"; const noop = require("../lib"); noop(); // Nothing happened, yay! let square = (x, cb) => { cb = cb || noop; cb(x * x); }; square(42, r => { console.log(r); // => 1764 }); // No error, even we don't send the callback function square(42); IonicaBizau-noop6-db45763/lib/000077500000000000000000000000001475351237700160725ustar00rootroot00000000000000IonicaBizau-noop6-db45763/lib/index.js000066400000000000000000000000511475351237700175330ustar00rootroot00000000000000"use strict"; module.exports = () => {}; IonicaBizau-noop6-db45763/package.json000066400000000000000000000016621475351237700176170ustar00rootroot00000000000000{ "name": "noop6", "description": "No operation as a module using an arrow function.", "keywords": [ "noop6", "no", "operation", "as", "a", "module", "using", "arrow", "functions" ], "license": "MIT", "version": "1.0.10", "main": "lib/index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Ionică Bizău (https://ionicabizau.net)", "repository": { "type": "git", "url": "git+ssh://git@github.com/IonicaBizau/noop6.git" }, "bugs": { "url": "https://github.com/IonicaBizau/noop6/issues" }, "homepage": "https://github.com/IonicaBizau/noop6#readme", "files": [ "bin/", "app/", "lib/", "dist/", "src/", "scripts/", "resources/", "menu/", "cli.js", "index.js", "index.d.ts", "package-lock.json", "bloggify.js", "bloggify.json", "bloggify/" ] }