# @mnrendra/types-package

> package.json interface extended from the official and unofficial fields.

Latest version **1.0.1** (published 2025-03-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mnrendra/types-package
pnpm add @mnrendra/types-package
yarn add @mnrendra/types-package
bun add @mnrendra/types-package
```

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2025-03-03 |
| First published | 2023-07-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 71 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Muhammad Rendra |
| Maintainers | mnrendra |
| Keywords | package, json, type, types, interface, interfaces, typescript |

## Links

- npm: https://www.npmjs.com/package/@mnrendra/types-package
- Repository: https://github.com/mnrendra/types-package
- Homepage: https://github.com/mnrendra/types-package#readme
- Issues: https://github.com/mnrendra/types-package/issues
- npm.io page: https://npm.io/package/@mnrendra/types-package

## Dependencies (1)

- [@types/jest](https://npm.io/package/@types/jest.md) ^29.5.14

## 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

- 1.0.1 (latest) — 2025-03-03
- 1.0.0 — 2023-07-14

## README

# @mnrendra/types-package
`package.json` interface extended from the official and unofficial fields.

## Install
```bash
npm i -D @mnrendra/types-package
```

## Usage
```typescript
import type { Package } from '@mnrendra/types-package'

import { readFileSync } from 'fs'
import { resolve } from 'path'
import { cwd } from 'process'

const { name, version }: Package = JSON.parse(readFileSync(resolve(cwd(), 'package.json'), 'utf-8'))

console.log(name, version)
```

## Types
```typescript
import type {
  Package // `package.json` interface extended from the official and unofficial fields.
} from '@mnrendra/types-package'
```

## License
[MIT](https://github.com/mnrendra/types-package/blob/HEAD/LICENSE)

## Author
[@mnrendra](https://github.com/mnrendra)

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