@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)) {
}
Example usage with ES6 (typically used with Vue/frontend)
import { isString } from '@nuskin/ns-common-lib';
const value = "";
if (isString(value)) {
}
Resources
License
MIT