UNPKG
find-and-read-package-json
Version:
latest (2.0.2)
2.0.2
2.0.1
2.0.0
1.0.0
Find and read data from a package.json file.
jameslnewell/find-and-read-package-json
find-and-read-package-json
/
lib
/
index.js.flow
10 lines
(9 loc)
•
232 B
Flow
View Raw
1
2
3
4
5
6
7
8
9
10
declare
export
interface
Options
{
cache
?: { [
file
:
string
]:
any
},
transform
?:
(
json
:
any
) =>
any
}
declare
export
default
function
findAndReadPackageJson
(
directory
:
string
,
options
?:
Options
):
Promise
<{
file
:
string
,
json
:
any
}>