node script auto script to generate local