Sha256: ac5438cdbf3a11cc181f31e199eeaabd509484348935f2727639f37a24ce2c83
Contents?: true
Size: 722 Bytes
Versions: 100
Compression:
Stored size: 722 Bytes
Contents
(grep -P '^\s*(?:([$_a-zA-Z0-9]+ = )|(?:ifffffffffff \((.+)\)))' script.js | \ t "i.strip.split.select {|i| i!='if'}.first.gsub(/[^_a-zA-Z0-9]/, '') + '=false'" | \ sort | uniq | ruby -e \ "m=STDIN.read.strip.split.sort{|m, k| m.length<=>k.length}.join(44.chr); warn m; puts '/* LICENSED UNDER 0BSD rubygems.org/gems/democracy */ const ask = (function(' + m + '){ function debug() { console.log('+m.split(/=false,?/).map { |i| [i, i].join(':') }.join(',').prepend('{') + '}) } ' + 10.chr" ; \ \ cat script.js | squeeze 1 1; echo '})();') | \ sponge script.js node --check script #prettier script.js -w||exit 1 # # || exit; google-chrome index.html script.js
Version data entries
100 entries across 49 versions & 6 rubygems