snce-frontend-utils

Common JS functions

Usage no npm install needed!

<script type="module">
  import snceFrontendUtils from 'https://cdn.skypack.dev/snce-frontend-utils';
</script>

README

Snce Frontend Utils

JS common functions to be used in frontend repo.

js-standard-style

Installation

Using npm:

$ npm i snce-frontend-utils

Usage

const snceUtils = require('snce-frontend-utils');

Functions available

  • GTM DataLayer functions (see DATALAYER.md)
  • Closest returns closest related DOM element with CSS class given. let itemFounded = _closest(DOMitem, 'classname');

Publish new version

For publishing new version see DEPLOY.md.