
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
A helper class (Qibla) to provide you the qibla direction relative to True North based on provided coordinates
A helper class (Qibla) to provide you the qibla direction relative to True North based on provided coordinates
Install using the Node Package Manager (NPM).
$ npm install qibla
OR
$ npm install qibla --save
Import the Qibla class. Call the static function degreesFromTrueNorth() with the coordinates of the current location (lat, long). It returns the direction of Kaaba from the current location i.e. the Qibla as degrees from True North.
import {Qibla} from 'qibla';
// Returns 280 for Mumbai
let qiblaFromTrueNorth = Qibla.degreesFromTrueNorth(19.0826881, 72.6009796);
let Qibla = require('qibla').Qibla;
// Returns 280 for Mumbai
let qiblaFromTrueNorth = Qibla.degreesFromTrueNorth(19.0826881, 72.6009796);
The qibla angle returned represents the angle shown in a typical smartphone compass app. i.e. North = 0 deg, East = 90 deg, South = 180 deg, and West = 270 deg
It should be noted that the actual angle shown in a physical (non digital, non smartphone) magnetic compass would be different because it references the Magnetic North. Smartphone compasses do not have such a problem as they automatically compensate and show the angles with respect to the True North.
To build and run the tests you would need to have Node.js/NPM installed. Run the below command to check if the changes are ready to be published.
$ npm run prepare-for-publish
If the above command runs without errors then your changes are ready to go.
Make your changes in a new branch and create a merge request to be reviewed. Your changes would be merged and published at the descretion of the maintainers of this repo.
FAQs
A helper class (Qibla) to provide you the qibla direction relative to True North based on provided coordinates
We found that qibla demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.