Skip to content

Commit

Permalink
feat: Add std/encoding/yaml module (#3361)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsagetlethias authored and ry committed Nov 18, 2019
1 parent a2f5bcc commit 5671d38
Show file tree
Hide file tree
Showing 41 changed files with 4,597 additions and 0 deletions.
21 changes: 21 additions & 0 deletions std/encoding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,24 @@ const obj = {
};
const tomlString = stringify(obj);
```

## YAML

YAML parser / dumper for Deno

Heavily inspired from [js-yaml]

### Example

See [`./yaml/example`](./yaml/example) folder and [js-yaml] repository.

### :warning: Limitations

- `binary` type is currently not stable
- `function`, `regexp`, and `undefined` type are currently not supported

# Basic usage

TBD

[js-yaml]: https://github.com/nodeca/js-yaml
8 changes: 8 additions & 0 deletions std/encoding/yaml.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Ported from js-yaml v3.13.1:
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.

export * from "./yaml/parse.ts";
export * from "./yaml/stringify.ts";
export * from "./yaml/schema/mod.ts";
Loading

0 comments on commit 5671d38

Please sign in to comment.