This commit is contained in:
2017-08-14 17:50:48 +02:00
commit ce2751e383
16 changed files with 563 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import * as plugins from './smartnpm.plugins'
interface ISearchObject {
// metadata
author?: string
maintainer: string
scope?: string
deprecated?: boolean
unstable?: boolean
insecure?: boolean
boostExact: boolean
scoreEffect: number
// Analytics
qualityWeight: number
popularityWeight: number
maintenanceWeight: number
}
export class NpmRegistry {
search (searchObject: ISearchObject) {
let response = await plugins.Smartrequest
}
}