-
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: add metadata, update package, use eslint+standard * chore: update pre-commit hook * refactor: update linting for node 6+ * chore: make bench a script * refactor: make benchmarks a bin, add style * fix: index linting without breaking tests * fix: bench bin should accept file input * docs: spruce up the README * chore: reorg binaries * chore: add repo labels json * refactor: Use RangeError (#73) * Set error name to SyntaxError * chore: use RangeError * test: use RangeError * chore: var -> const * docs: add --remove to readme * chore: update bug template * chore: update mod template * test: migrate to ava, snapshots * refactor: ES6 all the things * feat: add skipLines option (#64) * skips setting header row unti a specified string is found in the cells * only emit(this._Row, cells) if it's not the first row * update README to show skipUntil option * update README to show skipUntil option * update README.md [remove extra comma] * fix tests * skipUntil skips setting headers until line number is reached * update readme to show that skipUntil takes a line number int * remove extra blank line * change name of skipUntil opt to skipLines * add cli flags for skipLines * remove extra blank line in junk_rows.csv * update README.md with CLI flag for skipLines * chore: alphabetize option in README * chore: alphabetize CLI flag * chore: update flag description in CLI * zero indexed skipLines * update test to ava * fix test errors * chore: alphabetize, use string literals * feat: allow headers: false, index column names * chore: remove tape dependency * docs: add headers:false output example * chore(release): 2.0.0-beta.0 * chore: better benchmark profiling * docs: add benchmarks * chore: add files to package.json to reduce tarball size * feat: provide header, index to mapValues and mapHeaders * chore(release): 2.0.0-beta.1
- Loading branch information
1 parent
d8791d3
commit fa8ac5d
Showing
26 changed files
with
10,798 additions
and
588 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
insert_final_newline = true | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"extends": "standard", | ||
"plugins": ["import"], | ||
"rules": { | ||
"no-var": "error", | ||
"object-shorthand": ["error", "always", { "ignoreConstructors": false, "avoidQuotes": true }], | ||
"prefer-arrow-callback": ["warn", { "allowNamedFunctions": false, "allowUnboundThis": true }], | ||
"prefer-const": ["error", { "destructuring": "any", "ignoreReadBeforeAssign": true }], | ||
"prefer-destructuring": ["warn", { "array": true, "object": true }, { "enforceForRenamedProperties": false }], | ||
"prefer-numeric-literals": "error", | ||
"prefer-rest-params": "error", | ||
"prefer-spread": "error", | ||
"prefer-template": "error" | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"extensions": [".js", ".json"] | ||
} | ||
}, | ||
"import/extensions": [".js"], | ||
"import/core-modules": [], | ||
"import/ignore": ["node_modules", "\\.(coffee|scss|css|less|hbs|svg|json)$"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package-lock.json -diff | ||
* text=auto | ||
bin/* eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
## Contributing | ||
|
||
We 💛 contributions! The rules for contributing to this org are few: | ||
|
||
1. Search issues before opening a new one | ||
1. Lint and run tests locally before submitting a PR | ||
1. Adhere to the code style the project has chosen | ||
1. Fill in the required Issue and Pull Request sections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<!-- | ||
Ahoy! | ||
You're seeing this because you felt none of the other options fit the type of | ||
issue you'd like to create. Please use this opportunity to tell us about your | ||
the type of issue you were looking for, so we can try to accomodate similar | ||
issues in the future. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
name: 🐞 Bug Report | ||
about: Something went awry and you'd like to tell us about it. | ||
|
||
--- | ||
|
||
<!-- | ||
⚡️ katchow! We 💛 issues. | ||
If you remove this template, or parts of it, your issue WILL be closed. | ||
--> | ||
|
||
* Operating System: | ||
* Node Version: | ||
* NPM Version: | ||
* csv-parser Version: | ||
|
||
### Expected Behavior | ||
|
||
|
||
### Actual Behavior | ||
|
||
|
||
### How Do We Reproduce? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
name: 📚 Documentation | ||
about: Are the docs lacking or missing something? Do they need some new 🔥 hotness? Tell us here. | ||
|
||
--- | ||
|
||
<!-- | ||
⚡️ katchow! We 💛 issues. | ||
If you remove this template, or parts of it, your issue WILL be closed. | ||
--> | ||
|
||
Documentation Is: | ||
|
||
<!-- Please place an x (no spaces!) in all [ ] that apply --> | ||
|
||
- [ ] Missing | ||
- [ ] Needed | ||
- [ ] Confusing | ||
- [ ] Not Sure? | ||
|
||
### Please Explain in Detail... | ||
|
||
|
||
### Your Proposal for Changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
name: ✨ Feature Request | ||
about: Suggest an idea for this project | ||
|
||
--- | ||
|
||
<!-- | ||
⚡️ katchow! We 💛 issues. | ||
If you remove this template, or parts of it, your issue WILL be closed. | ||
--> | ||
|
||
### Feature Proposal | ||
|
||
|
||
### Feature Use Case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
name: 🔧 Modification Request | ||
about: Would you like something work differently? Have an alternative approach? This is the template for you. | ||
|
||
--- | ||
|
||
<!-- | ||
⚡️ katchow! We 💛 issues. | ||
If you remove this template, or parts of it, your issue WILL be closed. | ||
--> | ||
|
||
* Operating System: | ||
* Node Version: | ||
* NPM Version: | ||
* csv-parser Version: | ||
|
||
### Expected Behavior / Situation | ||
|
||
|
||
### Actual Behavior / Situation | ||
|
||
|
||
### Modification Proposal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!-- | ||
⚡️ katchow! We ❤️ Pull Requests! | ||
If you remove this template, or parts of it, your Pull Request WILL be closed. | ||
Please place an x (no spaces!) in all [ ] that apply | ||
--> | ||
|
||
This PR contains: | ||
|
||
- [ ] bugfix | ||
- [ ] feature | ||
- [ ] refactor | ||
- [ ] tests | ||
- [ ] documentation | ||
- [ ] metadata | ||
|
||
### Breaking Changes? | ||
|
||
- [ ] yes | ||
- [ ] no | ||
|
||
If yes, please describe the breakage. | ||
|
||
### Please Describe Your Changes | ||
|
||
<!-- | ||
Please be thorough. | ||
What existing problem does the PR solve? | ||
Does this PR resolve an issue? | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
[ | ||
{ "name": "💩 template incomplete", "color": "#4E342E" }, | ||
{ "name": "💩 template removed", "color": "#4E342E" }, | ||
|
||
{ "name": "c¹ ⋅ discussion", "color": "#1976D2" }, | ||
{ "name": "c² ⋅ feedback wanted", "color": "#F9A825" }, | ||
{ "name": "c³ ⋅ PR welcome", "color": "#1B5E20" }, | ||
{ "name": "c⁴ ⋅ need more info", "color": "#6A1B9A" }, | ||
{ "name": "c⁵ ⋅ question", "color": "#C2185B" }, | ||
{ "name": "c⁶ ⋅ request for comments", "color": "#BBDEFB" }, | ||
|
||
{ "name": "p¹ ⋅ electron", "color": "#B2DFDB" }, | ||
{ "name": "p² ⋅ linux", "color": "#B2DFDB" }, | ||
{ "name": "p³ ⋅ mac", "color": "#B2DFDB" }, | ||
{ "name": "p⁴ ⋅ windows", "color": "#B2DFDB" }, | ||
|
||
{ "name": "pr¹ 🔧 chore", "color": "#D7CCC8" }, | ||
{ "name": "pr² 🔧 docs", "color": "#D7CCC8" }, | ||
{ "name": "pr³ 🔧 feature", "color": "#D7CCC8" }, | ||
{ "name": "pr⁴ 🔧 fix", "color": "#D7CCC8" }, | ||
{ "name": "pr⁵ 🔧 performance", "color": "#D7CCC8" }, | ||
{ "name": "pr⁶ 🔧 refactor", "color": "#D7CCC8" }, | ||
{ "name": "pr⁷ 🔧 style", "color": "#D7CCC8" }, | ||
{ "name": "pr⁸ 🔧 test", "color": "#D7CCC8" }, | ||
|
||
{ "name": "s¹ 🔥🔥🔥 critical", "color": "#E53935" }, | ||
{ "name": "s² 🔥🔥 important", "color": "#FB8C00" }, | ||
{ "name": "s³ 🔥 nice to have", "color": "#FDD835" }, | ||
{ "name": "s⁴ 💧 low", "color": "#039BE5" }, | ||
{ "name": "s⁵ 💧💧 inconvenient", "color": "#c0e0f7" }, | ||
|
||
{ "name": "t¹ 🐞 bug", "color": "#F44336" }, | ||
{ "name": "t² 📚 documentation", "color": "#FDD835" }, | ||
{ "name": "t³ ✨ enhancement", "color": "#03a9f4" }, | ||
{ "name": "t⁴ ✨ feature", "color": "#8bc34A" }, | ||
{ "name": "t⁵ ⋅ regression", "color": "#0052cc" }, | ||
{ "name": "t⁶ ⋅ todo", "color": "#311B92" }, | ||
{ "name": "t⁷ ⋅ waiting on upstream", "color": "#0D47A1" }, | ||
|
||
{ "name": "v¹ ⋅ alpha", "color": "#CDDC39" }, | ||
{ "name": "v² ⋅ beta", "color": "#FFEB3B" }, | ||
{ "name": "v³ ⋅ major", "color": "#FF9800" }, | ||
{ "name": "v⁴ ⋅ minor", "color": "#FFC107" }, | ||
{ "name": "v⁵ ⋅ next", "color": "#CDDC39" }, | ||
|
||
{ "name": "x¹ ⋅ abandoned", "color": "#CFD8DC" }, | ||
{ "name": "x² ⋅ duplicate", "color": "#CFD8DC" }, | ||
{ "name": "x³ ⋅ hold", "color": "#CFD8DC" }, | ||
{ "name": "x⁴ ⋅ in progress", "color": "#4CAF50" }, | ||
{ "name": "x⁵ ⋅ invalid", "color": "#CFD8DC" }, | ||
{ "name": "x⁶ ⋅ wontfix", "color": "#CFD8DC" } | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
test/ | ||
bin/bench | ||
examples/ | ||
test/ | ||
.travis.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
language: node_js | ||
node_js: | ||
- "0.10" | ||
- 10 | ||
- 8 | ||
- 6 |
Oops, something went wrong.