Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ethereum-regex

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethereum-regex - npm Package Compare versions

Comparing version 1.1.11 to 1.1.12

26

index.d.ts
declare namespace ethereumRegex {
interface Options {
/**
Only match an exact string. By default, it matches any ETH addresses in a string. Useful with `RegExp#test()` to check if a string is an ETH address.
@default false
*/
readonly exact?: boolean;
interface Options {
/**
Only match an exact string. By default, it matches any ETH addresses in a string. Useful with `RegExp#test()` to check if a string is an ETH address.
@default false
*/
readonly exact?: boolean;
}

@@ -12,9 +12,9 @@ }

/**
Returns a regex for matching Ethereum (ETH) addresses.
@example
```
import ethereumRegex = require('ethereum-regex')
ethereumRegex().test('nodejsrocks 0x281055afc982d96fab65b3a49cac8b878184cb16')
//=> true
```
Returns a regex for matching Ethereum (ETH) addresses.
@example
```
import ethereumRegex = require('ethereum-regex')
ethereumRegex().test('nodejsrocks 0x281055afc982d96fab65b3a49cac8b878184cb16')
//=> true
```
*/

@@ -21,0 +21,0 @@ declare function ethereumRegex(options?: ethereumRegex.Options): RegExp;

{
"name": "ethereum-regex",
"version": "1.1.11",
"version": "1.1.12",
"description": "Regular expression for matching Ethereum (ETH) addresses.",

@@ -19,2 +19,5 @@ "license": "MIT",

},
"ava": {
"babel": true
},
"xo": {

@@ -33,6 +36,7 @@ "semicolon": false

"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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc