litecoin-regex
Advanced tools
Comparing version 1.0.7 to 1.0.8
declare namespace litecoinRegex { | ||
interface Options { | ||
/** | ||
Only match an exact string. By default, it matches any LTC addresses in a string. Useful with `RegExp#test()` to check if a string is an LTC address. | ||
@default false | ||
*/ | ||
readonly exact?: boolean; | ||
interface Options { | ||
/** | ||
Only match an exact string. By default, it matches any LTC addresses in a string. Useful with `RegExp#test()` to check if a string is an LTC address. | ||
@default false | ||
*/ | ||
readonly exact?: boolean; | ||
} | ||
@@ -12,9 +12,9 @@ } | ||
/** | ||
Returns a regex for matching Litecoin (LTC) addresses. | ||
@example | ||
``` | ||
import litecoinRegex = require('litecoin-regex') | ||
litecoinRegex().test('nodejsrocks LQL9pVH1LsMfKwt82Y2wGhNGkrjF8vwUst'); | ||
//=> true | ||
``` | ||
Returns a regex for matching Litecoin (LTC) addresses. | ||
@example | ||
``` | ||
import litecoinRegex = require('litecoin-regex') | ||
litecoinRegex().test('nodejsrocks LQL9pVH1LsMfKwt82Y2wGhNGkrjF8vwUst'); | ||
//=> true | ||
``` | ||
*/ | ||
@@ -21,0 +21,0 @@ declare function litecoinRegex(options?: litecoinRegex.Options): RegExp; |
{ | ||
"name": "litecoin-regex", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Regular expression for matching Litecoin (LTC) addresses.", | ||
@@ -12,2 +12,5 @@ "license": "MIT", | ||
}, | ||
"ava": { | ||
"babel": true | ||
}, | ||
"engines": { | ||
@@ -30,6 +33,7 @@ "node": ">=9" | ||
"devDependencies": { | ||
"ava": "^1.2.1", | ||
"@ava/babel": "^1.0.1", | ||
"ava": "^3.5.2", | ||
"tsd": "^0.11.0", | ||
"xo": "^0.25.3" | ||
"xo": "^0.25.4" | ||
} | ||
} |
4685
4