1.0.5 • Published 8 years ago

stc-replace v1.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

stc-replace

Content replace for stc, Support string & regular expression

Install

npm install stc-replace

How to use

var replace = require('stc-replace');

//string replace
stc.workflow({
  replace: {plugin: replace, include: [/\.(js|css|html)/, {type: 'tpl'}], options: {
    'xxx.com': 'yyy.com'
  }}
})

//regular replace
stc.workflow({
  replace: {plugin: replace, include: [/\.(js|css|html)/, {type: 'tpl'}], options: [
    [/www\.(com|cn)/, 'yyy.com']
  ]}
})
1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago