# @nuskin/ns-common-lib

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

Latest version **1.4.8** (published 2025-01-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install @nuskin/ns-common-lib
pnpm add @nuskin/ns-common-lib
yarn add @nuskin/ns-common-lib
bun add @nuskin/ns-common-lib
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.8 |
| Published | 2025-01-14 |
| First published | 2020-10-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kody Crossman |
| Maintainers | nkranendonk, emoore, nuskin-cws, klau, rellenberger |

## Links

- npm: https://www.npmjs.com/package/@nuskin/ns-common-lib
- Repository: git@code.tls.nuskin.io:ns-am/utility/npm/ns-common-lib
- Homepage: https://code.tls.nuskin.io/ns-am/utility/npm/ns-common-lib/-/blob/master/README.md
- npm.io page: https://npm.io/package/@nuskin/ns-common-lib

## Recent versions

- 1.4.8 (latest) — 2025-01-14
- 1.4.7-cx24-4101.1 (prerelease) — 2023-05-29
- 1.4.7 — 2023-07-13
- 1.4.6 — 2023-05-17
- 1.4.5 — 2022-04-05
- 1.4.4 — 2022-04-05
- 1.4.3 — 2022-04-05
- 1.4.2 — 2022-03-08
- 1.4.1 — 2021-05-18
- 1.4.0 — 2021-05-12
- 1.3.0 — 2021-05-10
- 1.2.3 — 2021-04-19
- 1.2.2 — 2021-04-16
- 1.2.1 — 2021-04-16
- 1.2.0 — 2021-04-02
- … 2 more at https://npm.io/package/@nuskin/ns-common-lib/versions

## README

# @nuskin/ns-common-lib

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

## Installing

Usng npm:

```bash
npm add @nuskin/ns-common-lib
```

Usng yarn:

```bash
yarn add @nuskin/ns-common-lib
```

## Example usage with CommonJS (typically used with AWS Lambdas)

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

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

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

```js
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

## License

[MIT](https://opensource.org/licenses/MIT)

---
_Source: https://npm.io/package/@nuskin/ns-common-lib · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
