JS Toolbox
Various small helpers that help with everyday tasks.
Installation
yarn add @ta-interaktiv/js-toolbox
API
shareActionFactory
For the documentation, visit the shareURLFactory package site.
parseHostname
For the documentation, visit the parseHostname package site.
BrowserCheck
For the documentation, visit the browsercheck package site.
Contributing
This project hosts small functions that are repeatedly used, but don't warrant their own project. See the first function – parsing the host name, which is repeatedly used in order to be able to provide tracking, logos, etc. to different publications.
Each new script should go into a new file within src
, and export it's main
function. The index.js
then re-exports all these functions for easy
reference. See D3 modules that work in a similar way.