Package Exports
- ngx-random
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ngx-random) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Welcome to NGX-RANDOM!
Console input / output strings or any message strings at browser console.
The console.log() method outputs a message to the web console. The message may be a single string (with optional substitution values), or it may be any one or more JavaScript objects.
Preview demo
This preview was generated with CODESANDBOX
CDN
CDN Link for ngx-random- https://unpkg.com/ngx-random@0.0.3/bundles/ngx-random.umd.js
Import
Import the module on your app.module.ts file as follow.
import { NgxRandomModule} from "ngx-random";
Then import the module as follow on imports array
NgxRandomModule
Using
After importing this library with npm install ngx-random, go to the component which is declared under app.module.ts and integrate as below.
NGX LOGS MODULE
constructor(private ngxRandom: NgxRandomService) { }
Use reference for logs service in constructor and import it respectively at any component
Methods
This are the methods available with ngx-random use it as per your requirement:
| Method | Inputs | Usage |
|---|---|---|
generateString(8); |
length: number | Generates alphabets string of specified length |
| this.ngxRandom.generateString(8); | ||
generateLowerAlphabetsString(8) |
length: number | Generates lowercase charaters string of specified length |
| this.ngxRandom.generateLowerAlphabetsString(8) | ||
generateUpperAlphabetsString(8) |
length: number | Generates uppercase charaters string of specified length |
| this.ngxRandom.generateUpperAlphabetsString(8) | ||
generateNumber(8) |
length: number | Generates numbers of specified length |
| this.ngxRandom.generateNumber(8) | ||
generatePasswordString(8) |
length: number | Generates random password string of specified length |
| this.ngxRandom.generatePasswordString(8) | ||
generateMixedString(8) |
length: number | Generates Mixed digits - symbols - charaters - string of specified length |
| this.ngxRandom.generateMixedString(8) | ||
generatHashString() |
Generates Hashed string of length - 16 | |
| this.ngxRandom.generatHashString() | ||
generatSecuredHashString() |
Generates secured hashed string of length - 16 | |
| this.ngxRandom.generatSecuredHashString() |
Angular version
This library was generated with Angular CLI version 9.1.9.
Code integration
To use this package as a service npm i ngx-random install this on the root angular project .
Note: Don't forget to run this commend
npm i ngx-randomon root folder or else it will throw error.
Author
Thanks in advance With love
Manojkumar Muthukumar Coimbatore