Gathering detailed insights and metrics for @types/db-hafas-stations-autocomplete
Gathering detailed insights and metrics for @types/db-hafas-stations-autocomplete
Gathering detailed insights and metrics for @types/db-hafas-stations-autocomplete
Gathering detailed insights and metrics for @types/db-hafas-stations-autocomplete
The repository for high quality TypeScript type definitions.
npm install @types/db-hafas-stations-autocomplete
Typescript
Module System
67.2
Supply Chain
91.1
Quality
75.2
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.16%)
Shell (0.01%)
Total Downloads
889
Last Day
1
Last Week
3
Last Month
16
Last Year
197
NOASSERTION License
49,714 Stars
89,367 Commits
30,383 Forks
640 Watchers
7 Branches
9,955 Contributors
Updated on May 12, 2025
Latest Version
2.0.2
Package Id
@types/db-hafas-stations-autocomplete@2.0.2
Unpacked Size
5.52 kB
Size
2.01 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-57.1%
3
Compared to previous week
Last Month
0%
16
Compared to previous month
Last Year
-45.3%
197
Compared to previous year
npm install --save @types/db-hafas-stations-autocomplete
This package contains type definitions for db-hafas-stations-autocomplete (https://github.com/derhuerst/db-hafas-stations-autocomplete).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/db-hafas-stations-autocomplete.
1export = autocomplete; 2 3/** 4 * Search & autocompletion for [Deutsche Bahn](https://en.wikipedia.org/wiki/Deutsche_Bahn) stations. 5 * Pulls its data from [`db-hafas-stations`](https://github.com/derhuerst/db-hafas-stations). 6 * 7 * @example 8 * import autocomplete = require('db-hafas-stations-autocomplete') 9 * 10 * autocomplete('Münch', 3) 11 * // => 12 * // [ 13 * // { 14 * // id: '624637', 15 * // relevance: 0.878345935, 16 * // score: 4.601702707916342, 17 * // weight: 143.8 18 * // }, 19 * // { 20 * // id: '620368', 21 * // relevance: 0.878345935, 22 * // score: 4.601702707916342, 23 * // weight: 143.8 24 * // }, 25 * // { 26 * // id: '8000261', 27 * // relevance: 0.878345935, 28 * // score: 4.601702707916342, 29 * // weight: 143.8 30 * // } 31 * // ] 32 */ 33declare function autocomplete( 34 query: string, 35 /** @default 6 */ 36 limit?: number, 37 /** 38 * If you set `fuzzy` to `true`, words with a 39 * [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) `<= 3` will be taken into account. 40 * This is a lot slower though. 41 * 42 * @default false 43 */ 44 fuzzy?: boolean, 45 /** 46 * Setting `completion` to `false` speeds things up. 47 * 48 * @default true 49 */ 50 completion?: boolean, 51): autocomplete.Result[]; 52 53declare namespace autocomplete { 54 interface Result { 55 id: string; 56 relevance: number; 57 score: number; 58 weight: number; 59 } 60} 61
These definitions were written by BendingBender.
No vulnerabilities found.
Reason
all changesets reviewed
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More