Advertisement
thesuhu

Nodejs Command

Nov 6th, 2020 (edited)
2,171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // lihat isi object
  2. const util = require('util')
  3. console.log(util.inspect(myObject, {showHidden: false, depth: null}))
  4. // alternative shortcut
  5. console.log(util.inspect(myObject, false, null, true /* enable colors */))
  6.  
  7. // wait timeout
  8. await new Promise(resolve => setTimeout(resolve, 5000))
  9.  
  10. // Run function in script from command line
  11. node -e require('./db').init()
  12. node -e require('./src/ftp.js').downloadftp('./remotefile/namafile.zip','d:/localfile/namafile.zip')
  13.  
  14. // sqlldr, menjalankan sqlldr dari spawn nodejs harus menggunakan versi 18.14, jika pakai 18.18 error gak bisa jalan
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement