pologovsemen-part
v1.0.0
Published
Pologovsemen-part is a Node.js module providing a collection of super useful tools.
Downloads
3
Readme
pologovsemen-part
Pologovsemen-part is a Node.js module providing a collection of super useful tools.
Installation
You can install this module using npm: npm install pologovsemen-part
Usage
const superTools = require('super-tools');
// Get a random Chuck Norris joke
superTools.getRandomChuckNorrisJoke()
.then(joke => console.log(joke))
.catch(err => console.error(err));
// Calculate factorial
console.log(superTools.factorial(5)); // Output: 120
// Read file contents
const fileContents = superTools.readFileContents('path/to/file.txt');
console.log(fileContents);
// Format date
const formattedDate = superTools.formatDate(new Date(), 'YYYY-MM-DD');
console.log(formattedDate);