Automatic migration from SQL to influxDB

hello everyone ,can you help me by giving me some ideas to write a node js script for automatic migration from sql database to influxDB
thanks.