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 alts from ..." - now: "import { alts } from
..."
  • Loading branch information
revelt committed Jan 6, 2021
1 parent 8c676f4 commit 63faf16
Show file tree
Hide file tree
Showing 35 changed files with 9,751 additions and 9,414 deletions.
3 changes: 2 additions & 1 deletion packages/html-img-alt/.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
6 changes: 3 additions & 3 deletions packages/html-img-alt/README.md
Expand Up @@ -34,11 +34,11 @@ npm i html-img-alt

```js
import { strict as assert } from "assert";
import alt from "dist/html-img-alt.esm";
import { alts } from "dist/html-img-alt.esm";

// string-in, string-out:
assert.equal(
alt('zzz<img src="spacer.gif" >zzz'),
alts('zzz<img src="spacer.gif" >zzz'),
'zzz<img src="spacer.gif" alt="" >zzz'
);
```
Expand All @@ -51,6 +51,6 @@ Please [visit codsen.com](https://codsen.com/os/html-img-alt/) for a full descri

MIT License

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

<img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center">
2 changes: 1 addition & 1 deletion packages/html-img-alt/coverage/coverage-summary.json
@@ -1 +1 @@
{"total":{"lines":{"total":151,"covered":151,"skipped":0,"pct":100},"statements":{"total":153,"covered":153,"skipped":0,"pct":100},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"branches":{"total":193,"covered":191,"skipped":0,"pct":98.96}}}
{"total":{"lines":{"total":151,"covered":151,"skipped":0,"pct":100},"statements":{"total":153,"covered":153,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":193,"covered":191,"skipped":0,"pct":98.96}}}

0 comments on commit 63faf16

Please sign in to comment.