https://github.com/qvil/lte-earfcn-calculator
Javascript library for calculate EARFCN and Frequency.
https://github.com/qvil/lte-earfcn-calculator
earfcn frequency javascript js lte lte-earfcn-calculator
Last synced: 4 months ago
JSON representation
Javascript library for calculate EARFCN and Frequency.
- Host: GitHub
- URL: https://github.com/qvil/lte-earfcn-calculator
- Owner: qvil
- License: mit
- Created: 2017-06-20T06:41:14.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T06:14:27.000Z (over 2 years ago)
- Last Synced: 2025-01-16T13:53:23.175Z (4 months ago)
- Topics: earfcn, frequency, javascript, js, lte, lte-earfcn-calculator
- Language: JavaScript
- Homepage: https://codesandbox.io/s/github/qvil/lte-earfcn-calculator/tree/master/demo/web
- Size: 1.08 MB
- Stars: 9
- Watchers: 3
- Forks: 6
- Open Issues: 60
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [LTE EARFCN Calculator](https://github.com/qvil/lte-earfcn-calculator)
[](https://badge.fury.io/js/lte-earfcn-calculator)
[](https://travis-ci.org/qvil/lte-earfcn-calculator)
[](https://coveralls.io/github/qvil/lte-earfcn-calculator?branch=master)
[](https://opensource.org/licenses/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.
> [한국어](/README_ko.md)
## Supported Band
1~52 (Rel 16 May 2018)
## Install
```
npm install --save lte-earfcn-calculator
```## Example
[Install](#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`
```js
import LTE from "lte-earfcn-calculator";let earfcn = 0;
let band = 1;
let frequency = 2110; // MHzconsole.log(LTE.earfcnToFreq(earfcn)); // 2110.0
console.log(LTE.freqToEarfcnByBand(band, frequency)); // 0.0
```## Demo
* [Web](https://codesandbox.io/s/github/qvil/lte-earfcn-calculator/tree/master/demo/web)
## Test
This project support unit test using [mocha](https://mochajs.org)
```
npm test
```## Contribute
Now you can dive into the project! Welcome anything, such as add frequencies, add test case, edit typo!
### Contributors
* [qvil(Taesu Hyeon)](https://github.com/qvil)
* [yellowgg2(Youngki Kang)](https://github.com/yellowgg2)## Reference
*
* [jsonfile](https://www.npmjs.com/package/jsonfile) - To generate test json file.## [LICENSE](https://github.com/qvil/lte-earfcn-calculator/blob/master/LICENSE)
[MIT](https://github.com/qvil/lte-earfcn-calculator/blob/master/LICENSE)