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-09 16:30:05 -05:00
|
|
|
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));
|
2024-10-17 10:24:18 -04:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|