update, text, response
This commit is contained in:
17
node_modules/strnum/README.md
generated
vendored
17
node_modules/strnum/README.md
generated
vendored
@@ -1,6 +1,16 @@
|
||||
# strnum
|
||||
Parse string into Number based on configuration
|
||||
|
||||
## Users
|
||||
|
||||
<a href="https://github.com/aws-amplify" target="_blank"><img src="https://avatars.githubusercontent.com/u/41077760?s=100&v=4"></a>
|
||||
<a href="https://github.com/astrapay" target="_blank"><img src="https://avatars.githubusercontent.com/u/90901882?s=100&v=4"></a>
|
||||
<a href="https://github.com/process-analytics" target="_blank"><img src="https://avatars.githubusercontent.com/u/60110287?s=100&v=4"></a>
|
||||
<a href="https://github.com/NaturalIntelligence" target="_blank"><img src="https://avatars.githubusercontent.com/u/16322633?s=100&v=4"></a>
|
||||
Many React Native projects and plugins
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
npm install strnum
|
||||
```
|
||||
@@ -80,7 +90,8 @@ toNumber("+1212121212", { skipLike: /\+[0-9]{10}/} )); //"+1212121212"
|
||||
|
||||
Supported Options
|
||||
```js
|
||||
hex : true, //when hexadecimal string should be parsed
|
||||
hex: true, //when hexadecimal string should be parsed
|
||||
leadingZeros: true, //when number with leading zeros like 08 should be parsed. 0.0 is not impacted
|
||||
eNotation: true //when number with eNotation or number parsed in eNotation should be considered
|
||||
```
|
||||
eNotation: true, //when number with eNotation or number parsed in eNotation should be considered
|
||||
skipLike: /regex/ //when string should not be parsed when it matches the specified regular expression
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user