node package manager


Going deeper inside of the PI number.

$ pi

Going deeper inside of the PI number.

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

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 

For full API reference, see the file.

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

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! ❤️

MIT © Ionică Bizău