npm · Schema

SearchResults

Search results from the npm registry search endpoint.

PackagesJavaScriptNode.jsPackage ManagementRegistrySecurity

Properties

Name Type Description
objects array List of search result objects.
total integer The total number of matching results.
time string Timestamp of when the search was performed.
View JSON Schema on GitHub

JSON Schema

npm-searchresults-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SearchResults",
  "title": "SearchResults",
  "type": "object",
  "description": "Search results from the npm registry search endpoint.",
  "properties": {
    "objects": {
      "type": "array",
      "description": "List of search result objects.",
      "items": {
        "$ref": "#/components/schemas/SearchResultItem"
      }
    },
    "total": {
      "type": "integer",
      "description": "The total number of matching results."
    },
    "time": {
      "type": "string",
      "description": "Timestamp of when the search was performed."
    }
  }
}