UNPKG

randomjs

Version:

Generate a random string that matches a given RegExp JavaScript object.

5 lines (4 loc) 136 B
var randexp = require('randexp').randexp; module.exports = function(pattern, attributes) { return randexp(pattern, attributes); }