Sha256: 7340d40d75025099f7c74978599154276b30110e96a58493fdece49c5d213090

Contents?: true

Size: 247 Bytes

Versions: 26

Compression:

Stored size: 247 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'json'

values = ARGV

STDIN.each_line do |line|
  words  = line.split(' ')
  object = {}
  values.each_with_index do |value, index|
    object[value] = words[index]
  end
  puts object.to_json
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ix-cli-0.0.6 bin/ix-text-to-json
ix-cli-0.0.5 bin/ix-text-to-json
ix-cli-0.0.4 bin/ix-text-to-json
ix-cli-0.0.3 bin/ix-text-to-json
ix-cli-0.0.2 bin/ix-text-to-json
ix-cli-0.0.1 bin/ix-text-to-json