Socket
Socket
Sign inDemoInstall

@types/shelljs

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/shelljs - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

54

shelljs/index.d.ts

@@ -7,2 +7,3 @@ // Type definitions for ShellJS 0.8

// Paul Huynh <https://github.com/pheromonez>
// Alexander Futász <https://github.com/aldafu>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -18,4 +19,5 @@

* @param dir Directory to change in.
* @return Object with shell exit code, stderr and stdout.
*/
export function cd(dir?: string): void;
export function cd(dir?: string): ShellString;

@@ -54,4 +56,5 @@ /**

* @param dest The destination.
* @return Object with shell exit code, stderr and stdout.
*/
export function cp(source: string | string[], dest: string): void;
export function cp(source: string | string[], dest: string): ShellString;

@@ -63,4 +66,5 @@ /**

* @param dest The destination.
* @return Object with shell exit code, stderr and stdout.
*/
export function cp(options: string, source: string | string[], dest: string): void;
export function cp(options: string, source: string | string[], dest: string): ShellString;

@@ -70,4 +74,5 @@ /**

* @param ...files Files to remove.
* @return Object with shell exit code, stderr and stdout.
*/
export function rm(...files: Array<string | string[]>): void;
export function rm(...files: Array<string | string[]>): ShellString;

@@ -78,4 +83,5 @@ /**

* @param ...files Files to remove.
* @return Object with shell exit code, stderr and stdout.
*/
export function rm(options: string, ...files: Array<string | string[]>): void;
export function rm(options: string, ...files: Array<string | string[]>): ShellString;

@@ -86,4 +92,5 @@ /**

* @param dest The destination.
* @return Object with shell exit code, stderr and stdout.
*/
export function mv(source: string | string[], dest: string): void;
export function mv(source: string | string[], dest: string): ShellString;

@@ -95,4 +102,5 @@ /**

* @param dest The destination.
* @return Object with shell exit code, stderr and stdout.
*/
export function mv(options: string, source: string | string[], dest: string): void;
export function mv(options: string, source: string | string[], dest: string): ShellString;

@@ -102,4 +110,5 @@ /**

* @param ...dir Directories to create.
* @return Object with shell exit code, stderr and stdout.
*/
export function mkdir(...dir: Array<string | string[]>): void;
export function mkdir(...dir: Array<string | string[]>): ShellString;

@@ -110,4 +119,5 @@ /**

* @param ...dir The directories to create.
* @return Object with shell exit code, stderr and stdout.
*/
export function mkdir(options: string, ...dir: Array<string | string[]>): void;
export function mkdir(options: string, ...dir: Array<string | string[]>): ShellString;

@@ -317,4 +327,5 @@ /**

* @param dest The destination.
* @return Object with shell exit code, stderr and stdout.
*/
export function ln(source: string, dest: string): void;
export function ln(source: string, dest: string): ShellString;

@@ -326,4 +337,5 @@ /**

* @param dest The destination.
* @return Object with shell exit code, stderr and stdout.
*/
export function ln(options: string, source: string, dest: string): void;
export function ln(options: string, source: string, dest: string): ShellString;

@@ -415,4 +427,5 @@ /**

* @param file The file to use.
* @return Object with shell exit code, stderr and stdout.
*/
export function chmod(octalMode: number, file: string): void;
export function chmod(octalMode: number, file: string): ShellString;

@@ -426,4 +439,5 @@ /**

* @param file The file to use.
* @return Object with shell exit code, stderr and stdout.
*/
export function chmod(options: string, octalMode: number, file: string): void;
export function chmod(options: string, octalMode: number, file: string): ShellString;

@@ -436,4 +450,5 @@ /**

* @param file The file to use.
* @return Object with shell exit code, stderr and stdout.
*/
export function chmod(mode: string, file: string): void;
export function chmod(mode: string, file: string): ShellString;

@@ -447,4 +462,5 @@ /**

* @param file The file to use.
* @return Object with shell exit code, stderr and stdout.
*/
export function chmod(options: string, mode: string, file: string): void;
export function chmod(options: string, mode: string, file: string): ShellString;

@@ -475,6 +491,6 @@ // Non-Unix commands

export function touch(...files: string[]): void;
export function touch(files: string[]): void;
export function touch(options: TouchOptionsLiteral, ...files: Array<string | string[]>): void;
export function touch(options: TouchOptionsArray, ...files: Array<string | string[]>): void;
export function touch(...files: string[]): ShellString;
export function touch(files: string[]): ShellString;
export function touch(options: TouchOptionsLiteral, ...files: Array<string | string[]>): ShellString;
export function touch(options: TouchOptionsArray, ...files: Array<string | string[]>): ShellString;

@@ -481,0 +497,0 @@ export interface HeadOptions {

{
"name": "@types/shelljs",
"version": "0.8.1",
"version": "0.8.2",
"description": "TypeScript definitions for ShellJS",

@@ -26,2 +26,7 @@ "license": "MIT",

"githubUsername": "pheromonez"
},
{
"name": "Alexander Futász",
"url": "https://github.com/aldafu",
"githubUsername": "aldafu"
}

@@ -40,4 +45,4 @@ ],

},
"typesPublisherContentHash": "c5a043b98fa8271335468a25f873fe815f27af96a5b464a0f8bc81cb70f20fa7",
"typesPublisherContentHash": "6b8156ae7e76a2c94bd5e85637d3ae902e240f9895860c52086b16ab769d903b",
"typeScriptVersion": "2.0"
}

@@ -5,3 +5,3 @@ # Installation

# Summary
This package contains type definitions for ShellJS (http://shelljs.org).
This package contains type definitions for ShellJS ( http://shelljs.org ).

@@ -12,3 +12,3 @@ # Details

Additional Details
* Last updated: Thu, 06 Dec 2018 21:24:55 GMT
* Last updated: Fri, 25 Jan 2019 17:58:13 GMT
* Dependencies: @types/glob, @types/node

@@ -18,2 +18,2 @@ * Global values: none

# Credits
These definitions were written by Niklas Mollenhauer <https://github.com/nikeee>, Vojtech Jasny <https://github.com/voy>, George Kalpakas <https://github.com/gkalpak>, Paul Huynh <https://github.com/pheromonez>.
These definitions were written by Niklas Mollenhauer <https://github.com/nikeee>, Vojtech Jasny <https://github.com/voy>, George Kalpakas <https://github.com/gkalpak>, Paul Huynh <https://github.com/pheromonez>, Alexander Futász <https://github.com/aldafu>.
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