@redisrupt/reva-replacer
v2.2.0
Published
Script to replace necessary mail and form fields
Downloads
2
Readme
reva-replacer
npm scripts:
npm run dev
start the app in dev mode with hot reloading enabled.
npm run autofix
attempt to autofix the code. If it cannot fix automatically will report the errors in the console
npm run eslint
run the eslint config against the code. If something fails will be reported to the console
npm run build
creates the build folder with the minimized assets
npm run test
run the tests
npm run bump-major
bumps the package json version using semver major
npm run bump-minor
bumps the package json version using semver minor
npm run bump-patch
bumps the package json version using semver patch
old README
website-external
phone format
(xxx) xxx-xxxx | "default" xxx.xxx.xxxx | "dot" xxx-xxx-xxxx | "hyphen
example
var replacerObj = {
url: 'http://***.com',
token: "***",
phoneClassName: "phone-class-name", // optional
emailClassName: "email-class-name", // optional
formClassName: "form-class-name", // optional
phoneFormat: "hyphen", // optional
}
revaReplacer.replace(replacerObj);