Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@types/livereload
Advanced tools
TypeScript definitions for livereload
npm install --save @types/livereload
This package contains type definitions for livereload (https://github.com/napcs/node-livereload).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/livereload.
import { EventEmitter } from "events";
import { FSWatcher } from "fs";
import { Server as httpServer } from "http";
import { Server as httpsServer, ServerOptions } from "https";
import { Server as WebSocketServer, WebSocket } from "ws";
export interface ServerConfig {
/** Protocol Version defaults to "7" */
version?: string | undefined;
/** Sets server port number: Defaults to 35729 */
port?: number | undefined;
/** File Extensions to watch */
exts?: string[] | undefined;
extraExts?: string[] | undefined;
/** Extensions to not watch */
exclusions?: RegExp[] | undefined;
applyCSSLive?: boolean | undefined;
applyImgLive?: boolean | undefined;
originalPath?: string | undefined;
overrideURL?: string | undefined;
usePolling?: boolean | undefined;
server?: httpServer | httpsServer | undefined;
/** ms to delay browser refresh */
delay?: number | undefined;
/** Logs debug messages to console */
debug?: boolean | undefined;
}
/** Create Server Parameters */
export interface CreateServerConfig extends ServerConfig {
https?: ServerOptions | undefined;
server?: httpServer | httpsServer | undefined;
noListen?: boolean | undefined;
}
/** Live Reload Server object, provides main functionality */
export class LiveReloadServer extends EventEmitter {
config: ServerConfig;
watcher: FSWatcher;
server: WebSocketServer;
constructor(config?: ServerConfig);
listen(callback?: () => void): void;
onError(err: Error): void;
onConnection(socket?: WebSocket): void;
onClose(socket?: WebSocket): void;
/** Specify path(s) to watch */
watch(paths: string | string[]): void;
filterRefresh(filepath: string): void;
refresh(filepath: string): void;
alert(message: string): void;
sendAllClients(data: string): void;
close(): void;
debug(message: string): void;
}
export {};
export function createServer(config?: CreateServerConfig, callback?: () => void): LiveReloadServer;
These definitions were written by Hector Osuna.
FAQs
TypeScript definitions for livereload
The npm package @types/livereload receives a total of 9,640 weekly downloads. As such, @types/livereload popularity was classified as popular.
We found that @types/livereload 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.