siwi-uniquestring

生成指定长度的字符串

Usage no npm install needed!

<script type="module">
  import siwiUniquestring from 'https://cdn.skypack.dev/siwi-uniquestring';
</script>

README

node Build Status npm npm Github file size npm

siwi-uniquestring

生成指定长度的随机字符串

install

use npm

npm install siwi-uniquestring

use yarn

yarn add siwi-uniquestring

Example

const uniqueString = require('siwi-uniquestring')

class Example {
    constructor() {
        this.init()
    }

    async init() {
        const str = await uniqueString.random(32)
        console.log(str)
    }
}

module.exports = new Example()

89c1fe8cb987d41140f254a296f4ab59