@nuskin/ns-common-lib

This project contains shared common models and code between the backend and frontend.

Usage no npm install needed!

<script type="module">
  import nuskinNsCommonLib from 'https://cdn.skypack.dev/@nuskin/ns-common-lib';
</script>

README

@nuskin/ns-common-lib

This project contains shared common models and logic between the backend and frontend.

Installing

Usng npm:

npm add @nuskin/ns-common-lib

Usng yarn:

yarn add @nuskin/ns-common-lib

Example usage with CommonJS (typically used with AWS Lambdas)

const { isString } = require('@nuskin/ns-common-lib');

const value = "";
if (isString(value)) {
    // Do something
}

Example usage with ES6 (typically used with Vue/frontend)

import { isString } from '@nuskin/ns-common-lib';

const value = "";
if (isString(value)) {
    // Do something
}

Resources

License

MIT