confbox
Advanced tools
Comparing version 0.1.3 to 0.1.4
export { JSON5ParseOptions, JSON5StringifyOptions, parseJSON5 } from './json5.js'; | ||
export { JSONCParseError, JSONCParseOptions, parseJSONC } from './jsonc.js'; | ||
export { parseYAML, parseYAMLOptions, stringifyYAML, stringifyYAMLOptions } from './yaml.js'; | ||
export { parseTOML } from './toml.js'; | ||
export { parseTOML, stringifyToml } from './toml.js'; |
@@ -10,3 +10,11 @@ /** | ||
declare function parseTOML<T = unknown>(text: string): T; | ||
/** | ||
* Converts a JavaScript value to a [TOML](https://toml.io/) string. | ||
* | ||
* @param value | ||
* @param options | ||
* @returns The YAML string converted from the JavaScript value. | ||
*/ | ||
declare function stringifyToml<T = unknown>(text: string): T; | ||
export { parseTOML }; | ||
export { parseTOML, stringifyToml }; |
{ | ||
"name": "confbox", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Compact and high quality YAML, TOML, JSONC and JSON5 parsers", | ||
@@ -55,4 +55,4 @@ "keywords": [ | ||
"bench": "pnpm build && node test/bench.mjs", | ||
"lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test", | ||
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w", | ||
"lint": "eslint && prettier -c src test", | ||
"lint:fix": "eslint --fix && prettier -c src test -w", | ||
"prepack": "pnpm build", | ||
@@ -65,8 +65,8 @@ "release": "pnpm test && changelogen --release && npm publish && git push --follow-tags", | ||
"@types/js-yaml": "^4.0.9", | ||
"@types/node": "^20.11.19", | ||
"@vitest/coverage-v8": "^1.3.0", | ||
"automd": "^0.3.2", | ||
"@types/node": "^20.12.7", | ||
"@vitest/coverage-v8": "^1.4.0", | ||
"automd": "^0.3.7", | ||
"changelogen": "^0.5.5", | ||
"eslint": "^8.56.0", | ||
"eslint-config-unjs": "^0.2.1", | ||
"eslint": "^9.0.0", | ||
"eslint-config-unjs": "^0.3.0-rc.6", | ||
"jiti": "^1.21.0", | ||
@@ -81,8 +81,8 @@ "js-toml": "^1.0.0", | ||
"toml": "^3.0.0", | ||
"typescript": "^5.3.3", | ||
"typescript": "^5.4.5", | ||
"unbuild": "^2.0.0", | ||
"vitest": "^1.3.0", | ||
"yaml": "^2.3.4" | ||
"vitest": "^1.4.0", | ||
"yaml": "^2.4.1" | ||
}, | ||
"packageManager": "pnpm@8.12.1" | ||
"packageManager": "pnpm@8.15.3" | ||
} |
@@ -74,2 +74,3 @@ # confbox | ||
parseTOML, | ||
stringifyToml, | ||
} from "confbox"; | ||
@@ -87,2 +88,3 @@ ``` | ||
parseTOML, | ||
stringifyToml, | ||
} = require("confbox"); | ||
@@ -100,2 +102,3 @@ ``` | ||
parseTOML, | ||
stringifyToml, | ||
} from "https://esm.sh/confbox"; | ||
@@ -124,2 +127,6 @@ ``` | ||
### `stringifyToml(text)` | ||
Converts a JavaScript value to a [TOML](https://toml.io/) string. | ||
### `stringifyYAML(value, options?)` | ||
@@ -165,4 +172,8 @@ | ||
_🤖 auto updated with [automd](https://automd.unjs.io) (last updated: Tue Feb 20 2024)_ | ||
<<<<<<< HEAD | ||
_🤖 auto updated with [automd](https://automd.unjs.io)_ | ||
======= | ||
_🤖 auto updated with [automd](https://automd.unjs.io) (last updated: Wed Apr 10 2024)_ | ||
>>>>>>> 2db0d78 (wip) | ||
<!-- /automd --> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
245868
1391
175
2