@stencila/jesta
Version:
Stencila plugin for executable documents using JavaScript
20 lines (19 loc) • 680 B
TypeScript
import { Jesta } from '.';
import { MethodSchema } from './manifest';
export declare const schema: MethodSchema;
/**
* Pull file/s from a URL to the file system
*
* For `http/s` URLs this is optimised to stream content directly
* to the file system. For `file` URLs it is optimised to simply
* copy the file. For all other URL types, falls back to combining
* `read` and `write`.
*
* @param input The URL to fetch
* @param output The file path to write to
* @returns The file that was created (or written over)
*/
export declare function pull(this: Jesta, input: string, output: string): Promise<string>;
export declare namespace pull {
var schema: MethodSchema;
}