UNPKG

edit-package-json

Version:

Edit package.json without parsing, as string, to keep the formatting intact

17 lines (15 loc) 347 B
declare const version: string; interface Inputs { str: string; path: string; valToInsert?: string | number; mode: "set" | "del"; } declare function set( str: string, path: string, valToInsert: string | number, ): string; declare function del(str: string, path: string): string; export { del, set, version }; export type { Inputs };