package.js
api.imply(packageNames, [architecture])
Give users of this package access to another package (by passing in the string packagename
) or a collection of packages (by passing in an array of strings [packagename1
, packagename2
]
Arguments
- packageNames String or Array of Strings
-
Name of a package, or array of package names, with an optional @version component for each.
- architecture String or Array of Strings
-
If you only use the package on the server (or the client), you can pass in the second argument (e.g.,
'server'
,'client'
,'web.browser'
,'web.cordova'
) to specify what architecture the package is used with. You can specify multiple architectures by passing in an array, for example['web.cordova', 'os.linux']
.
Please login to continue.