options.filterProps: string[] | (val: any, key: string) => boolean, default [] If an array of strings is passed, filter out any prop who's name is in the array. For example ['key'] will suppress the key="" prop from being added. If a function is passed, it will be called ...
pathString or array of strings. options(optional)(ExtendspathToRegexpoptions) decodeFunction for decoding strings to params, orfalseto disable all processing. (default:decodeURIComponent) constfn=match("/foo/:bar"); Please note:path-to-regexpis intended for ordered data (e.g. paths, hosts)...
You will also be able to turn the tree into a string representation. With Typescript support and both sync and async support. The name A little explaination of the name dree: I chose it because it comes from the union of Directory Tree. Install To install dree as a local module: $ ...
array( z.object({ name: z.string(), class: z .string() .describe("Character class, e.g. warrior, mage, or thief."), description: z.string(), }) ), }) ), prompt: "Generate 3 character descriptions for a fantasy role playing game.", }); for await (const { partialObject } ...
// .storybook/test-runner.ts import type { TestRunnerConfig } from '@storybook/test-runner'; const config: TestRunnerConfig = { tags: { include: [], // string array, e.g. ['test-only'] exclude: [], // string array, e.g. ['design', 'docs-only'] skip: [], // string array...
importFirecrawlAppfrom"@mendable/firecrawl-js";import{z}from"zod";constapp=newFirecrawlApp({apiKey:"fc-YOUR_API_KEY"});// Define schema to extract contents intoconstschema=z.object({top:z.array(z.object({title:z.string(),points:z.number(),by:z.string(),commentsURL:z.string(),})...
pathToRegexp.tokensToRegExp(tokens, keys?, options?) Transform an array of tokens into a matching regular expression. pathToRegexp.tokensToFunction(tokens) Transform an array of tokens into a path generator function.Token Informationname The name of the token (string for named or number for ...
options.filterProps: string[] | (val: any, key: string) => boolean, default [] If an array of strings is passed, filter out any prop who's name is in the array. For example ['key'] will suppress the key="" prop from being added. If a function is passed, it will be called ...
npm/indent-string@4.0.0, npm/infima@0.2.0-alpha.45, npm/inflight@1.0.6, npm/inherits@2.0.4, npm/interpret@1.4.0, npm/is-alphanumerical@2.0.1, npm/is-arrayish@0.2.1, npm/is-binary-path@2.1.0, npm/is-core-module@2.15.1, npm/is-docker@2.2.1, npm/is-extglob@2.1.1, npm/is-...
The JavaScript API is a bunch of functions that can take either a string of Bash code or an array of already-parsed arguments (likeprocess.argv) and return a string with the resulting program: import*ascurlconverterfrom'curlconverter';curlconverter.toPython('curl example.com');curlconverter.to...