A green approach towards the on-demand in-line generation of MNU and diazomethane in a continuous flow.