Skip to content

Commit 8668ed2

Browse files
Missing coverage & README update
1 parent 58e80e5 commit 8668ed2

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
HyperMath is a simple JavaScript/TypeScript library designed to address common pitfalls in JavaScript math operations. It provides a set of static methods for basic arithmetic operations with improved precision and input handling.
44

5+
![Codecov](https://img.shields.io/codecov/c/github/hyperteksolutions/hypermath)
6+
[![Npm package version](https://badgen.net/npm/v/hypermath)](https://npmjs.com/package/hypermath)
7+
[![NPM Package Downloads](https://badgen.net/npm/dt/hypermath)](https://npmjs.com/package/hypermath)
8+
[![Try on RunKit](https://badge.runkitcdn.com/hypermath.svg)](https://runkit.com/npm/hypermath)
9+
[![License](https://img.shields.io/github/license/hyperteksolutions/hypermath)](https://github.com/HypertekSolutions/hypermath/blob/master/LICENSE)
10+
511
## Installation
612

713
```bash

src/lib/hypermath.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
export class HyperMath {
2-
constructor() {}
3-
42
static processInput(value: number | string): number {
53
if (typeof value === 'string') {
64
if (isNaN(parseInt(value))) {

src/main.spec.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { HyperMath } from './main';
2+
3+
describe('HyperMath', () => {
4+
it('should export the HyperMath class', () => {
5+
expect(HyperMath).toBeDefined();
6+
});
7+
});

0 commit comments

Comments
 (0)