node package manager


Going deeper inside of the PI number.

$ pi

Patreon PayPal AMA Version Downloads Get help on Codementor

Going deeper inside of the PI number.

☁️ Installation

You can install the package globally and use it as command line tool:

$ npm i -g pi

Then, run pi --help and see what the CLI tool can do.

$ pi --help

📋 Example

Here is an example how to use this package as library. To install it locally, as library, you can do that using npm:

$ npm i --save pi
// Dependencies 
var PI = require("pi");
// => 3.14 
console.log("First 16 decimals: " + PI(16, false));
// => First 16 decimals: 141592653589793 

📝 Documentation

For full API reference, see the file.

😋 How to contribute

Have an idea? Found a bug? See how to contribute.

💰 Donations

Another way to support the development of my open-source modules is to set up a recurring donation, via Patreon. 🚀

PayPal donations are appreciated too! Each dollar helps.

Thanks! ❤️

📜 License

MIT © Ionică Bizău