def resjs(url, dest='./res.js', prefix=None, node=False, min=False):
    """Generate res.js and save it"""
    meta = requests.get(url, headers={'Accept': 'application/json'}).json()
    code = generate_code(meta, prefix, node, min)
    save_file(dest, code)