mirror of
https://github.com/tribufu/sdk-js
synced 2025-06-16 02:34:19 +00:00
16 lines
332 B
TypeScript
16 lines
332 B
TypeScript
// Copyright (c) Tribufu. All Rights Reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import toml from "toml";
|
|
|
|
export class TomlSerializer {
|
|
/**
|
|
* Parse toml string to object.
|
|
* @param toml
|
|
* @returns {any}
|
|
*/
|
|
public static fromString(tomlString: string): any {
|
|
return toml.parse(tomlString);
|
|
}
|
|
}
|