# @ohif/static-cs-lite

> Cornerstone core lite version that runs on server side

Latest version **0.0.3** (published 2022-05-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install @ohif/static-cs-lite
pnpm add @ohif/static-cs-lite
yarn add @ohif/static-cs-lite
bun add @ohif/static-cs-lite
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2022-05-12 |
| First published | 2022-04-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14.18.1 |
| Dependencies | 4 |
| Unpacked size | 30.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Rodolfo Ladeira |
| Maintainers | sedghi, zaidsafadi, swederik, andrebot, brunoalvesdefaria, chafey, lscoder, sandrasie, evren217, dannyrb, ohif-bot, jamesapetts |
| Keywords | Cornerstone server side, DICOM |

## Links

- npm: https://www.npmjs.com/package/@ohif/static-cs-lite
- Repository: https://github.com/OHIF/static-wado
- Homepage: https://github.com/OHIF/static-wado#readme
- Issues: https://github.com/OHIF/static-wado/issues
- npm.io page: https://npm.io/package/@ohif/static-cs-lite

## Dependencies (4)

- [dcmjs](https://npm.io/package/dcmjs.md) ^0.19.6
- [jsdom](https://npm.io/package/jsdom.md) ^19.0.0
- [cornerstone-core](https://npm.io/package/cornerstone-core.md) ^2.6.1
- [jsdom-context-require](https://npm.io/package/jsdom-context-require.md) ^4.0.4

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2022-05-12
- 0.0.2 — 2022-04-04

## README

# `@ohif/static-cs-lite`

Lite and simplified version of cornerstone package which allows simulating server rendering.
It uses JSDOM to support cornerstone to use server rendering approach.
The sandbox configuration MUST be revisited for each new cornerstone integration.

## Pre-requisites
View root pre-requisites section [pre-requisites](../../README.md#pre-requisites)

## Development
View root development section [development](../../README.md#development)

## Usage

```
const staticCsLite = require('@ohif/static-cs-lite');

...
const doneCallback = (imageBuffer) => {
  // write on disk imageBuffer (thumbnail)
}
// simulate image rendering on server side
staticCsLite.simulateRendering(transferSyntaxUid,
  decodedPixelData,
  rawDataset,
  doneCallback)
```

---
_Source: https://npm.io/package/@ohif/static-cs-lite · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
