Socket
Socket
Sign inDemoInstall

tap-yaml

Package Overview
Dependencies
1
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

tap-yaml


Version published
Maintainers
1
Created

Readme

Source

tap-yaml

Yaml handling for TAP parsers and generators

USAGE

const yaml = require('tap-yaml')

const str = yaml.stringify(someObject)
const obj = yaml.parse(someString)

This is essentially a re-export of the yaml package, with a few modifications to be more suitable for use in tap.

  1. Symbol and Function types are added, so that they don't throw. Functions aren't parsed to actual functions, though, since that's horribly unsafe, but they do parse to an empty function with a toString() that contains the original string source.
  2. An Error type is added.
  3. Binary types are implicitly allowed in a standard way.
  4. omap and set are configured to refer to Map and Set objects.

Status

This is not yet ready for prime time. Work is underway to port node-tap projects to use it, which will take a bit of time, and probably flush out a lot of bugs and issues along the way.

If you'd like to help, get in touch!

Keywords

FAQs

Last updated on 21 Mar 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc