Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
17 changes: 12 additions & 5 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,18 +407,25 @@ console.log(YAML.parse('foo: bar').foo)

## `MAML`

The [maml.js](https://www.npmjs.com/package/maml.js) package.
The [maml](https://www.npmjs.com/package/maml) package.

```js
const maml = `{
example: "MAML"
# Comments are supported
project: "MAML"
tags: [ "minimal", "readable" ]

# With support for comments
spec: {
version: 1
author: "Anton Medvedev"
}

notes: """
This is a multiline string.
This is a raw multiline string.
Keeps formatting as‑is.
"""
}`
console.log(MAML.parse(maml).example) // MAML
console.log(MAML.parse(maml).project) // MAML
```

## `dotenv`
Expand Down
15 changes: 9 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"jsr": "0.14.3",
"lefthook": "2.1.1",
"madge": "8.0.0",
"maml.js": "^0.0.3",
"maml": "^1.0.0",
"minimist": "1.2.8",
"node-fetch-native": "1.6.7",
"prettier": "3.8.1",
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-dts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const entries = [
'@webpod/ingrid',
'depseek',
'envapi',
'maml.js',
'maml',
], // args['external-inlines'],
},
output,
Expand Down
2 changes: 1 addition & 1 deletion src/vendor-extra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
type Options as GlobbyOptions,
} from 'globby'
import * as _yaml from 'yaml'
import * as _maml from 'maml.js'
import * as _maml from 'maml'
import * as _fs from 'fs-extra'
import _createRequire from 'create-require'
import { fetch as _nodeFetch, AbortController } from 'node-fetch-native'
Expand Down
Loading