
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@types/sort-json
Advanced tools
TypeScript definitions for sort-json
npm install --save @types/sort-json
This package contains type definitions for sort-json (https://github.com/kesla/sort-json).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sort-json.
declare namespace visit {
interface VisitOptions {
/**
* Depth's level sorting keys on a multidimensional object
* (default: `Infinity`)
*/
depth?: number | undefined;
/**
* When sorting keys, converts all keys to lowercase so that
* capitalization doesn't interfere with sort order (default: `false`)
*/
ignoreCase?: boolean | undefined;
/** Default: `1` */
level?: number | undefined;
/** Reverse the ordering z -> a (default: `false`) */
reverse?: boolean | undefined;
}
interface OverwriteOptions extends VisitOptions {
/**
* Formats the file content with an indentation of spaces. Use a number
* greater then 0 for the value (default: detects the used indentation
* of the file)
*/
indentSize?: number | undefined;
/** Default: `false` */
noFinalNewLine?: boolean | undefined;
}
/**
* Sorts the JSON files with the `visit()` function and then overwrites the
* file with sorted JSON
* @param absolutePaths
* * String: Absolute path to JSON file to sort and overwrite
* * Array: Absolute paths to JSON files to sort and overwrite
*/
function overwrite(absolutePaths: string | string[], options?: OverwriteOptions): any;
}
/**
* Sorts the keys on objects
* @param old An object to sort the keys of, if not object just returns whatever
* was given
*/
declare function visit<T>(old: T, options?: visit.VisitOptions): T;
export = visit;
These definitions were written by Florian Keller.
FAQs
TypeScript definitions for sort-json
The npm package @types/sort-json receives a total of 5,372 weekly downloads. As such, @types/sort-json popularity was classified as popular.
We found that @types/sort-json 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.