so-require-file-example

How to require misc files

Usage no npm install needed!

<script type="module">
  import soRequireFileExample from 'https://cdn.skypack.dev/so-require-file-example';
</script>

README

To Install

npm install so-require-file-example
// or
yarn add so-require-file-example

To Use

// somefile.js
const SoRequireFileExample = require('so-require-file-example');
SoRequireFileExample();
// Then to see results (replace 'somefile.js' with the name of your file):
// node somefile.js