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.
Lookup a reverse hostname (net.example.domain.sub.dom.ains) in a dictionary object where each level has one hostname part as the keys – or certain kinds of wildcards.
Read and parse JSON objects from standard input. They may or may not be wrapped in an array. Hoard all the objects in RAM. Return a promise for an array of all those objects.
In your template string, replace all slot (marked by a custom regexp) with string values from your dictionary object, even recursively, but avoiding loops.
Calculate a SHA-1 hex digest of short or medium length strings in node.js or a web browser (bundling required) independent of which protocol your website was loaded from.