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

pedash

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pedash - npm Package Compare versions

Comparing version 0.1.9 to 0.1.10

12

index.js

@@ -63,3 +63,3 @@ export function getCharCountsByKey(arr) {

if (typeof sentence !== "string") {
throw new Error("The paramater input should be string")
throw new Error("The paramater input should be a string")
}

@@ -72,3 +72,3 @@

if (typeof sentence !== "string") {
throw new Error("The paramater input should be string")
throw new Error("The paramater input should be a string")
}

@@ -78,1 +78,9 @@

}
export function stripTags(htmlString) {
if (typeof htmlString !== "string") {
throw new Error("The paramater input should be a string")
}
return htmlString.replace(/<[^>]*>/g, "")
}

2

package.json
{
"name": "pedash",
"version": "0.1.9",
"version": "0.1.10",
"description": "A lodash-like javascript helper -- for dummies",

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

@@ -103,1 +103,14 @@ ## Pedash 🌶

```
#### stripTags(htmlString: string)
```
import { stripTags } from pedash;
// Then use it whatever you like
const tags = "<p><em>Hello</em> <strong>world!</strong></p>"
console.log(stripTags(tags));
// "Hello world!"
```
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