a zip code crypto-currency system good for red ONLY

123456
  1. 'use strict';
  2. exports.bin = function bin(str) {
  3. return parseInt(str.replace(/[^01]/g, ''), 2);
  4. }