commonDataFileExtensions
This function allows you to get an array of common text file extensions with or without the dot Common formats includes: json, xml, csv, sql, db, sqlite, log, txt, yaml, yml, ini, cfg, conf, properties, env, tsv, dat, dbf, mdb, accdb, xlsx, xls, ods, parquet, avro, jsonl, ndjson. Extended formats includes: sav, dta, por, sas7bdat, xpt, rdata, rds, feather, hdf5, h5, nc, cdf, mat, pickle, pkl, msgpack, bson, cbor, protobuf, pb, arff, weka, libsvm, svmlight, tfrecord, lmdb, leveldb, rocksdb, bdb, gdbm, dbm, ndbm, qdbm, tc, tch, fdb, realm, sqlite3, db3, s3db, sl3, dump, backup, bak
Params
- settings{}TCommonFileExtensionsSettings
Settings to customize the function behavior
Return
- -Array<String>
The array of extensions
Example
import { commonDataFileExtensions } from '@blackbyte/sugar/extension';
const extensions = commonDataFileExtensions();Settings
- dotfalseboolean
If true, the dot will be added to the extension
- exclude{(‘esm’|‘cjs’)[]}Array<String>
An array of extensions to exclude
- extendedfalseboolean
If true, the extended formats will be included
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space