utility_package

Package contains common script features like date and string utils.

Usage no npm install needed!

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

README

script_utility_package

Motivation

Generic scripting code base.

Contents

  1. Utils.js
  2. Log.js
  3. DatePrototype.js

Utils.js

provides string operations to extract hostname, port and protocol from a URL.

Log.js

Contains methods to

  • throw an error
  • write message to system out

DatePrototype.js

Contains date prototype functions: getWeek and getWeekYear