gulp-util/LICENSE000777 177776 177776 0000002165 14071137006012153 0ustar00000000 000000 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE gulp-util/README.md000777 177776 177776 0000001306 14071137006012421 0ustar00000000 000000 # Installation > `npm install --save @types/gulp-util` # Summary This package contains type definitions for gulp-util (https://github.com/gulpjs/gulp-util). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-util. ### Additional Details * Last updated: Tue, 06 Jul 2021 20:33:10 GMT * Dependencies: [@types/vinyl](https://npmjs.com/package/@types/vinyl), [@types/chalk](https://npmjs.com/package/@types/chalk), [@types/through2](https://npmjs.com/package/@types/through2), [@types/node](https://npmjs.com/package/@types/node) * Global values: none # Credits These definitions were written by [jedmao](https://github.com/jedmao). gulp-util/index.d.ts000777 177776 177776 0000007672 14071137006013057 0ustar00000000 000000 // Type definitions for gulp-util 3.0 // Project: https://github.com/gulpjs/gulp-util // Definitions by: jedmao // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// import vinyl = require('vinyl'); import chalk from 'chalk'; import through2 = require('through2'); export { vinyl as File }; /** * Replaces a file extension in a path. Returns the new path. */ export function replaceExtension(npath: string, ext: string): string; export const colors: typeof chalk; export const date: { (now?: Date | string, mask?: string, convertLocalTimeToUTC?: boolean): any; masks: any; }; /** * Logs stuff. Already prefixed with [gulp] and all that. Use the right colors * for values. If you pass in multiple arguments it will join them by a space. */ export function log(message?: any, ...optionalParams: any[]): void; /** * This is a lodash.template function wrapper. You must pass in a valid gulp * file object so it is available to the user or it will error. You can not * configure any of the delimiters. Look at the lodash docs for more info. */ export function template(tmpl: string): (opt: { file: { path: string } }) => string; export function template(tmpl: string, opt: { file: { path: string } }): string; export const env: any; export function beep(): void; /** * Returns a stream that does nothing but pass data straight through. */ export const noop: typeof through2; export function isStream(obj: any): boolean; export function isBuffer(obj: any): boolean; export function isNull(obj: any): boolean; export const linefeed: string; export function combine(streams: NodeJS.ReadWriteStream[]): () => NodeJS.ReadWriteStream; export function combine(...streams: NodeJS.ReadWriteStream[]): () => NodeJS.ReadWriteStream; /** * This is similar to es.wait but instead of buffering text into one string * it buffers anything into an array (so very useful for file objects). */ export function buffer(cb?: (err: Error, data: any[]) => void): NodeJS.ReadWriteStream; export class PluginError implements Error, PluginErrorOptions { constructor(options?: PluginErrorOptions); constructor(pluginName: string, options?: PluginErrorOptions); constructor(pluginName: string, message: string | Error, options?: PluginErrorOptions); /** * The module name of your plugin. */ name: string; /** * Can be a string or an existing error. */ message: any; fileName: string; lineNumber: number; /** * You need to include the message along with this stack. If you pass an * error in as the message the stack will be pulled from that, otherwise one * will be created. */ stack: string; /** * By default the stack will not be shown. Set this to true if you think the * stack is important for your error. */ showStack: boolean; /** * Error properties will be included in err.toString(). Can be omitted by * setting this to false. */ showProperties: boolean; plugin: string; error: Error; } export interface PluginErrorOptions { /** * The module name of your plugin. */ name?: string | undefined; /** * Can be a string or an existing error. */ message?: any; fileName?: string | undefined; lineNumber?: number | undefined; /** * You need to include the message along with this stack. If you pass an * error in as the message the stack will be pulled from that, otherwise one * will be created. */ stack?: string | undefined; /** * By default the stack will not be shown. Set this to true if you think the * stack is important for your error. */ showStack?: boolean | undefined; /** * Error properties will be included in err.toString(). Can be omitted by * setting this to false. */ showProperties?: boolean | undefined; plugin?: string | undefined; error?: Error | undefined; } gulp-util/package.json000777 177776 177776 0000001611 14071137006013427 0ustar00000000 000000 { "name": "@types/gulp-util", "version": "3.0.36", "description": "TypeScript definitions for gulp-util", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-util", "license": "MIT", "contributors": [ { "name": "jedmao", "url": "https://github.com/jedmao", "githubUsername": "jedmao" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/gulp-util" }, "scripts": {}, "dependencies": { "@types/node": "*", "@types/through2": "*", "@types/vinyl": "*", "chalk": "^2.2.0" }, "typesPublisherContentHash": "7fb8029faa5b2cc8a680e74b51e93ec260190814d6703adbe5fec5038d6886d3", "typeScriptVersion": "3.6" }