# @nuskin/ns-contentstack-lib

> This project contains configuration, runconfig transition, and api code to access Contentstack, to be shared between the backend (AWS Lambda) and frontend (Vue, etc).

Latest version **1.1.0** (published 2021-04-01) · ISC license · 0 weekly downloads

## Install

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

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2021-04-01 |
| First published | 2021-03-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 15.1 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| Author | Kody Crossman |
| Maintainers | nkranendonk, emoore, nuskin-cws, klau, rellenberger |

## Links

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

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.19.2
- [@nuskin/ns-common-lib](https://npm.io/package/@nuskin/ns-common-lib.md) 1.1.0

## Recent versions

- 1.1.0 (latest) — 2021-04-01
- 1.0.1 — 2021-04-01
- 1.0.0 — 2021-03-31

## README

# @nuskin/ns-contentstack-lib

This project contains configuration, runconfig transition, and api code to access Contentstack, to be shared between the backend (AWS Lambda) and frontend (Vue, etc).

## Installing

Usng npm:

```bash
npm install @nuskin/ns-contentstack-lib
```

Usng yarn:

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

## Example usage

```js
const { ContentstackApi } = require('@nuskin/ns-contentstack-lib')

// WARNING: this config should come from app/user configuration
const apiKey = "<API Key>";
const deliveryToken = "<Delivery Token>";
const language = "en";

const configData = {
    apiKey: "<API Key>",
    deliveryToken: "<Delivery Token>",
    language: "en" // "en", "en-gb", etc.
};

let contentstackApi = new ContentstackApi(configData);

const entries = await contentstackApi.getEntries("market");
```

## Resources

- https://code.tls.nuskin.io/ns-am/utility/npm/ns-contentstack-lib

## License

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

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