Added fromCsv
This commit is contained in:
@ -6,9 +6,14 @@
|
||||
</head>
|
||||
<body>
|
||||
<script type="module">
|
||||
import {toCsv} from './dist/index.mjs';
|
||||
import {fromCsv, toCsv} from './dist/index.mjs';
|
||||
|
||||
console.log(toCsv([{test:123, test2: {test: [1, 2, 3, 4], test3: true, test4: 'okay'}}]));
|
||||
const csv = '' +
|
||||
'_id,any,boolean,date,file,foreignKey,formula,javaScript,number,string,_createdBy,_createdDate,_updatedBy,_updatedDate\n' +
|
||||
'48,,,,,,,,,,system,2024-11-09T19:05:04.932Z,system,2024-11-09T19:05:04.932Z\n' +
|
||||
'49,,,,,,,,,,system,2024-11-09T19:05:04.933Z,system,2024-11-09T19:05:04.933Z';
|
||||
|
||||
console.log(fromCsv(csv));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user