# @types/resx

> TypeScript definitions for resx

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

## Install

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

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2023-11-07 |
| First published | 2020-12-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | types |

## Links

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

## Recent versions

- 2.0.3 (latest) — 2023-11-07
- 2.0.1 (ts3.6) — 2021-07-08
- 2.0.0 (ts3.3) — 2020-12-14
- 2.0.2 — 2023-10-18

## README

# Installation
> `npm install --save @types/resx`

# Summary
This package contains type definitions for resx (http://locize.com).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/resx.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/resx/index.d.ts)
````ts
export interface ObjectOfStrings {
    [key: string]: string;
}

export interface Js2ResxOptions {
    pretty?: boolean | undefined;
    indent?: string | undefined;
    newline?: string | undefined;
}

// resx2js: promise version
export function resx2js(str: string, withComments?: boolean): Promise<ObjectOfStrings>;

// resx2js: callback version
export function resx2js(str: string, cb: (error: Error, result: ObjectOfStrings) => void): void;

// resx2js: callback version with option
export function resx2js(str: string, withComments: boolean, cb: (error: Error, result: ObjectOfStrings) => void): void;

// js2resx: promise version
export function js2resx(resources: ObjectOfStrings, opt?: Js2ResxOptions): Promise<string>;

// js2resx: callback version
export function js2resx(resources: ObjectOfStrings, cb: (error: Error, result: string) => void): void;

// js2resx: callback version with options
export function js2resx(
    resources: ObjectOfStrings,
    opt: Js2ResxOptions,
    cb: (error: Error, result: string) => void,
): void;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Daniel Sousa](https://github.com/danielb7390).

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