Socket
Socket
Sign inDemoInstall

get-clean-string

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "get-clean-string",
"version": "2.0.0",
"version": "2.0.1",
"description": "Module to clean a string removing special characters and replacing accents for asccii equivalents.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -14,3 +14,3 @@ # get-clean-string

```
## Usage
## Import

@@ -25,6 +25,15 @@ The module needs to be initialized when importing:

Then it requires only the string to be cleaned as an argument:
NOTE: Don't forget to call it '()' when importing. Otherwise the clean function will always return:
```js
[Function]
```
## Usage
The module requires only the string to be cleaned as a parameter:
```js
clean(' remove these: !@#$%^&^*&() ')

@@ -31,0 +40,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc