# For package.json file
$ npm init -y
# Install the module
$ npm install override.ps1@latest --save-dev
Usage in TypeScript
import{Permute,trace,getValue}from'override.ps1';import{Promise}from'@types/promises';import{Swap,appendDataToProperty}from'override.ps1';// stdout to console.trace("This is a traced message.");// If you prefer Generic Programming.constA=[2,5,6];constR=Permute<number>(A);trace("All Permutations: ");R.forEach((permutation)=>{console.log(permutation);});trace(" == End of Script == ");
Usage in JavaScript
constover=require('override.ps1');over.info("This is a log message");varid=over.generatePlayerId();over.info(id);// Creates Key Value Pair and Prints themover.CreateKeyValuePair("userid",10002);
TypeScript vs. JavaScript
Who will be the king in future ?
About
Curated Collection of Cool Functions. For Enhanced Unit Testing & NPM Registry @ <https://registry.npmjs.org>