Kivach
Cascading donations
Add repoPopularDonorsF.A.Q.
My repos

Footer

Subscribe to our newsletter

The latest news, articles, and resources, sent to your inbox.

DiscordTelegramTwitterMediumFacebookYouTubeGitHub

All information about repositories belongs to their owners.

More information about Kivach in the introductory article.

Built on Obyte

unwrap‑single‑prop is a tiny utility that inspects an object (or array‑like container) and, if it contains only a single property whose key matches a supplied name (commonly “default”), returns that property's value; otherwise it returns the original container unchanged. It’s aimed at JavaScript developers dealing with module imports that may be wrapped in an extra `default` property (e.g., `require(...).default`).

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of mk-pmb/unwrap-single-prop-js

Account's avatar
mk-pmb/eslint-config-nodejs-pmb
My favorite eslint rules.
Account's avatar
mk-pmb/eslint-plugin-json-light-pmb
(2022 maintenance fork) Light ESLint plugin for JSON validating
Account's avatar
eslint-community/eslint-plugin-n
Additional ESLint's rules for Node.js
Account's avatar
mk-pmb/eslint-pretty-pmb-node
Helps me invoke eslint with eslint-formatter-pretty.

Support the repos that depend on this repository

Top contributors

mk-pmb's profile
mk-pmb
3 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet
mk-pmb

mk-pmb/unwrap-single-prop-js

If your container element holds just a single property, and its key is named as you suspect it may, return just that property's value. Otherwise, return the original container. Useful for `require(…).default` situations.

JavaScript
0
0
No license