Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kedi/pi-finder
Pi-Finder is a tool that allows you to get the index of a specific integer in the first million digits of Pi Number.
https://github.com/kedi/pi-finder
express express-js expressapp expressapp-framework expressjs expressjs-api javascript node nodejs pi pi-index-finder pi-number tool
Last synced: about 1 month ago
JSON representation
Pi-Finder is a tool that allows you to get the index of a specific integer in the first million digits of Pi Number.
- Host: GitHub
- URL: https://github.com/kedi/pi-finder
- Owner: kedi
- License: mit
- Created: 2020-07-13T08:35:05.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T07:41:37.000Z (about 2 years ago)
- Last Synced: 2023-03-04T10:24:00.713Z (almost 2 years ago)
- Topics: express, express-js, expressapp, expressapp-framework, expressjs, expressjs-api, javascript, node, nodejs, pi, pi-index-finder, pi-number, tool
- Language: JavaScript
- Homepage: https://github.com/atoasty/Pi-Finder/
- Size: 500 KB
- Stars: 18
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
![](https://toasty.is-pretty.cool/5wRB3Ux.gif)
## Pi Finder
Pi-Finder is a tool that allows you to get the index of a specific integer in the first million digits of Pi Number. The tool is a basic NodeJS Express application which allows you to get information with a single get request.
The path of the request is `/get/number` and the query number is the string that you want tool to find in Pi Number and return you with the index of that number. For an example,
if you want to find `1415` on the tool, it would return index as **1** because the first digits of the Pi Number is `3,1415...`.The visualized part is rendered as `ejs` which gives better user experience. If you would like to host it locally, download the code and then you would need:
- NodeJS & NPM installed.
If you have these packages installed and set, you are free to go. Open up a terminal or a Powershell Prompt and run `node app.js`. After running that, head over to `https://localhost:3000` on your browser and here it is!
### Linting
The linting is made by eslint so for future PR's should be formatted with the eslint rules in this repistory. (Idk if anyone has brilliant ideas on PR's or if anyone find bugs but take that into consideration.)