Giter VIP home page Giter VIP logo

jku's People

Contributors

bjorne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

rejeep

jku's Issues

Access nested structures in a better way

Accessing a hash within a hash is very cumbersome as it requires many safeguards to be placed to avoid jku from crashing if an object doesn't exist. See this example

(_.connections && _.connections.length && _.connections.reduce(function(m, c){ return (c.scope == "burt.beacon" && (c.name == "customer_id_type_1" || c.name == "customer_id_type_2")) ? "logged-in" : m }, "") || "not-logged-in")

it would be nice if this could be written something like:

_.connections[?(@.scope=="burt.beacon" && @.name==/(customer_id_type_1|customer_id_type_2)/)] ? "logged-in" : "not-logged-in"

Allow invocation of external commands on specific column

given that the program "decorate" exists, accepting 2 args - type of data to decorate and key, example being decorate day_of_week 1399248007040, it would ROCK if I could write the following:

jku -t '[_.timestamp, decorate(day_of_week, _.timestamp)]'

and get the output:

1399248007040\tMonday

if the shell command returns non-zero exit code, jku should abort

Feature request: Only include certain attributes

Hello mr. Bjorn.

It's not in my nature to ask other people for favors (unless sexual), but I'm too lazy in this case.

I would like an option that works similar to transformers. The option takes one or more arguments and will for each JSON line, only include attributes that are specified as arguments to the option. For example:

{"one": "lorem", "two": "ipsum",     "three": "dolor"}
{"one": "amet",  "two": "consequat", "three": "tortor"}
{"one": "quis",  "two": "fermentum", "three": "magna"}

Running this:

$ cat ABOVE-FILE | jku --some-option one three

Would produce this:

{"one": "lorem", "three": "dolor"}
{"one": "amet",  "three": "tortor"}
{"one": "quis",  "three": "magna"}

Could you please implement this for me sugar?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.