-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated to Node 8 * Rewrote in Typescript * Calling the library as a function has been removed in favor of `csv.parse`. * `csv()` change to `csv.parse()` * Deprecated `fromString` in favor of `parseString` * `csv.fromString()` change to `csv.parseString()` * Deprecated `fromStream` in favor of `parseStream`a * `csv.fromStream()` change to `csv.parseStream()` * Deprecated`fromPath` in favor of `parseFile` * `csv.fromPath()` change to `csv.parseFile()` # Conflicts: # .travis.yml # Gruntfile.js # History.md # lib/formatter/formatter.js # lib/formatter/formatter_stream.js # package-lock.json # package.json
- Loading branch information
1 parent
d4e33a2
commit 011c960
Showing
218 changed files
with
352,488 additions
and
1,208,908 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,46 @@ | ||
module.exports = { | ||
parser: "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
}, | ||
plugins: ["@typescript-eslint"], | ||
extends: ["airbnb-base", "plugin:@typescript-eslint/recommended"], | ||
env: { | ||
node: true, | ||
mocha: true, | ||
}, | ||
settings:{ | ||
"import/resolver": { | ||
node: { | ||
extensions: [".ts"] | ||
} | ||
} | ||
}, | ||
globals: { | ||
NodeJS: 'readonly', | ||
}, | ||
rules: { | ||
"indent": [ | ||
"error", | ||
4 | ||
], | ||
"comma-dangle": ["error", { | ||
"arrays": "always-multiline", | ||
"objects": "always-multiline", | ||
"imports": "always-multiline", | ||
"exports": "always-multiline", | ||
"functions": "never" | ||
}], | ||
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"], | ||
"object-curly-spacing": ["error", "always"], | ||
"array-bracket-spacing": ["error", "always"], | ||
"no-underscore-dangle": 0, | ||
"max-len": ["error", 150, 2, { | ||
ignoreComments: false, | ||
ignoreUrls: true, | ||
ignoreRegExpLiterals: true, | ||
ignoreStrings: true, | ||
ignoreTemplateLiterals: true, | ||
}] | ||
}, | ||
}; |
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,30 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "[BUG]" | ||
labels: bug | ||
assignees: doug-martin, dustinsmith1024 | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Example file contents if applicable | ||
2. Example code to reproduce the issue. | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. MacOS] | ||
- OS Version [e.g. Mojave] | ||
- Node Version [e.g. 10.16.0] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: "[FEATURE]" | ||
labels: enhancement | ||
assignees: doug-martin, dustinsmith1024 | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,21 @@ | ||
### All Submissions: | ||
|
||
* [ ] Have you followed the guidelines in our Contributing document? | ||
* [ ] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/c2fo/fast-csv/pulls) for the same update/change? | ||
|
||
<!-- You can erase any parts of this template not applicable to your Pull Request. --> | ||
|
||
### New Feature Submissions: | ||
|
||
1. [ ] Have you added tests for the new feature | ||
2. [ ] Does your submission pass tests? | ||
3. [ ] Have you lint your code locally prior to submission? | ||
4. [ ] Have you updated the docs? | ||
* [ ] If you added new parsing or formatting options have you added them to the docs? | ||
* [ ] If applicable have you added an example to the parsing or formatting docs? | ||
|
||
### Changes to Core Features: | ||
|
||
* [ ] Have you added an explanation of what your changes do and why you'd like us to include them? | ||
* [ ] Have you written new tests for your core changes, as applicable? | ||
* [ ] Have you successfully ran tests with your changes locally? |
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,7 +1,8 @@ | ||
node_modules | ||
*.iml | ||
.DS_Store | ||
lib-cov | ||
.idea | ||
.grunt | ||
atlassian-ide-plugin.xml | ||
benchmark/results | ||
.nyc_output | ||
build | ||
**/tmp |
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
{ | ||
"hooks": { | ||
"pre-commit": "npm test" | ||
} | ||
} |
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 @@ | ||
module.exports = { | ||
diff: true, | ||
require: ['ts-node/register', 'source-map-support/register'], | ||
extension: ['ts', 'js'], | ||
package: './package.json', | ||
reporter: 'spec', | ||
slow: 75, | ||
timeout: 2000, | ||
recursive: true, | ||
ui: 'bdd' | ||
}; | ||
|
||
// --recursive | ||
// test/ |
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,13 +1,8 @@ | ||
benchmark | ||
test | ||
src | ||
node_modules | ||
docs | ||
docs-md | ||
support | ||
lib-cov | ||
Makefile | ||
benchmark | ||
.travis.yml | ||
Gruntfile.js | ||
History.md | ||
examples | ||
|
||
.nyc_output |
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 @@ | ||
v8.16.0 |
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,20 @@ | ||
{ | ||
"extends": "@istanbuljs/nyc-config-typescript", | ||
"all": true, | ||
"check-coverage": true, | ||
"exclude": [ | ||
"**/*.d.ts", | ||
"coverage/**", | ||
"packages/*/test/**", | ||
"test/**", | ||
"test{,-*}.ts", | ||
"**/*{.,-}{test,spec}.ts", | ||
"**/__tests__/**", | ||
"**/node_modules/**", | ||
"benchmark/**/*", | ||
"examples/**/*", | ||
"docs/**/*", | ||
".eslintrc.js", | ||
".mocharc.js" | ||
] | ||
} |
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,11 +1,7 @@ | ||
language: node_js | ||
node_js: | ||
- "4" | ||
- "5" | ||
- "6" | ||
- "7" | ||
- "8" | ||
- "node" | ||
- "10" | ||
- "stable" | ||
before_script: | ||
- npm install -g grunt-cli | ||
- "8" | ||
|
||
after_success: npm run coverage |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.