Skip to content

Commit

Permalink
feat: rewrite in TS, start using named exports
Browse files Browse the repository at this point in the history
BREAKING CHANGE: previously you'd consume this program like: "import sort from ..." - now: "import {
sort } from ..."
  • Loading branch information
revelt committed Jan 2, 2021
1 parent c7b2268 commit bbeed3f
Show file tree
Hide file tree
Showing 25 changed files with 2,872 additions and 2,782 deletions.
3 changes: 2 additions & 1 deletion packages/csv-sort/.npmignore
@@ -1,4 +1,4 @@
# .... generated using www.npmjs.com/package/lect ....
# generated using codsen.com/os/lect
#
#
# __ ______ ______ ______
Expand All @@ -24,3 +24,4 @@ test
.prettierignore
rollup.config.js
testStats.md
tsconfig.json
6 changes: 3 additions & 3 deletions packages/csv-sort/README.md
Expand Up @@ -34,13 +34,13 @@ npm i csv-sort

```js
import { strict as assert } from "assert";
import cSort from "csv-sort";
import { sort } from "csv-sort";

// Sorts double-entry bookkeeping CSV's - bank statements for example
// see https://en.wikipedia.org/wiki/Double-entry_bookkeeping

assert.deepEqual(
cSort(`Acc Number,Description,Debit Amount,Credit Amount,Balance,
sort(`Acc Number,Description,Debit Amount,Credit Amount,Balance,
123456,Client #1 payment,,1000,1940
123456,Bought carpet,30,,950
123456,Bought table,10,,940
Expand Down Expand Up @@ -71,7 +71,7 @@ Please [visit codsen.com](https://codsen.com/os/csv-sort/) for a full descriptio

MIT License

Copyright (c) 2010-2020 Roy Revelt and other contributors
Copyright (c) 2010-2021 Roy Revelt and other contributors

List of [currency signs](https://github.com/bengourley/currency-symbol-map) - Copyright © 2017 Ben Gourley - see its [BSD-2-Clause disclaimer](https://opensource.org/licenses/BSD-2-Clause)

Expand Down
2 changes: 1 addition & 1 deletion packages/csv-sort/coverage/coverage-summary.json
@@ -1 +1 @@
{"total":{"lines":{"total":145,"covered":145,"skipped":0,"pct":100},"statements":{"total":154,"covered":154,"skipped":0,"pct":100},"functions":{"total":8,"covered":8,"skipped":0,"pct":100},"branches":{"total":93,"covered":93,"skipped":0,"pct":100}}}
{"total":{"lines":{"total":129,"covered":129,"skipped":0,"pct":100},"statements":{"total":144,"covered":144,"skipped":0,"pct":100},"functions":{"total":7,"covered":7,"skipped":0,"pct":100},"branches":{"total":87,"covered":87,"skipped":0,"pct":100}}}

0 comments on commit bbeed3f

Please sign in to comment.