Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
vue-font-resize
Advanced tools
Note:
vue-font-resize@0.x
only works withvue@2.x
This allows the text to automatically fit into the size of the containe, when the text content changes the size of the text automatically changes, so that the text always appears in the container.
The max(32px by default)
and min(10px by default)
can also be passed by setting to display the maximum and minimum font sizes.
When the text size is the smallest content length still exceeds the container width an ellipsis is used instead。
// Import In main.js
import { fontResize } from "vue-font-resize";
Vue.use(fontResize);
export default {
data() {return {text: "vue-font-resize"}},
template: "<div style='width: 100px;' v-font-resize="{max: 32, min: 10}"> {{ text }} </div>"
};
// Import As mixins
import { mixin as fontResize } from "vue-font-resize";
export default {
data() {return {text: "vue-font-resize"}},
template: "<div style='width: 100px;' v-font-resize> {{ text }} </div>",
mixins: [fontResize]
};
// Import As directives
import { directive as fontResize } from "vue-font-resize";
export default {
data() {return {text: "vue-font-resize"}},
template: "<div style='width: 100px;' v-font-resize> {{ text }} </div>",
directives: {fontResize: fontResize }
};
FAQs
The Font Size Adapts To The Container Width
The npm package vue-font-resize receives a total of 0 weekly downloads. As such, vue-font-resize popularity was classified as not popular.
We found that vue-font-resize demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.