Added fromCsv
All checks were successful
Build / Build NPM Project (push) Successful in 37s
Build / Tag Version (push) Successful in 7s
Build / Publish Documentation (push) Successful in 1m43s

This commit is contained in:
2024-11-09 16:30:05 -05:00
parent 0eab2630ad
commit 341ef37205
4 changed files with 30 additions and 8 deletions

View File

@ -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>