
Security News
Node.js Moves Toward Stable TypeScript Support with Amaro 1.0
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
vue-sanitize-escape
Advanced tools
Vue.js plugin for sanitizing and escaping user input to protect against XSS, SQL injection, and other security vulnerabilities.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
AI-detected possible typosquat
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
vue-sanitize |
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
A Vue.js plugin to fortify your application against common web vulnerabilities like Cross-Site Scripting (XSS), SQL Injection, and Open Redirects.
npm install vue-sanitize-escape
import Vue from 'vue';
import VueSanitizeEscape from 'vue-sanitize-escape';
// Sanitizes all inputs by default. In this case no need to use v-sanitize directive
Vue.use(VueSanitizeEscape, { sanitizeAll: true });
// sanitizeAll defaults to false
Vue.use(VueSanitizeEscape);
this.$sanitizeEscape.sanitize(userInput, type);
this.$sanitizeEscape.escape(userInput);
<input type="text" v-model="userInput" v-sanitize />
This directive will automatically sanitize the input on change. You can optionally specify the type as an argument:
<input type="number" v-model="userAge" v-sanitize:number />
Contributions are welcome! Please feel free to submit issues and pull requests.
This project is licensed under the MIT License.
FAQs
Vue.js plugin for sanitizing and escaping user input to protect against XSS, SQL injection, and other security vulnerabilities.
The npm package vue-sanitize-escape receives a total of 100 weekly downloads. As such, vue-sanitize-escape popularity was classified as not popular.
We found that vue-sanitize-escape demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.