New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

maml

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maml

MAML parser

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

maml

A tiny, modern, well‑tested implementation of the MAML data format for JavaScript/TypeScript.

  • Spec‑accurate parser and pretty serializer
  • Zero dependencies, ESM first
  • 100% test coverage (statements, branches, lines) verified with Vitest + v8
  • Works in Node.js, Deno, Bun and browsers
  • Significantly faster than YAML or TOML alternatives, up to 64x times
  • Only 2kB gzipped

Installation

npm install maml

Or use the prebuilt bundle maml.min.js.

Usage

Node.js, Deno, Bun

import { parse, stringify } from 'maml.js'

const data = parse(`{
  project: "MAML"
  tags: [
    "minimal"
    "readable"
  ]

  # A simple nested object
  spec: {
    version: 1
    author: "Anton Medvedev"
  }

  notes: """
This is a raw multiline string.
Keeps formatting as‑is.
"""
}`)

console.log(data.project) // "MAML"

const text = stringify({ foo: 'bar', list: [1, 2, 3] })
/*
{
  foo: "bar"
  list: [
    1
    2
    3
  ]
}
*/

Browser

<script src="maml.min.js"></script>
<script>
    const obj = MAML.parse('{ answer: 42 }')
    console.log(obj.answer)

    const text = MAML.stringify({ greeting: 'hello' })
    console.log(text)
</script>

License

MIT

Keywords

maml

FAQs

Package last updated on 25 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts