🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

htmlstrrep

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmlstrrep - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+33
README.md
# againCash for xhr web cash
### againCash install
```bash
npm install againcash --save-dev
```
### againCash for ES6
```js
import HtmlStrRep from 'htmlstrrep'
const strRep = new HtmlStrRep()
/*
* str: Origin string (原始字符串)
* sFrom: will be repalce this string (被替换的字符串)
* sTo: sFrom => sTo
* */
let endStr = strRep.startRep(str, sFrom, sTo)
console.log(endStr)
// for example
let newStr = strRep.startRep('<div><a href="www.hansin.com">hansin</a><div>hansinhu</div></div>', 'han', '<span style="color: red;">han<span>')
console.log(newStr)
```
### update:
```js
npm login
// 用户名:hansin
// 密码:****
// 邮箱:hansincn@gmail.com
npm version patch
npm publish
```
+1
-1
{
"name": "htmlstrrep",
"version": "1.0.0",
"version": "1.0.1",
"description": "replace string for html",

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