Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Find the logarithm of any number with any base in code or with the command line.
This project uses the division property of logarithms to determine the logarithm with any base. Read more here.
import logBase from 'log-base-n'
logBase(2, 8) // returns 3
var logBase = require('log-base-n').default // this is because it is an ES6 default export
logBase(2, 8) // returns 3
If you want to contribute, implement it in TypeScript in the src/
directory. Add a test file in __tests__/
to make sure it works properly – you can just copy one of the other testing files and substitute in your sorting algorithm.
This project is licensed under the MIT License, so you're free to use it as you please with attribution and a link back to this project (though writing your own implementation would not be terribly difficult).
Written by Wilson Hobbs, 2019.
FAQs
Logarithms of any base using the change of base principle
The npm package log-base-n receives a total of 5 weekly downloads. As such, log-base-n popularity was classified as not popular.
We found that log-base-n 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
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.