@nuskin/ns-common-lib
v1.4.7
Published
This project contains shared common models and code between the backend and frontend.
Downloads
6,476
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-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
- https://code.tls.nuskin.io/ns-am/platform/ns-common-lib