@fakerjs/string

String package provides functionality to generate a fake string value.

Usage no npm install needed!

<script type="module">
  import fakerjsString from 'https://cdn.skypack.dev/@fakerjs/string';
</script>

README

String

String package provides functionality to generate a fake string value.

Version node-current License

Install

$ npm install --save @fakerjs/string

Usage

import string from '@fakerjs/string';

string();
//=> 3Kekravwvb78vP9CQPP1vaRCgi4dZETOktxzf8pF5gufFqh8mOICMqjRP4y8UxoI

string({length: 10});
//=> FxvqHNFNUu

string({length: 10, keyspace: '#@$%&+='});
//=> $+#%#&$=@

Tests

Run tests

npm run test

License

The MIT License (MIT) Copyright (c) Sergey Romanenko