What is it structium? β

structium is a JavaScript Library for Serialize and deserialize any data structure in any environment (browser, node, bun, deno, etc).
Usage β
Libary usage β
import { markdown } from 'structium'
const data = markdown.deserialize(`
# Example Markdown
This is an example Markdown document.
[Read more](https://structium.pigeonposse.com)`
)
console.log(data)Individual usage β
import { deserialize } from '@structium/toml'
const data = deserialize(`
name = "Alice"
age = 30
city = "New York"
[address]
street = "123 Main St"
zip = "10001"
hobbies = ["reading", "hiking", "painting"]
`)
console.log(data)CLI usage β
npx structium yaml deserialize -i https://example.com/data.yaml -o data.jsonIncluded tools β
Structium includes the following tools:
Do you want to add a new tool? Contribute
Why structium? β
The main idea of Structium is to unify all file serialization and deserialization tools into a single ecosystem, compatible with any development environment. Each Structium library will focus exclusively on these two functions: serialization and deserialization, without adding additional features. The goal is to maximize cost, size, and performance.
Therefore, if you're looking for functionality outside of this focus, Structium won't be the right solution.
The intention is for developers to find Structium a reliable, lightweight, and well-maintained source for serialization and deserialization tools.
