![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Convert delimited files (csv, tsv, xls, etc) into other formats. Currently supported formats:
_______________
| FROM | TO: |
|-------|-------|
| tsv | tsv |
| csv | pgsql |
| xls | |
| xlsx | |
|_______|_______|
Issuing the following command:
./delimit csv pgsql /path/to/file.csv
Given the following CSV file contents:
ID,FirstName,LastName,Code,Position1,Position2,LikesCats,CatsOwned,SomethingElse
1,Trevor,Senior,00000,89.999,179.999,true,0,1.1
2,John,Smith,00000000,89.999,179.999,false,0,2.2
4,Nolan,Johnson,000000000,89.999,179.999,0,1,5.5
5,Gregg,Fuller,12345,89.999,179.999,1,0,4.4
8,Wilson,Thomas,123456789,89.999,179.999,yes,100,13.37
We end up with the following result:
set client_encoding to UTF8;
set standard_conforming_strings to on;
create table default_name (
ID integer,
FirstName text,
LastName text,
Code text,
lat numeric,
lng numeric,
LikesCats boolean,
CatsOwned integer,
SomethingElse numeric,
primary key (ID)
);
copy default_name (ID, FirstName, LastName, Code, lat, lng, LikesCats, CatsOwned, SomethingElse) from stdin;
1 Trevor Senior 00000 89.999 179.999 true 0 1.1
2 John Smith 00000000 89.999 179.999 false 0 2.2
4 Nolan Johnson 000000000 89.999 179.999 0 1 5.5
5 Gregg Fuller 12345 89.999 179.999 1 0 4.4
8 Wilson Thomas 123456789 89.999 179.999 yes 100 13.37
\.
vacuum analyze default_name;
npm install --save delimit
Optional: Use -g
to access the delimit cli script.
You also need to have Python 2 in your path along with the xlrd package to handle excel spreadsheets.
var delimit = require('delimit');
delimit.convertStream('csv', 'pgsql', 'csvFile.csv').then(function(pgsqlStream) {
pgsqlStream.pipe(process.stdout);
});
Converts one file format into another. The input data can be in the form of a file path or a stream. This function will return a stream that that contains the converted output.
Supported convertFrom
values:
'csv', 'tsv', 'json', 'xls'
Supported convertTo
values:
'tsv', 'pgsql'
options
(pass in any of these as object values)
- name (string) (default: 'default_name')
What should we name our dataset?
- appendString (string)
What String should we append to the end of our dataset name?
- prependString (string)
What String should we prepend to the beginning of our dataset name?
- headerRow (int)
What row contains header information?
- ignoreEmptyHeaders (bool)
Should we ignore columns in data with empty headers?
- forceTypes (object)
Force a type for a given column? (comma separated)
{ column_name:"boolean", another_column: "text", ... }
- ignoreTypes (array)
Ignore a specific type? For example, this would be useful if you
wanted to make a column of zero's and one's appear as an integer
type vs. a boolean type:
[ 'boolean', ... ]
- useHeaders (array)
Specify your own headers to use vs. the default ones in the
delimited file. E.g.
[ 'header_1', 'header_2', ...]
- maintainHeaders (bool) (default: false)
Maintain the original header names? This will make it so it
preserves the header names instead of automatically changing
header names based on the type discovered.
Basically do not switch to zip, lat, lng, etc.
- dataOnly (bool) (default: false) [PSQL ONLY]
Only output data SQL (no create statement)
- createOnly (bool) (default: false) [PSQL ONLY]
Only output create table SQL (no data)
- insertStatements (bool) (default: false) [PSQL ONLY]
Use insert statements instead of dump format?
For usage information
./delimit -h
npm test
mocha-as-promised must be installed.
FAQs
Convert delimited files from one format to another
We found that delimit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.