File: mp2j.rb

package info (click to toggle)
ruby-neovim 0.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 548 kB
  • sloc: ruby: 4,178; sh: 23; makefile: 4
file content (8 lines) | stat: -rwxr-xr-x 180 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
#!/usr/bin/env ruby
#
# Convert STDIN from MessagePack to JSON
require "json"
require "msgpack"

ARGF.binmode
MessagePack::Unpacker.new(ARGF).each { |data| print JSON.dump(data) }