# @types/init-package-json

> TypeScript definitions for init-package-json

Latest version **1.10.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/init-package-json
pnpm add @types/init-package-json
yarn add @types/init-package-json
bun add @types/init-package-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 | 1.10.3 |
| Published | 2023-11-07 |
| First published | 2018-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.10.3 (latest) — 2023-11-07
- 1.10.0 (ts2.0) — 2018-10-03
- 1.10.2 — 2023-10-18
- 1.10.1 — 2023-09-26

## README

# Installation
> `npm install --save @types/init-package-json`

# Summary
This package contains type definitions for init-package-json (https://github.com/npm/init-package-json#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/init-package-json.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/init-package-json/index.d.ts)
````ts
declare namespace init_package_json {
    interface Config {
        [key: string]: any;
        get(k: string): any;
    }

    function yes(conf: Config): boolean;
}

declare function init_package_json(
    dir: string,
    input: string,
    config: init_package_json.Config | {},
    cb: (err: any, data: any) => void,
): void;

declare function init_package_json(
    dir: string,
    input: string,
    cb: (err: any, data: any) => void,
): void;

export = init_package_json;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [Kyle Farnung](https://github.com/kfarnung).

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