gy134340 / Tejas

get key from BIG yml file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suppose a big yml file like below:

# the simple demo here
html:
  header: hello there
  # the body
  body:
    sidePanel: 'I am the side panel'
    container: 'I am  the container'
    imglist: 
      image1: 'I am image image 1'
      image2: 'I am image image 2'
  footer: 'I am the footer'
...

after install from npm npm install find_key_from_yml,

run and pass line numbers: what_is_line test.yml 9 ,

it'll output this line's key in the yml object html.body.imglist.image1

About

get key from BIG yml file


Languages

Language:JavaScript 100.0%