mirror of
https://github.com/tribufu/sdk-js
synced 2025-06-16 18:44:18 +00:00
Merge mintaka lib
This commit is contained in:
15
src/toml/index.ts
Normal file
15
src/toml/index.ts
Normal file
@ -0,0 +1,15 @@
|
||||
// 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user