# @types/season

> TypeScript definitions for season

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

## Install

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

## 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 | 6.0.4 |
| Published | 2023-11-07 |
| First published | 2018-10-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

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

## Recent versions

- 6.0.4 (latest) — 2023-11-07
- 6.0.1 (ts3.6) — 2021-07-06
- 6.0.0 (ts2.0) — 2018-10-10
- 6.0.3 — 2023-10-18
- 6.0.2 — 2023-09-25

## README

# Installation
> `npm install --save @types/season`

# Summary
This package contains type definitions for season (http://atom.github.io/season).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/season.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/season/index.d.ts)
````ts
export interface ParseOptions {
    allowDuplicateKeys?: boolean | undefined;
}

/** Set the cache directory to use for storing compiled CSON files. */
export function setCacheDir(cacheDirectory: string): void;

/** Convert the object to a CSON string. */
export function stringify(object: any): string;

/** Read the CSON or JSON object at the given path and return it to the callback once it is read and parsed. */
export function readFile(objectPath: string, callback: (err: Error | null, object: any) => void): void;
export function readFile(
    objectPath: string,
    options: ParseOptions,
    callback: (err: Error | null, object: any) => void,
): void;

/** Synchronous version of `CSON.readFile(objectPath, callback)`. */
export function readFileSync(objectPath: string, options?: ParseOptions): any;

/** Write the object to the given path as either JSON or CSON depending on the path's extension. */
export function writeFile(objectPath: string, object: any, callback: (err: Error | null) => void): void;

/** Synchronous version of `CSON.writeFile(objectPath, object, callback)` */
export function writeFileSync(objectPath: string, object: any): void;

/** Is the given path a valid object path? Returns true if the path has a .json or .cson file extension, false otherwise. */
export function isObjectPath(objectPath: string): boolean;

/** Resolve the path to an existent file that has a .json or .cson extension. Returns the path to an existent CSON or JSON file or null if none found. */
export function resolve(objectPath: string): string | null;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Piotr Roszatycki](https://github.com/dex4er).

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