# @types/rollup-plugin-json

> TypeScript definitions for rollup-plugin-json

Latest version **3.0.7** (published 2024-03-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/rollup-plugin-json
pnpm add @types/rollup-plugin-json
yarn add @types/rollup-plugin-json
bun add @types/rollup-plugin-json
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.7 |
| Published | 2024-03-01 |
| First published | 2017-10-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/rollup-plugin-json
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rollup-plugin-json
- npm.io page: https://npm.io/package/@types/rollup-plugin-json

## Dependencies (1)

- [rollup](https://npm.io/package/rollup.md) ^0.63.4

## Recent versions

- 3.0.7 (latest) — 2024-03-01
- 3.0.6 (ts4.5) — 2023-11-07
- 3.0.3 (ts3.6) — 2021-07-08
- 3.0.2 (ts2.3) — 2019-03-20
- 2.3.1 (ts2.0) — 2018-01-17
- 3.0.5 — 2023-10-18
- 3.0.4 — 2023-09-27
- 3.0.1 — 2018-10-17
- 3.0.0 — 2018-07-28
- 2.3.0 — 2017-10-25

## README

# Installation
> `npm install --save @types/rollup-plugin-json`

# Summary
This package contains type definitions for rollup-plugin-json (https://github.com/rollup/rollup-plugin-json#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rollup-plugin-json.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rollup-plugin-json/index.d.ts)
````ts
import { Plugin } from "rollup";

declare namespace json {
    interface Options {
        /**
         *  All JSON files will be parsed by default, but you can also specifically include/exclude files
         */
        include?: string | string[] | undefined;
        exclude?: string | string[] | undefined;
        /**
         *  for tree-shaking, properties will be declared as variables, using either `var` or `const`
         *  @default false
         */
        preferConst?: boolean | undefined;
        /**
         * specify indentation for the generated default export — defaults to '\t'
         * @default '\t'
         */
        indent?: string | undefined;
    }
}

declare function json(options?: json.Options): Plugin;
export = json;

````

### Additional Details
 * Last updated: Fri, 01 Mar 2024 00:50:47 GMT
 * Dependencies: [rollup](https://npmjs.com/package/rollup)

# Credits
These definitions were written by [Andy Mockler](https://github.com/asmockler), and [Martin Hochel](https://github.com/hotell).

---
_Source: https://npm.io/package/@types/rollup-plugin-json · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
