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 like: "import collapse from ..." - now: "import { collapse
} from ..."
  • Loading branch information
revelt committed Dec 28, 2020
1 parent 7de8464 commit 70f7388
Show file tree
Hide file tree
Showing 30 changed files with 3,892 additions and 3,325 deletions.
3 changes: 2 additions & 1 deletion packages/string-collapse-white-space/.npmignore
@@ -1,4 +1,4 @@
# .... generated using www.npmjs.com/package/lect ....
# generated using codsen.com/os/lect
#
#
# __ ______ ______ ______
Expand All @@ -23,3 +23,4 @@ test
.prettierignore
rollup.config.js
testStats.md
tsconfig.json
2 changes: 1 addition & 1 deletion packages/string-collapse-white-space/README.md
Expand Up @@ -34,7 +34,7 @@ npm i string-collapse-white-space

```js
import { strict as assert } from "assert";
import collapse from "string-collapse-white-space";
import { collapse } from "string-collapse-white-space";

assert.equal(
collapse(" aaa bbb ccc dddd ").result,
Expand Down
@@ -1 +1 @@
{"total":{"lines":{"total":104,"covered":104,"skipped":0,"pct":100},"statements":{"total":106,"covered":106,"skipped":0,"pct":100},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"branches":{"total":180,"covered":180,"skipped":0,"pct":100}}}
{"total":{"lines":{"total":103,"covered":102,"skipped":0,"pct":99.03},"statements":{"total":105,"covered":104,"skipped":0,"pct":99.05},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":190,"covered":187,"skipped":0,"pct":98.42}}}

0 comments on commit 70f7388

Please sign in to comment.