# prisma-json-schema

> JSON schema of prisma.yml files

Latest version **0.1.3** (published 2018-10-31) · 0 weekly downloads

## Install

```sh
npm install prisma-json-schema
pnpm add prisma-json-schema
yarn add prisma-json-schema
bun add prisma-json-schema
```

## Health

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

Positive: has types; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2018-10-31 |
| First published | 2018-01-12 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Maintainers | timsuchanek |

## Links

- npm: https://www.npmjs.com/package/prisma-json-schema
- Repository: https://github.com/graphcool/prisma-json-schema
- Homepage: https://github.com/graphcool/prisma-json-schema#readme
- Issues: https://github.com/graphcool/prisma-json-schema/issues
- npm.io page: https://npm.io/package/prisma-json-schema

## Recent versions

- 0.1.3 (latest) — 2018-10-31
- 0.0.5-alpha.2 (alpha) — 2018-08-10
- 0.1.2 — 2018-09-11
- 0.1.1 — 2018-09-05
- 0.1.0 — 2018-09-05
- 0.0.6 — 2018-09-05
- 0.0.5 — 2018-09-04
- 0.0.5-alpha.1 — 2018-08-10
- 0.0.4 — 2018-04-18
- 0.0.3 — 2018-04-12
- 0.0.2 — 2018-04-12
- 0.0.1 — 2018-01-13
- 0.0.0 — 2018-01-12

## README

# prisma-json-schema

JSON schema of prisma.yml files

[![CircleCI](https://circleci.com/gh/prisma/prisma-json-schema.svg?style=shield)](https://circleci.com/gh/prisma/prisma-json-schema) [![npm version](https://badge.fury.io/js/prisma-json-schema.svg)](https://badge.fury.io/js/prisma-json-schema)

## Usage

### JSON Schema

#### As hosted URL

You can use the following URL for the current JSON schema file:

```
https://raw.githubusercontent.com/prisma/prisma-json-schema/master/src/schema.json
```

#### Import as file in Node

```js
const schema = require('prisma-json-schema/dist/schema.json')
```

#### Usage with VSCode

Add the following to your settings:

```json
{
  "yaml.schemas": {
    "https://raw.githubusercontent.com/prisma/prisma-json-schema/master/src/schema.json":
      "prisma.yml"
  }
}
```

### Typescript Definitions

```sh
yarn add prisma-json-schema
```

```ts
import { PrismaDefinition } from 'prisma-json-schema'
```

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