publicize

Import an object's fields into the public scope.

Usage no npm install needed!

<script type="module">
  import publicize from 'https://cdn.skypack.dev/publicize';
</script>

README

Publicize.js

Import an object's fields into the public scope.

For example:

console.log("I wish I didn't have to write out console.log every time I wanted to log something.");

publicize(console);

log("Hey, neat! Now I don't!");

Runs in a browser or on node.js.

Licensed under the MIT License.