# ngx-json-viewer-scrolling

> JSON formatter / viewer for Angular 2/4/5/6+

Latest version **2.3.1** (published 2018-12-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install ngx-json-viewer-scrolling
pnpm add ngx-json-viewer-scrolling
yarn add ngx-json-viewer-scrolling
bun add ngx-json-viewer-scrolling
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.3.1 |
| Published | 2018-12-06 |
| First published | 2018-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 86.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vivo Xu |
| Maintainers | john.lewczyk |
| Keywords | angular, json |

## Links

- npm: https://www.npmjs.com/package/ngx-json-viewer-scrolling
- Repository: https://github.com/jlewczyk/ngx-json-viewer
- Homepage: https://github.com/jlewczyk/ngx-json-viewer#readme
- Issues: https://github.com/jlewczyk/ngx-json-viewer/issues
- npm.io page: https://npm.io/package/ngx-json-viewer-scrolling

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 2.3.1 (latest) — 2018-12-06
- 2.3.0 — 2018-12-06

## README

# ngx-json-viewer-scrolling

JSON formatter and viewer for Angular 2/4/5/6+

Live demo: https://stackblitz.com/edit/ngx-json-viewer-scrolling

## Install
```bash
# For Angular 4/5/6:
npm install ngx-json-viewer-scrolling

# For Angular 2:
npm install ngx-json-viewer-scrolling@1
```
NPM Package: https://www.npmjs.com/package/ngx-json-viewer-scrolling

## Usage

In your `app.module.ts` import `NgxJsonViewerModule` like
```js
import { NgxJsonViewerModule } from 'ngx-json-viewer';

@NgModule({
  ...,
  imports: [
    ...,
    NgxJsonViewerModule,
    ...
  ],
  ...
})
export class AppModule { }
```

In your component:
```html
<ngx-json-viewer [json]="someObject"></ngx-json-viewer>
```

To collapse all nodes at first:
```html
<ngx-json-viewer [json]="someObject" [expanded]="false"></ngx-json-viewer>
```

---
_Source: https://npm.io/package/ngx-json-viewer-scrolling · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
