
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
[](https://travis-ci.org/ajobi/vue-snip)  , but you can freely switch snipping methods on a per-element basis as needed.
Each element is also immediately re-snipped when horizontally resized. This is detected via the ResizeObserver
.
npm install vue-snip
yarn add vue-snip
import Vue from 'vue'
import VueSnip from 'vue-snip'
Vue.use(VueSnip)
The most basic usage looks like this:
<template>
<p v-snip> ... </p>
</template>
Most of the time, you would probably pass in the explicit maxLines
value:
<template>
<p v-snip="3"> ... </p>
</template>
On top of that, you can pass in the snipping method
too:
<template>
<p v-snip:js="3"> ... </p>
</template>
Both of these are also reactive, so you can do even this:
<template>
<p v-snip:[method]="maxLines"> ... </p>
</template>
<script>
export default {
data () {
return {
method: 'js',
maxLines: 3
}
}
}
</script>
import Vue from 'vue'
import VueSnip from 'vue-snip'
const options = {
// your setup
}
Vue.use(VueSnip, options)
If you don't pass in any options, default options are used. Any option passed will override the default value.
Name | Default Value | Description |
---|---|---|
directiveName | 'snip' | In preparation... |
snipMethod | 'css' | In preparation... |
maxLines | 3 | In preparation... |
separators | ['. ', ', ', ' ', ''] | In preparation... |
ellipsis | '.\u200A.\u200A.' | In preparation... |
resizeObserverPolyfill | null | In preparation... |
debugMode | false | In preparation... |
TODO: Document flexbox...
TODO: Document style attribute...
FAQs
 [](http://standardjs.com) 
The npm package vue-snip receives a total of 5,014 weekly downloads. As such, vue-snip popularity was classified as popular.
We found that vue-snip 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.