@stdlib/assert-is-uri 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +1 -1
- package/README.md +25 -2
- package/bin/cli +2 -2
- package/package.json +1 -1
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2022 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ limitations under the License.
|
|
|
20
20
|
|
|
21
21
|
# isURI
|
|
22
22
|
|
|
23
|
-
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] [![dependencies][dependencies-image]][dependencies-url]
|
|
23
|
+
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
|
|
24
24
|
|
|
25
25
|
> Test if a value is a [URI][uri].
|
|
26
26
|
|
|
@@ -193,6 +193,8 @@ npm install -g @stdlib/assert-is-uri
|
|
|
193
193
|
|
|
194
194
|
</section>
|
|
195
195
|
|
|
196
|
+
<!-- CLI usage documentation. -->
|
|
197
|
+
|
|
196
198
|
<section class="usage">
|
|
197
199
|
|
|
198
200
|
### Usage
|
|
@@ -234,6 +236,16 @@ true
|
|
|
234
236
|
|
|
235
237
|
<!-- /.cli -->
|
|
236
238
|
|
|
239
|
+
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
|
|
240
|
+
|
|
241
|
+
<section class="related">
|
|
242
|
+
|
|
243
|
+
</section>
|
|
244
|
+
|
|
245
|
+
<!-- /.related -->
|
|
246
|
+
|
|
247
|
+
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
|
|
248
|
+
|
|
237
249
|
|
|
238
250
|
<section class="main-repo" >
|
|
239
251
|
|
|
@@ -258,7 +270,7 @@ See [LICENSE][stdlib-license].
|
|
|
258
270
|
|
|
259
271
|
## Copyright
|
|
260
272
|
|
|
261
|
-
Copyright © 2016-
|
|
273
|
+
Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
262
274
|
|
|
263
275
|
</section>
|
|
264
276
|
|
|
@@ -277,9 +289,20 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
277
289
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/assert-is-uri/main.svg
|
|
278
290
|
[coverage-url]: https://codecov.io/github/stdlib-js/assert-is-uri?branch=main
|
|
279
291
|
|
|
292
|
+
<!--
|
|
293
|
+
|
|
280
294
|
[dependencies-image]: https://img.shields.io/david/stdlib-js/assert-is-uri.svg
|
|
281
295
|
[dependencies-url]: https://david-dm.org/stdlib-js/assert-is-uri/main
|
|
282
296
|
|
|
297
|
+
-->
|
|
298
|
+
|
|
299
|
+
[umd]: https://github.com/umdjs/umd
|
|
300
|
+
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
301
|
+
|
|
302
|
+
[deno-url]: https://github.com/stdlib-js/assert-is-uri/tree/deno
|
|
303
|
+
[umd-url]: https://github.com/stdlib-js/assert-is-uri/tree/umd
|
|
304
|
+
[esm-url]: https://github.com/stdlib-js/assert-is-uri/tree/esm
|
|
305
|
+
|
|
283
306
|
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
|
|
284
307
|
[chat-url]: https://gitter.im/stdlib-js/stdlib/
|
|
285
308
|
|
package/bin/cli
CHANGED
|
@@ -27,7 +27,7 @@ var readFileSync = require( '@stdlib/fs-read-file' ).sync;
|
|
|
27
27
|
var CLI = require( '@stdlib/cli-ctor' );
|
|
28
28
|
var stdin = require( '@stdlib/process-read-stdin' );
|
|
29
29
|
var stdinStream = require( '@stdlib/streams-node-stdin' );
|
|
30
|
-
var
|
|
30
|
+
var RE_EOL = require( '@stdlib/regexp-eol' ).REGEXP;
|
|
31
31
|
var isURI = require( './../lib' );
|
|
32
32
|
|
|
33
33
|
|
|
@@ -82,7 +82,7 @@ function main() {
|
|
|
82
82
|
if ( error ) {
|
|
83
83
|
return cli.error( error );
|
|
84
84
|
}
|
|
85
|
-
lines = data.toString().split(
|
|
85
|
+
lines = data.toString().split( RE_EOL );
|
|
86
86
|
for ( i = 0; i < lines.length; i++ ) {
|
|
87
87
|
console.log( isURI( lines[ i ] ) ); // eslint-disable-line no-console
|
|
88
88
|
}
|