+
Skip to content

kantord/emuto

Repository files navigation

emuto build Codecov npm bundle size (minified + gzip)

emuto is a lightweight JSON processor inspired by and nearly porting jq

The following emuto script

  [.article.title, .user.name.full_name, .user.age] | { "compressed_article_info": $}

would take an input like this:

{
  "user": {
    "name": {"nickname": "john3", "full_name": "John Doe"},
    "age": 32
  },
  "article": {"title": "Hello World"}
}

And return a result like this:

{
  "compressed_article_info": ["Hello World", "John Doe", 32]
}

Click here to try it live

Read our contributing guide to learn about our development process, how to create bugfixes and improvements, and how to build and test your changes to emuto.

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载