@fakerjs/string
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

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

Package Sidebar

Install

npm i @fakerjs/string

Weekly Downloads

1,400

Version

2.1.1

License

MIT

Unpacked Size

3.71 kB

Total Files

5

Last publish

Collaborators

  • awilum