UNPKG
runas-contexts
Version:
latest (1.5.0)
1.5.0
1.4.0
1.3.0
1.2.0
1.0.4
1.0.3
1.0.2
1.0.0
Contexts of runas
gitlab.com/runas/runas-contexts
runas-contexts
/
contexts
/
npm-library
/
index.js
13 lines
(9 loc)
•
255 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
const
fsUtils =
require
(
'../../lib/fsUtils'
)
module
.
exports
= {
check
(
) {
const
pkgfile = fsUtils.
readConfig
(
'package.json'
,
true
)
return
pkgfile.
keywords
!==
undefined
&& pkgfile.
keywords
.
indexOf
(
'npm-library'
) >=
0
} }