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

randomatic

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

randomatic - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

.verbrc.md

20

examples/examples.js

@@ -5,8 +5,4 @@ /**

// node_modules
var frep = require('frep');
var _ = require('lodash');
var chalk = require('chalk');
var info = chalk.cyan;

@@ -16,15 +12,3 @@ // Local lib

console.log(randomize('A', 12));
console.log(randomize('a', 12));
console.log(randomize('0', 12));
console.log(randomize('A0', 12));
console.log(randomize('Aa0', 12));
console.log(randomize('AAA'));
console.log(randomize('Aa0'));
console.log(randomize('000'));
console.log(randomize('?', {chars: 'jonschlinkert'}));
console.log(randomize('AAAAA', 3));
console.log(randomize('*', 16));
// Example replacement patterns. These replacement

@@ -46,3 +30,3 @@ // patterns are used in assemble-contrib-permalinks:

} else {
var len = b.length;
len = b.length;
return randomize(b, len);

@@ -78,3 +62,3 @@ }

_.forIn(patterns, function(value, key) {
console.log('>> ' + info('Should be ' + value + '\t'), frep.strWithArr(key, replacements));
console.log('>> ' + ('Should be ' + value + '\t'), frep.strWithArr(key, replacements));
});
/**
* randomize-chars
* randomatic
* Inspired by http://stackoverflow.com/a/10727155/1267639

@@ -4,0 +4,0 @@ * Copyright (c) 2014 Jon Schlinkert

{
"name": "randomatic",
"description": "Generate randomized strings of a specified length from patterns of numeric, alpha-numeric, alphabetical, special or custom characters.",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "https://github.com/jonschlinkert/randomatic",

@@ -28,7 +28,7 @@ "author": {

"alphanumeric",
"characters",
"chars",
"characters",
"numeric",
"rand",
"random",
"rand",
"randomize",

@@ -38,13 +38,6 @@ "randomized"

"devDependencies": {
"frep": "~0.1.2",
"lodash": "~2.4.1",
"chalk": "~0.4.0",
"grunt-sync-pkg": "~0.1.2",
"grunt": "~0.4.2",
"grunt-contrib-jshint": "~0.8.0",
"grunt-readme": "~0.4.5"
},
"dependencies": {
"lodash": "~2.4.1"
"chai": "~1.9.1",
"mocha": "~1.18.2",
"verb": "~0.2.5"
}
}

@@ -19,3 +19,3 @@ # randomatic [![NPM version](https://badge.fury.io/js/randomatic.png)](http://badge.fury.io/js/randomatic)

## Usage
## Documentation

@@ -79,3 +79,3 @@ ```js

### Usage Examples
## Usage Examples

@@ -96,7 +96,7 @@ * `randomize('A', 4)` (_whitespace insenstive_) would result in randomized 4-digit uppercase letters, like, `ZAKH`, `UJSL`... and so on.

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt][], and build the documentation with [grunt-readme](https://github.com/assemble/grunt-readme).
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality,
and run `docs` in the command line to build the docs with [Verb](https://github.com/assemble/verb).
Pull requests are also encouraged, and if you find this project useful please consider "starring" it to show your support! Thanks!
## Authors

@@ -109,10 +109,4 @@

**Brian Woodward**
+ [github/doowb](https://github.com/doowb)
+ [twitter/doowb](http://twitter.com/jonschlinkert)
## License
Copyright (c) 2014 Jon Schlinkert, contributors.
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license

@@ -122,6 +116,2 @@

_This file was generated by [grunt-readme](https://github.com/assemble/grunt-readme) on Saturday, January 4, 2014._
[grunt]: http://gruntjs.com/
[Getting Started]: https://github.com/gruntjs/grunt/blob/devel/docs/getting_started.md
[package.json]: https://npmjs.org/doc/json.html
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 01, 2014._

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