• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

visgl / loaders.gl / 20352515932

18 Dec 2025 09:56PM UTC coverage: 35.115% (-28.4%) from 63.485%
20352515932

push

github

web-flow
feat(loader-utils): Export is-type helpers (#3258)

1188 of 1998 branches covered (59.46%)

Branch coverage included in aggregate %.

147 of 211 new or added lines in 13 files covered. (69.67%)

30011 existing lines in 424 files now uncovered.

37457 of 108056 relevant lines covered (34.66%)

0.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

96.67
/modules/csv/src/csv-writer.ts
1
// loaders.gl
1✔
2
// SPDX-License-Identifier: MIT
1✔
3
// Copyright (c) vis.gl contributors
1✔
4

1✔
5
/* global TextEncoder */
1✔
6
import type {WriterWithEncoder, WriterOptions} from '@loaders.gl/loader-utils';
1✔
7
import type {Table, TableBatch} from '@loaders.gl/schema';
1✔
8
import {encodeTableAsCSV} from './lib/encoders/encode-csv';
1✔
9
import {CSVFormat} from './csv-format';
1✔
10

1✔
11
export type CSVWriterOptions = WriterOptions & {
1✔
12
  csv?: {
1✔
13
    useDisplayNames?: boolean;
1✔
14
  };
1✔
15
};
1✔
16

1✔
17
export const CSVWriter = {
1✔
18
  ...CSVFormat,
1✔
19
  version: 'latest',
1✔
20
  options: {
1✔
21
    csv: {
1✔
22
      useDisplayNames: false
1✔
23
    }
1✔
24
  },
1✔
25
  text: true,
1✔
26
  encode: async (table, options) =>
1✔
UNCOV
27
    new TextEncoder().encode(encodeTableAsCSV(table, options)).buffer,
×
28
  encodeTextSync: (table, options) => encodeTableAsCSV(table, options)
1✔
29
} as const satisfies WriterWithEncoder<Table, TableBatch, CSVWriterOptions>;
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc