Sign inSign up

ntsystems/override.ps1

By ntsystems

•Updated about 2 years ago

NPM Package and Unit Testing Module.

Image
Developer tools
0

440

ntsystems/override.ps1 repository overview

⁠override.ps1 - Typescript Based Minimal JS Functions

⁠How to Install and Use ?

# 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.
const A = [2, 5, 6];
const R = Permute<number>(A);

trace("All Permutations: ");
R.forEach((permutation) => {
    console.log(permutation);
});

trace(" == End of Script == ");

⁠Usage in JavaScript

const over = require('override.ps1');
over.info("This is a log message");
var id = over.generatePlayerId();
over.info(id);

// Creates Key Value Pair and Prints them
over.CreateKeyValuePair("userid", 10002);

⁠TypeScript vs. JavaScript

⁠Who will be the king in future ?

Tag summary

Content type

Image

Digest

sha256:aeda4d6ad…

Size

47.6 MB

Last updated

about 2 years ago

docker pull ntsystems/override.ps1:master