Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-yaml-parser

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-yaml-parser

A yaml parser which converts yaml to ast.

  • 0.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
501
increased by1.42%
Maintainers
1
Weekly downloads
 
Created
Source

yaml-parser

A yaml parser which converts yaml file to ast. It is very similar to JS-YAML/YAML-AST-PARSER which supports parsing of YAML into AST with some additional features:

  • trying to correct errors during parsing, eg the yaml foo:bar will be fixed as foo: bar
  • including comment/tag/colon/block start indicator/document start&end

Example

It will convert the following yaml to ast:

foo:
   key1: [1, 2]
   key2: "test"
   key3:
     - a
     - b
 
[foo] :
    [key1] :
        [-] :
          [SCALAR] 1
          [SCALAR] 2
    [key2] :
        [SCALAR] "test"
    [key3] :
        [-] :
          [SCALAR] a
          [SCALAR] b

Local Development

The whole project is written in javascript@es6, please refer to https://babeljs.io/ if you have any difficulties about babel. Use npm run build to convert them into old javascript style which may be more friendly to old node.js versions.

Keywords

FAQs

Package last updated on 16 Apr 2018

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc