2024-10-17 10:24:18 -04:00
|
|
|
<!Doctype html>
|
|
|
|
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>@ztimson/utils sandbox</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<script type="module">
|
2024-11-09 16:30:05 -05:00
|
|
|
import {fromCsv, toCsv} from './dist/index.mjs';
|
2024-10-17 10:24:18 -04:00
|
|
|
|
2024-11-14 22:58:24 -05:00
|
|
|
const csv = '_id,any,boolean,date,file,foreignKey,formula,javaScript,number,string,_createdBy,_createdDate,_updatedBy,_updatedDate\n' +
|
|
|
|
'34,,true,,,,,,,,system,2024-11-09T12:06:50.023Z,system,2024-11-09T17:44:42.512Z\n' +
|
|
|
|
'37,,,,,,,,,,system,2024-11-09T18:53:21.793Z,system,2024-11-09T18:53:21.793Z\n' +
|
|
|
|
'38,,,,,,,,,,system,2024-11-09T18:53:21.796Z,system,2024-11-09T18:53:21.796Z';
|
2024-11-09 16:30:05 -05:00
|
|
|
|
2024-11-14 22:58:24 -05:00
|
|
|
console.log(fromCsv(csv));
|
2024-10-17 10:24:18 -04:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|