npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@kero76/logisticae

v0.4.0

Published

Library who contains many algorithms about mathematics, physics, electricity, etc

Downloads

121

Readme

npm version MIT license

Logisticae

Library who contains many algorithms about mathematics, physics, electricity, etc.

Algorithms founds in Logisticae

In Mathematics

  • Pythagorean Theorem and his converse.
  • Intercept Theorem also known as Thales's Theorem and his converse.
  • Euclidean algorithm to compute the Greatest Common Divisor between 2 numbers.
  • LCM algorithm to compute the Least Common Multiple between 2 numbers.
  • Implementation of an algorithm to check if a number is a prime number or not.
  • Implementation of Lucas-Lehmer algorithms to check if a number is a Mersenner number.
  • Implementation of line slope computation.

In Physics

  • An simple converter to convert distance, liter or weight unit to another one.
  • Implementations of Ohm's law to compute voltage, intensity, power and/or resistance of a electric circuit.
  • Add method to convert degree unit into another one.

In Literature

  • A simple algorithm to reverse the text. By example, the text Hello World ! became ! dlroW olleH.
  • An algorithms to verify if a text is a palindrome. A palindrome is a text can be read and each letters are at the same place from left to right or right to left like the word kayak or the sentence Ah, Satan sees Natasha.

Installation

You can get this library on npm. To download it, you just type the commmand
$ npm i @kero76/logisticae

Documentations

Local access

If you work locally with this library, you can generate yourself the documentation thanks to this command
$ npx typedoc --out docs src --mode file --module commonjs

Web access

You can consult the API of the library to following this link : https://kero76.github.io/logisticae/. This version is update after each release of the API.
:warning: If you use the develop branch content, you must generate yourself the documentation or reading the source code to using correctly this API.

Useful commands

  • Command use to compile the project :
    $ npm run build or $ tsc
  • Command use to execute the unit tests :
    $ npm test or $ npm run test
  • Command use to execute the code coverage :
    $ npm run coverage
  • Command use to execute the linter :
    $ npm run lint
  • Command use to generate the documentation :
    $ npm run docs or $ npx typedoc --out docs src --mode file --module commonjs

Changelog

You can see more information about versions on the CHANGELOG.md.

  • v0.4.0 : Documentae update
  • v0.3.0 : Stringae update
  • V0.2.0 : Physicae update
  • V0.1.0 : Mathematicae update

License

This project is under MIT License.

Author(s)