Skip to content
manipulate JSON files
Branch: master
Clone or download
dependabot-bot and dependabot build(deps-dev): bump eslint from 5.15.2 to 5.15.3
Bumps [eslint](https://github.com/eslint/eslint) from 5.15.2 to 5.15.3.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](eslint/eslint@v5.15.2...v5.15.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
Latest commit 0fc8aa4 Mar 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs docs: document object projections Mar 11, 2019
flow-typed/npm style: fix flow errors Aug 31, 2018
src
website docs: document object projections Mar 11, 2019
.babelrc
.deploy-docs.sh ci: move docs deployment to a separate file Oct 26, 2018
.dockerignore docs(gh-pages): add docusaurus Oct 26, 2018
.eslintrc.js
.flowconfig build: add madge as a dev dependency Oct 26, 2018
.gitignore
.npmignore fix: unignore src/ to allow importing compiler Oct 12, 2018
.travis.yml
CONTRIBUTING.md docs: create CONTRIBUTING.md Oct 26, 2018
Dockerfile
LICENSE Create LICENSE Aug 31, 2018
README.md docs: add version badge Mar 11, 2019
_config.yml Set theme jekyll-theme-cayman Sep 28, 2018
commitlint.config.js
docker-compose.yml docs(gh-pages): add docusaurus Oct 26, 2018
jest.config.js initial commit Aug 9, 2018
package.json build(deps-dev): bump eslint from 5.15.2 to 5.15.3 Mar 19, 2019
restructure.emu docs: add examples page Mar 11, 2019
webpack.config.js build: optimize bundle Oct 7, 2018
yarn.lock

README.md

WebsiteTutorialLive demoCLI versionCompile-to-JS version


Emuto is a small language for manipulating and restructuring JSON and other data files. Emuto is inspired by jq and GraphQL

build Codecov David NPM GitHub release

Getting started

Emuto as a CLI tool

npm install -g emuto emuto-cli

Read more in the tutorial

Webpack loader for emuto

yarn add --dev emuto emuto-loader

Read more in the Webpack guide

What is emuto good for? Examples

Number of items in JSON file

curl my_file.json | emuto 'length'

Your karma on HackerNews

curl https://hacker-news.firebaseio.com/v0/user/kantord.json -s | emuto '$.karma'

See number of NPM dependencies

cat package.json | emuto -c '$.dependencies | keys | length'

List available scripts in package.json

cat package.json | emuto -c '$.scripts | keys | join " · "'

Get only the relevant data from a huge JSON file

curl https://api.github.com/repos/stedolan/jq/commits |\
emuto -c 'map ($ => $ { commit { message } committer { login } } )'

Automate the restructuring of data by creating scripts with emuto

restructure.emu

#! emuto -s

$
  | map ($ => $ { commit { message } committer { login } } )
  | map ($ => {
      "committer": $.committer.login,
      "message":   $.commit.message,
    })

Calling your script

curl https://api.github.com/repos/stedolan/jq/commits | ./restructure.emu

Contributing Guide

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.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.