
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
@types/gulp-sort
Advanced tools
TypeScript definitions for gulp-sort
npm install --save @types/gulp-sort
This package contains type definitions for gulp-sort (https://github.com/pgilad/gulp-sort).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-sort.
/// <reference types="node" />
/** Sort files in stream by path or any custom sort comparator */
import gulpUtil = require("gulp-util");
interface IOptions {
/**
* A function to compare two files.
* Returns:
* -1 if file1 should be before file2,
* 0 if file1 is equivalent to file2, and
* 1 if file1 should be after file2
*/
comparator?: IComparatorFunction | undefined;
/** Whether to sort in ascending order, default is true */
asc?: boolean | undefined;
/** Whether to use a custom sort function. */
customSortFn?: (files: gulpUtil.File[], comparator?: IComparatorFunction) => gulpUtil.File[];
}
interface IComparatorFunction {
/**
* A function to compare two files.
* Returns:
* -1 if file1 should be before file2,
* 0 if file1 is equivalent to file2, and
* 1 if file1 should be after file2
*/
(file1: gulpUtil.File, file2: gulpUtil.File): number;
}
/** Sort files in stream by path or any custom sort comparator */
declare function gulpSort(): NodeJS.ReadWriteStream;
declare function gulpSort(comparator: IComparatorFunction): NodeJS.ReadWriteStream;
declare function gulpSort(options: IOptions): NodeJS.ReadWriteStream;
declare namespace gulpSort {}
export = gulpSort;
These definitions were written by Joe Skeen.
FAQs
TypeScript definitions for gulp-sort
The npm package @types/gulp-sort receives a total of 6,061 weekly downloads. As such, @types/gulp-sort popularity was classified as popular.
We found that @types/gulp-sort demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.