@smakss/random-string
Advanced tools
Comparing version 1.0.9 to 1.1.2
{ | ||
"name": "@smakss/random-string", | ||
"version": "1.0.9", | ||
"description": "Generates random dummy string.", | ||
"version": "1.1.2", | ||
"description": "Generates random dummy string with random length.", | ||
"type": "module", | ||
@@ -32,2 +32,2 @@ "main": "index.cjs", | ||
"homepage": "https://github.com/SMAKSS/random-string#readme" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # Generate random string | ||
This package will generate a random dummy string based on the available set of characters and given the length of the desired string. In case you don't care about uniqueness and don't want to use UUID this one will help you to achieve what you want. | ||
This package will generate a random dummy string based on the available set of characters or provided ones, you can also indicate the length of your desired random string. In case you don't care about uniqueness and don't want to use UUID this one will help you to achieve what you want. | ||
@@ -27,3 +27,3 @@ ## How it works? | ||
``` | ||
import randomString from '@smakss/random-string' | ||
import randomString from '@smakss/random-string'; | ||
``` | ||
@@ -34,5 +34,7 @@ | ||
``` | ||
randomString(10) // This will generate a random string with a length of 10. The output should be something like this: BD@Z8dKf2% | ||
randomString(); // If the input params were empty the length of string will be selected randomly between 1-20. So it will generate a string like: 'epTfoad497&p' | ||
// If the input was empty the length of string will be selected randomly between 1-20 | ||
randomString(10); // This will generate a random string with a length of 10. The output should be something like this: 'BD@Z8dKf2%' | ||
randomString(10, 'abCD#@'); // You can provide both length and allowed characters. So the result will be something like this: 'b@@#aDaC##' | ||
``` | ||
@@ -39,0 +41,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5170
6
18
42