@nuskin/ns-common-lib
v1.4.8
Published
This project contains shared common models and code between the backend and frontend.
Keywords
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-libUsng yarn:
yarn add @nuskin/ns-common-libExample 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
- https://code.tls.nuskin.io/ns-am/platform/ns-common-lib
