Skip to content

Commit

Permalink
fix: fix stringifyTOML case
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 10, 2024
1 parent 1475b7f commit a3b19b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -70,7 +70,7 @@ import {
parseYAML,
stringifyYAML,
parseTOML,
stringifyToml,
stringifyTOML,
} from "confbox";
```

Expand All @@ -83,7 +83,7 @@ const {
parseYAML,
stringifyYAML,
parseTOML,
stringifyToml,
stringifyTOML,
} = require("confbox");
```

Expand All @@ -96,7 +96,7 @@ import {
parseYAML,
stringifyYAML,
parseTOML,
stringifyToml,
stringifyTOML,
} from "https://esm.sh/confbox";
```

Expand All @@ -120,7 +120,7 @@ Converts a [TOML](https://toml.io/) string into an object.

Converts a [YAML](https://yaml.org/) string into an object.

### `stringifyToml(text)`
### `stringifyTOML(text)`

Converts a JavaScript value to a [TOML](https://toml.io/) string.

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -7,4 +7,4 @@ export type { JSONCParseError, JSONCParseOptions } from "./jsonc";
export { parseYAML, stringifyYAML } from "./yaml";
export type { parseYAMLOptions, stringifyYAMLOptions } from "./yaml";

export { parseTOML, stringifyToml } from "./toml";
export { parseTOML, stringifyTOML } from "./toml";
2 changes: 1 addition & 1 deletion src/toml.ts
Expand Up @@ -21,6 +21,6 @@ export function parseTOML<T = unknown>(text: string): T {
* @param options
* @returns The YAML string converted from the JavaScript value.
*/
export function stringifyToml<T = unknown>(text: string): T {
export function stringifyTOML<T = unknown>(text: string): T {
return stringify(text) as T;
}

0 comments on commit a3b19b3

Please sign in to comment.