@stdlib/assert-is-regexp-string
Advanced tools
Comparing version 0.0.9 to 0.1.0
@@ -19,3 +19,3 @@ /* | ||
// TypeScript Version: 2.0 | ||
// TypeScript Version: 4.1 | ||
@@ -48,3 +48,3 @@ /** | ||
*/ | ||
declare function isRegExpString( value: any ): boolean; | ||
declare function isRegExpString( value: any ): value is string; | ||
@@ -51,0 +51,0 @@ |
@@ -44,3 +44,3 @@ /** | ||
var isRegExpString = require( './main.js' ); | ||
var main = require( './main.js' ); | ||
@@ -50,2 +50,2 @@ | ||
module.exports = isRegExpString; | ||
module.exports = main; |
{ | ||
"name": "@stdlib/assert-is-regexp-string", | ||
"version": "0.0.9", | ||
"version": "0.1.0", | ||
"description": "Test if a value is a regular expression string.", | ||
@@ -16,5 +16,2 @@ "license": "Apache-2.0", | ||
], | ||
"bin": { | ||
"is-regexp-string": "./bin/cli" | ||
}, | ||
"main": "./lib", | ||
@@ -44,21 +41,10 @@ "directories": { | ||
"dependencies": { | ||
"@stdlib/assert-is-string": "^0.0.x", | ||
"@stdlib/cli-ctor": "^0.0.x", | ||
"@stdlib/fs-read-file": "^0.0.x", | ||
"@stdlib/process-read-stdin": "^0.0.x", | ||
"@stdlib/regexp-eol": "^0.0.x", | ||
"@stdlib/regexp-regexp": "^0.0.x", | ||
"@stdlib/streams-node-stdin": "^0.0.x" | ||
"@stdlib/assert-is-string": "^0.1.0", | ||
"@stdlib/regexp-regexp": "^0.1.0" | ||
}, | ||
"devDependencies": { | ||
"@stdlib/assert-is-boolean": "^0.0.x", | ||
"@stdlib/assert-is-browser": "^0.0.x", | ||
"@stdlib/assert-is-windows": "^0.0.x", | ||
"@stdlib/bench": "^0.0.x", | ||
"@stdlib/process-exec-path": "^0.0.x", | ||
"@stdlib/string-replace": "^0.0.x", | ||
"tape": "git+https://github.com/kgryte/tape.git#fix/globby", | ||
"proxyquire": "^2.0.0", | ||
"istanbul": "^0.4.1", | ||
"tap-spec": "5.x.x" | ||
"tap-min": "git+https://github.com/Planeshifter/tap-min.git" | ||
}, | ||
@@ -104,5 +90,5 @@ "engines": { | ||
"funding": { | ||
"type": "patreon", | ||
"url": "https://www.patreon.com/athan" | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/stdlib" | ||
} | ||
} |
@@ -21,2 +21,13 @@ <!-- | ||
<details> | ||
<summary> | ||
About stdlib... | ||
</summary> | ||
<p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p> | ||
<p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p> | ||
<p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p> | ||
<p>To join us in bringing numerical computing to the web, get started by checking us out on <a href="https://github.com/stdlib-js/stdlib">GitHub</a>, and please consider <a href="https://opencollective.com/stdlib">financially supporting stdlib</a>. We greatly appreciate your continued support!</p> | ||
</details> | ||
# isRegExpString | ||
@@ -96,63 +107,4 @@ | ||
* * * | ||
<section class="cli"> | ||
## CLI | ||
<section class="installation"> | ||
## Installation | ||
To use the module as a general utility, install the module globally | ||
```bash | ||
npm install -g @stdlib/assert-is-regexp-string | ||
``` | ||
</section> | ||
<!-- CLI usage documentation. --> | ||
<section class="usage"> | ||
### Usage | ||
```text | ||
Usage: is-regexp-string [options] [<string>] | ||
Options: | ||
-h, --help Print this message. | ||
-V, --version Print the package version. | ||
``` | ||
</section> | ||
<!-- /.usage --> | ||
<section class="examples"> | ||
### Examples | ||
```bash | ||
$ is-regexp-string '/beep/' | ||
true | ||
``` | ||
To use as a [standard stream][standard-streams], | ||
```bash | ||
$ echo -n '/beep/' | is-regexp-string | ||
true | ||
``` | ||
</section> | ||
<!-- /.examples --> | ||
</section> | ||
<!-- /.cli --> | ||
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. --> | ||
@@ -162,7 +114,6 @@ | ||
* * * | ||
## See Also | ||
- <span class="package-name">[`@stdlib/assert/is-regexp`][@stdlib/assert/is-regexp]</span><span class="delimiter">: </span><span class="description">test if a value is a regular expression.</span> | ||
- <span class="package-name">[`@stdlib/assert-is-regexp-string-cli`][@stdlib/assert-is-regexp-string-cli]</span><span class="delimiter">: </span><span class="description">CLI package for use as a command-line utility.</span> | ||
- <span class="package-name">[`@stdlib/assert-is-regexp`][@stdlib/assert/is-regexp]</span><span class="delimiter">: </span><span class="description">test if a value is a regular expression.</span> | ||
@@ -199,3 +150,3 @@ </section> | ||
Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors]. | ||
Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. | ||
@@ -210,7 +161,9 @@ </section> | ||
[@stdlib/assert-is-regexp-string-cli]: https://www.npmjs.com/package/@stdlib/assert-is-regexp-string-cli | ||
[npm-image]: http://img.shields.io/npm/v/@stdlib/assert-is-regexp-string.svg | ||
[npm-url]: https://npmjs.org/package/@stdlib/assert-is-regexp-string | ||
[test-image]: https://github.com/stdlib-js/assert-is-regexp-string/actions/workflows/test.yml/badge.svg?branch=v0.0.9 | ||
[test-url]: https://github.com/stdlib-js/assert-is-regexp-string/actions/workflows/test.yml?query=branch:v0.0.9 | ||
[test-image]: https://github.com/stdlib-js/assert-is-regexp-string/actions/workflows/test.yml/badge.svg?branch=v0.1.0 | ||
[test-url]: https://github.com/stdlib-js/assert-is-regexp-string/actions/workflows/test.yml?query=branch:v0.1.0 | ||
@@ -228,3 +181,3 @@ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/assert-is-regexp-string/main.svg | ||
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg | ||
[chat-url]: https://gitter.im/stdlib-js/stdlib/ | ||
[chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im | ||
@@ -235,2 +188,6 @@ [stdlib]: https://github.com/stdlib-js/stdlib | ||
[cli-section]: https://github.com/stdlib-js/assert-is-regexp-string#cli | ||
[cli-url]: https://github.com/stdlib-js/assert-is-regexp-string/tree/cli | ||
[@stdlib/assert-is-regexp-string]: https://github.com/stdlib-js/assert-is-regexp-string/tree/main | ||
[umd]: https://github.com/umdjs/umd | ||
@@ -248,2 +205,4 @@ [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules | ||
[mdn-regexp]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions | ||
<!-- <related-links> --> | ||
@@ -250,0 +209,0 @@ |
Sorry, the diff of this file is not supported yet
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
26964
2
4
0
11
2
149
209
+ Added@stdlib/assert-has-own-property@0.1.1(transitive)
+ Added@stdlib/assert-has-symbol-support@0.1.1(transitive)
+ Added@stdlib/assert-has-tostringtag-support@0.1.1(transitive)
+ Added@stdlib/assert-is-string@0.1.1(transitive)
+ Added@stdlib/error-tools-fmtprodmsg@0.1.1(transitive)
+ Added@stdlib/regexp-regexp@0.1.1(transitive)
+ Added@stdlib/string-base-format-interpolate@0.1.1(transitive)
+ Added@stdlib/string-base-format-tokenize@0.1.1(transitive)
+ Added@stdlib/string-format@0.1.1(transitive)
+ Added@stdlib/symbol-ctor@0.1.1(transitive)
+ Added@stdlib/types@0.1.0(transitive)
+ Added@stdlib/utils-define-nonenumerable-read-only-property@0.1.1(transitive)
+ Added@stdlib/utils-define-property@0.1.1(transitive)
+ Added@stdlib/utils-native-class@0.1.1(transitive)
- Removed@stdlib/cli-ctor@^0.0.x
- Removed@stdlib/fs-read-file@^0.0.x
- Removed@stdlib/process-read-stdin@^0.0.x
- Removed@stdlib/regexp-eol@^0.0.x
- Removed@stdlib/streams-node-stdin@^0.0.x
- Removed@stdlib/assert-has-node-buffer-support@0.0.8(transitive)
- Removed@stdlib/assert-has-own-property@0.0.7(transitive)
- Removed@stdlib/assert-has-symbol-support@0.0.8(transitive)
- Removed@stdlib/assert-has-tostringtag-support@0.0.9(transitive)
- Removed@stdlib/assert-is-array@0.0.7(transitive)
- Removed@stdlib/assert-is-boolean@0.0.8(transitive)
- Removed@stdlib/assert-is-buffer@0.0.8(transitive)
- Removed@stdlib/assert-is-function@0.0.8(transitive)
- Removed@stdlib/assert-is-object@0.0.8(transitive)
- Removed@stdlib/assert-is-object-like@0.0.8(transitive)
- Removed@stdlib/assert-is-plain-object@0.0.7(transitive)
- Removed@stdlib/assert-is-string@0.0.8(transitive)
- Removed@stdlib/assert-tools-array-function@0.0.7(transitive)
- Removed@stdlib/buffer-ctor@0.0.7(transitive)
- Removed@stdlib/buffer-from-string@0.0.8(transitive)
- Removed@stdlib/cli-ctor@0.0.3(transitive)
- Removed@stdlib/fs-read-file@0.0.8(transitive)
- Removed@stdlib/process-read-stdin@0.0.7(transitive)
- Removed@stdlib/regexp-eol@0.0.7(transitive)
- Removed@stdlib/regexp-function-name@0.0.7(transitive)
- Removed@stdlib/regexp-regexp@0.0.8(transitive)
- Removed@stdlib/streams-node-stdin@0.0.7(transitive)
- Removed@stdlib/string-base-format-interpolate@0.0.4(transitive)
- Removed@stdlib/string-base-format-tokenize@0.0.4(transitive)
- Removed@stdlib/string-format@0.0.3(transitive)
- Removed@stdlib/types@0.0.14(transitive)
- Removed@stdlib/utils-constructor-name@0.0.8(transitive)
- Removed@stdlib/utils-define-nonenumerable-read-only-property@0.0.7(transitive)
- Removed@stdlib/utils-define-property@0.0.9(transitive)
- Removed@stdlib/utils-get-prototype-of@0.0.7(transitive)
- Removed@stdlib/utils-global@0.0.7(transitive)
- Removed@stdlib/utils-native-class@0.0.8(transitive)
- Removed@stdlib/utils-next-tick@0.0.8(transitive)
- Removed@stdlib/utils-noop@0.0.14(transitive)
- Removed@stdlib/utils-type-of@0.0.8(transitive)
- Removedminimist@1.2.8(transitive)
Updated@stdlib/regexp-regexp@^0.1.0