
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
device-orientation
Advanced tools
<device-orientation>A Web Components for detecting device orientation. Can be used with or without Polymer. Usage is exactly the same.
npm i --save device-orientation
<device-orientation></device-orientation>
<!-- For Vanilla with no modules -->
<script src="device-orientation.js"></script>
<device-orientation id="orientationEl"></device-orientation>
<p>Left Right: <span id="lr">0</span></p>
<p>Left Right: <span id="fb">0</span></p>
<p>Left Right: <span id="direction">0</span></p>
<script>
var el = document.getElementById('orientationEl');
var lr = document.getElementById('lr');
var fb = document.getElementById('fb');
var direction = document.getElementById('direction');
el.orientationChanged = function () {
lr.innerText = el.lr;
fb.innerText = el.fb;
direction.innerText = el.direction;
};
</script>
Type: Number
left to right value
Type: Number
front to back value
Type: number
direction value
FAQs
A Web Components for detecting device orientation..
We found that device-orientation 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.