1.4.7 • Published 10 months ago

@nuskin/ns-common-lib v1.4.7

Weekly downloads
313
License
ISC
Repository
-
Last release
10 months ago

@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