mockingcase
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for mockingcase 1.1 | ||
// Type definitions for mockingcase 1.2 | ||
// Project: https://github.com/strdr4605/mockingcase | ||
@@ -8,3 +8,5 @@ // Definitions by: Dragoș Străinu https://github.com/strdr4605 | ||
function mockingcase(input: string, options?: { random?: boolean }): string; | ||
namespace mockingcase { } | ||
namespace mockingcase { | ||
export function log(input: string, options?: { random?: boolean }): void; | ||
} | ||
} |
10
index.js
@@ -22,3 +22,11 @@ (function () { | ||
/** | ||
* This function receives a string input and outputs a message to the console in mOcKiNgCaSe. | ||
* @param {string} input - string to be converted | ||
* @param {object} [options={random: false}] - options for converting | ||
* @param {boolean} options.random=false - using random for converting | ||
*/ | ||
mOcKiNgCaSe.log = (input, options) => console.log(mOcKiNgCaSe(input, options)); | ||
module.exports = mOcKiNgCaSe; | ||
})(); | ||
})(); |
{ | ||
"name": "mockingcase", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Convert a string to mOcKiNgCaSe", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/strdr4605/mockingcase.git", |
@@ -49,10 +49,8 @@ # mOcKiNgCaSe [![Build Status](https://travis-ci.org/strdr4605/mockingcase.svg?branch=master)](https://travis-ci.org/strdr4605/mockingcase) | ||
mOcKiNgCaSe('Foo42!$ Bar'); | ||
//=> 'fOo42!$ bAr' | ||
mOcKiNgCaSe('4Foo!$ B2ar'); | ||
//=> '4FoO!$ B2Ar' | ||
mOcKiNgCaSe.log('foo bar'); | ||
// console.log('fOo bAr'); | ||
``` | ||
## API | ||
<a name="mOcKiNgCaSe"></a> | ||
@@ -62,2 +60,3 @@ ### mOcKiNgCaSe(input, [options]) ⇒ <code>string</code> | ||
**Kind**: global function | ||
**Returns**: <code>string</code> - string in mOcKiNgCaSe | ||
@@ -70,1 +69,14 @@ | ||
| options.random | <code>boolean</code> | <code>false</code> | using random for converting | | ||
<a name="mOcKiNgCaSe.log"></a> | ||
### mOcKiNgCaSe.log(input, [options]) | ||
This function receives a string input and outputs a message to the console in mOcKiNgCaSe. | ||
**Kind**: static method of [<code>mOcKiNgCaSe</code>](#mOcKiNgCaSe) | ||
| Param | Type | Default | Description | | ||
| --- | --- | --- | --- | | ||
| input | <code>string</code> | | string to be converted | | ||
| [options] | <code>object</code> | <code>{random: false}</code> | options for converting | | ||
| options.random | <code>boolean</code> | <code>false</code> | using random for converting | |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5202
37
80