Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
embulk-parser-csv_guessable
Advanced tools
embulk-parser-csv_guessable (runtime)guesses and parses csv which has schema in header.
Csv file sometimes has a schema in the header. embulk-parser-csv_guessable parses such a csv by using their header as column name. This plugin is useful in case of target csv schema changes frequently.
It behaves as original csv parser when embulk-parser-csv_guessable configs(schema_file
and schema_line
) is not defined.
null
)1
)embulk-parser-csv_guessable
use this config only when schema_file
is set. If "schema_file"
isn't set, this is same as the original csv parser's columns
. (hash, default: null
)
name
test.csv (There is a schema at the first line.)
id, title, description
1, awesome-title, awesome-description
2, shoddy-title, shoddy-description
config.yml
in:
type: any file input plugin type
parser:
type: csv_guessable
schema_file: test.csv
schema_line: 1
(For explain) In case original csv parser config.yml
in:
type: any file input plugin type
parser:
type: csv
skip_header_lines: 1
columns:
- {name: id, type: string}
- {name: title, type: string}
- {name: description, type: string}
rename column name and set type Example
in:
type: any file input plugin type
parser:
type: csv_guessable
schema_file test.csv
schema_line: 1
columns:
- {value_name: 'id', name: 'number', type: long}
- {value_name: 'title', name: 'description', type: string}
- {value_name: 'status', name: 'ok?', type: string}
$ embulk gem install embulk-parser-csv_guessable
$ cd samples/sample2
$ embulk run -L ../../ config_rename.yml -l debug
$ ./gradlew gem # -t to watch change of files and rebuild continuously
$ ./gradlew test
FAQs
Unknown package
We found that embulk-parser-csv_guessable 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.