
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@luanedcosta/vue-profile-picture
Advanced tools
Lightweight vue component to render the user picture or his name initials.
Lightweight vue component to render the user picture or his name initials It's easy to customize with your style and change the behavior using the properties of the component.
To install the package in your project you can type:
Once installed you can use the component as a plugin:
There's no options, so you can ignore the second parameter of Vue.use()
import VueProfilePicture from '@luanedcosta/vue-profile-picture'
Vue.use(VueProfilePicture)
Or you can import the component locally:
import { VueProfilePicture } from '@luanedcosta/vue-profile-picture'
export default {
components: { VueProfilePicture }
}
If exists an image the component will render a <img>
tag. If the user doesn't have an image his initials will appear in place of the image.
<vue-profile-picture name="Username" img="Image src"/>
The table below contains all component props.
Property | Type | Default | Required | Explanation |
---|---|---|---|---|
name | String | true | Name of the user | |
classes | String | null | false | HTML class property for the <img> tag or <div> with the initials |
styles | Object | null | false | HTML style property for the <img> tag or <div> with the initials |
noStyle | Boolean | false | false | Remove all default component classes to allow you to define your own css classes |
numOfInitials | Number | 2 | false | Number of letters that will appear with the user doesn't have image |
nameSeparator | String | white space | false | Character or string that separates each user name |
transform | Number | 1 | false | 1 = Initials uppercase; 2 = Initials lowercase; 0 = Don't transform the text |
firstName | Boolean | false | false | The component will show only the firstname initials |
lastName | Boolean | false | false | The component will show only the lastname initials |
def | String | '-' | false | If the component didn't find an image neither the user name the component will display this property value on screen |
img | String | null | false | The src for the image. The same as the src property of the <img> tag |
alt | String | null | false | The same as alt property of the <img> tag |
draggable | String | "true" | false | If true the image can be draggable |
FAQs
Lightweight vue component to render the user picture or his name initials.
The npm package @luanedcosta/vue-profile-picture receives a total of 0 weekly downloads. As such, @luanedcosta/vue-profile-picture popularity was classified as not popular.
We found that @luanedcosta/vue-profile-picture 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.