PowerJS Library
PowerJS is a powerful JavaScript library that provides a set of useful functions to streamline your development process.
Installation
You can install the PowerJS library using npm or yarn: npm i @powerjavascript/power.p.js
or
yarn add @powerjavascript/power.p.js
Functions
PowerJS provides the following functions:
Use chalk to colorize your terminal output, but > shorter <
import { bold, blue } from 'power.js';
console.log(bold(blue('Hello World!')));
You can use all functions of Chalk, this is just an example using bold and blue.
Copy a File
Copy a file from the source path to the destinati
import { copyFile } from 'power.js';
copyFile('sourcePath', 'destinationPath');
Create a Directory
Create a directory at the specified path.
import { createDirectory } from 'power.js';
createDirectory('directoryPath');
Read a File
Read the content of a file.
import { readFile } from 'power.js';
const content = readFile('filePath');
Write to a File
Write content to a file.
import { writeFile } from 'power.js';
writeFile('filePath', 'Content to write');
More Functions (Coming Soon)
We are actively working on adding more functions to the PowerJS library. Stay tuned for updates.
Contribute
Contributions are welcome! If you have a function you'd like to add or improvements to suggest, please open an issue or submit a pull request on our GitHub repository.
License
This project is licensed under the MIT License.