@bonitour/common-functions

Bonitour common functions

Usage no npm install needed!

<script type="module">
  import bonitourCommonFunctions from 'https://cdn.skypack.dev/@bonitour/common-functions';
</script>

README

Common functions

Common functions to be used across all projects, we use rollup to export an IIFE build

How to use

To use it, just... use it...

import { identity } from "@bonitour/common-functions";

identity(1) // returns 1

It should be added to your project already, if not, run this command

lerna add @bonitour/common-functions --scope=@bonitour/comerciantes

Documentation

It is all here

Contributing

To contribute, just create your function.js inside the src/ folder, solve the problem you want to solve, create a JSDoc for it (add the global notation to the functions you want to export to docs), export your function and import it in the index.js file, write the tests for it inside test/ and run yarn build, it will generate a new build file, as well as updating your documentation, this should in the future be done as a CI step and precommit step