Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@xslet/window
Advanced tools
Gets window informations and provide operations related to window.
Build this module:
$ gulp build
Load this module in a browser:
<script src="xslet.window.min.js"></script>
Use xslet.window.unitOfSize
:
xslet.window.unitOfSize = 'rem'
document.getElementById('id1').style.width = 10 + xslet.window.unitOfSize // = '10rem'
Use xslet.window.rootFontSize
:
xslet.window.rootFontSize = '3.51mm'
xslet.window.rootFontSize // => about 13 [px]
xslet.window.rootFontSize = 13 // = 13 [px]
document.getElementById('id2').style.fontSize = '2rem' // The element's font size is 26px
Use xslet.window.convertUnit
:
xslet.window.rootFontSize = 13
xslet.window.convertUnit(2, 'rem', 'px') // => 26px
The unit which used in xslet modules.
This value allowed are 'px'
, 'mm'
and 'rem'
and can be set only once.
Type: string
The font size which is assigned to the HTML element.
This value is a number and the unit of this property is 'px'
, but can be set in unit either 'px'
or 'mm'
with a string like '10px'
or '2mm'
.
Type: number
Converts value
in fromUnit
to new value in toUnit
.
The units allowed are either 'px'
, 'mm'
and 'rem'
.
Parameter:
value
.Return:
Open this page: test/web/index.html.
Copyright (C) 2016 Takayuki Sato
This program is free software under MIT License. See the file LICENSE in this distribution for more details.
FAQs
Gets window informations and provide operations related to window.
The npm package @xslet/window receives a total of 2 weekly downloads. As such, @xslet/window popularity was classified as not popular.
We found that @xslet/window 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 malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.