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

mockingcase

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

mockingcase - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

6

index.d.ts

@@ -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;
}
}

@@ -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 |
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