Skip to content

qvil/lte-earfcn-calculator

Repository files navigation

npm version Build Status Coverage Status License: MIT

I'll renewal this project.

Javascript library for calculate EARFCN and Frequency. The main purpose is to convert EARFCN to Frequency or vice versa to calculate EARFCN using frequency and band.

한국어

Supported Band

1~52 (Rel 16 May 2018)

Install

npm install --save lte-earfcn-calculator

Example

Install before execute code.

Included example code in this library. Check this file. /src/example.js If you want to execute example try this node src/example.js

import LTE from "lte-earfcn-calculator";

let earfcn = 0;
let band = 1;
let frequency = 2110; // MHz

console.log(LTE.earfcnToFreq(earfcn)); // 2110.0
console.log(LTE.freqToEarfcnByBand(band, frequency)); // 0.0

Demo

Test

This project support unit test using mocha

npm test

Contribute

Now you can dive into the project! Welcome anything, such as add frequencies, add test case, edit typo!

Contributors

Reference

MIT