1.1.4 • Published 7 months ago
chermit v1.1.4
Chermit
Chermit is a utility package focused on math and physics calculations. It provides simple functions to handle basic operations, including both physics and math. These include trigonometry, basic math operations, as well as calculations for speed, kinetic energy, and gravitational potential energy.
Installation
To install Chermit, run the following command:
npm install chermit
Math module
const { math } = require('chermit');
console.log(math.add(5, 3));
console.log(math.squareRoot(16));
Physics module
const { physics } = require('chermit');
console.log(physics.speed(100, 2));
console.log(physics.kineticEnergy(5, 10));
Geometry module
const { geometry } = require('chermit');
console.log(geometry.circleArea(5));
console.log(geometry.rectanglePerimeter(5, 10));
Chemistry module
const { chemistry } = require('chermit');
console.log(chemistry.atomicWeight('Oxygen'));
console.log(chemistry.molarMass('H2O'));
Date module
const { date } = require('chermit');
console.log(date.currentDate());
console.log(date.daysBetween('2024-12-08', '2024-12-15'));
Color module
const { color } = require('chermit');
console.log(color.rgbToHex(255, 0, 0));
console.log(color.hexToRgb('#00FF00'));
Geolocation modue
const { geolocation } = require('chermit');
console.log(geolocation.distanceBetween(51.5074, -0.1278, 48.8566, 2.3522));
Licensing
This project is licensed under the MIT License. For more details, please refer to the LICENSE file.