Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
basic-csv-parser
Advanced tools
lightweight (1kb gzip, no dependencies) csv string parser for the browser
lightweight (1kb gzip, no dependencies) csv string parser for the browser, validated against an applicable subset of the PapaParse test suite.
check this codesandbox
/**
* @return a csv string parser as specified by the given `config` options object
*/
export declare function getCsvParser<T = string[]>(
config?: Partial<CSV_PARSER_SPEC>
): (input: string) => T[]
export interface CSV_PARSER_SPEC {
/**
* when true, the first line is interpreted as a header (list of field names),
* in which case the parsed entries are objects
* instead of a list of field values.
* default: false
*/
header: boolean
/**
* field delimiter character,
* default: `,`
*/
delimiter: string
/**
* escape character,
* default: `"`
*/
escape: string
/**
* called for each parsed field,
* with its index in the parsed record.
* defaults to a function that unescapes the field string
*/
postprocess: (field: string, index?: number) => string
}
although this library is written in TypeScript, it may also be imported into plain JavaScript code: code editors will still benefit from the available type definition, e.g. for helpful code completion.
Copyright 2019 ZenyWay S.A.S., Stephane M. Catala
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and Limitations under the License.
FAQs
lightweight (1kb gzip, no dependencies) csv string parser for the browser
We found that basic-csv-parser 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.