Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@smakss/random-string

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smakss/random-string - npm Package Compare versions

Comparing version 1.0.9 to 1.1.2

.github/workflows/npm-publish.yml

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc