# @types/cson

> TypeScript definitions for cson

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

## Install

```sh
npm install @types/cson
pnpm add @types/cson
yarn add @types/cson
bun add @types/cson
```

## 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 | 7.20.3 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51465 |
| Maintainers | types |

## Links

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

## Recent versions

- 7.20.3 (latest) — 2023-11-07
- 7.20.1 (ts3.7) — 2021-11-02
- 7.20.0 (ts3.6) — 2021-06-08
- 0.0.31 (ts2.0) — 2017-11-10
- 7.20.2 — 2023-10-18
- 0.0.30 — 2016-09-19
- 0.0.29 — 2016-07-14
- 0.0.28-alpha — 2016-07-08
- 0.0.27-alpha — 2016-07-04
- 0.0.26-alpha — 2016-07-02
- 0.0.25-alpha — 2016-07-01
- 0.0.24-alpha — 2016-07-01
- 0.0.23-alpha — 2016-05-25
- 0.0.22-alpha — 2016-05-20
- 0.0.17-alpha — 2016-05-19
- … 1 more at https://npm.io/package/@types/cson/versions

## README

# Installation
> `npm install --save @types/cson`

# Summary
This package contains type definitions for cson (https://github.com/bevry/cson).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cson.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cson/index.d.ts)
````ts
declare class CSON {
    // Create Strings
    stringify(data: any, opts?: object, indent?: any): string;
    createCSONString(data: any, opts?: object, next?: any): string;
    createJSONString(data: any, opts?: object, next?: any): string;
    createString(data: any, opts?: object, next?: any): string;

    // Parse Strings
    parse(data: string, opts?: object, next?: any): any;
    parseCSONString(data: string, opts?: object, next?: any): any;
    parseJSONString(data: string, opts?: object, next?: any): any;
    parseCSString(data: string, opts?: object, next?: any): any;
    parseJSString(data: string, opts?: object, next?: any): any;
    parseString(data: string, opts?: object, next?: any): any;

    // Parse Files
    load(filePath: string, opts?: object, next?: any): any;
    parseCSONFile(filePath: string, opts?: object, next?: any): any;
    parseJSONFile(filePath: string, opts?: object, next?: any): any;
    parseCSFile(filePath: string, opts?: object, next?: any): any;
    parseJSFile(filePath: string, opts?: object, next?: any): any;

    // Require Files
    requireCSFile(filePath: string, opts?: object, next?: any): any;
    requireJSFile(filePath: string, opts?: object, next?: any): any;
    requireFile(filePath: string, opts?: object, next?: any): any;
}

declare const _default: CSON;

export = _default;

````

### Additional Details
 * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
 * Dependencies: none

# Credits
These definitions were written by [Sam Saint-Pettersen](https://github.com/stpettersens).

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