Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ console.log(toml)

Alternatively, if you prefer something similar to the JSON global, you can import the library as follows
```js
import TOML from 'smol-toml'
import * as TOML from 'smol-toml'

TOML.stringify({ ... })
```
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ import { TomlDate } from './date.js'
import { TomlError } from './error.js'

export type { TomlValue, TomlTable, TomlValueWithoutBigInt, TomlTableWithoutBigInt } from './util.js'
export default { parse, stringify, TomlDate, TomlError }
export { parse, stringify, TomlDate, TomlError }

/** @deprecated import * as TOML from "smol-toml" */
export default { parse, stringify, TomlDate, TomlError }
export type {
/** @deprecated use TomlValue instead */
TomlValue as TomlPrimitive
Expand Down
Loading