Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

readfilesync

const fs = require('fs')
const data =JSON.parse(fs.readFileSync('../data.json','utf8'))
let values = data.map(el =>{
    return `('${el.property}', '${el.property}')`
})
 
PREVIOUS NEXT
Tagged: #readfilesync
ADD COMMENT
Topic
Name
2+4 =