Sha256: 31cdc80f76d701f5c923c2f3af376fa79d63072becd954f56cec0e5787188ce5

Contents?: true

Size: 174 Bytes

Versions: 26

Compression:

Stored size: 174 Bytes

Contents

#!/usr/bin/env ruby

STDIN.each_line do |line|
  line = line.chomp
  line.gsub!(/\W+/, ' ')
  line.gsub!(/\s+/, '-')
  line.gsub!(/^[-]+|[-]+$/, '')
  puts line.downcase
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ix-cli-0.0.27 bin/ix-hyphen
ix-cli-0.0.26 bin/ix-hyphen
ix-cli-0.0.25 bin/ix-hyphen
ix-cli-0.0.24 bin/ix-hyphen
ix-cli-0.0.23 bin/ix-hyphen
ix-cli-0.0.22 bin/ix-hyphen
ix-cli-0.0.21 bin/ix-hyphen
ix-cli-0.0.20 bin/ix-hyphen
ix-cli-0.0.19 bin/ix-hyphen
ix-cli-0.0.18 bin/ix-hyphen
ix-cli-0.0.17 bin/ix-hyphen
ix-cli-0.0.16 bin/ix-hyphen
ix-cli-0.0.15 bin/ix-hyphen
ix-cli-0.0.14 bin/ix-hyphen
ix-cli-0.0.13 bin/ix-hyphen
ix-cli-0.0.12 bin/ix-hyphen
ix-cli-0.0.11 bin/ix-hyphen
ix-cli-0.0.10 bin/ix-hyphen
ix-cli-0.0.9 bin/ix-hyphen
ix-cli-0.0.7 bin/ix-hyphen