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.d.ts
11 lines
(10 loc)
•
248 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
export
interface
Options
{
cache
?: { [
file
:
string
]:
any
; };
transform
?:
(
json
:
any
) =>
any
; }
export
default
function
findAndReadPackageJson
(
directory
:
string
,
options
?:
Options
):
Promise
<{
file
:
string
;
json
:
any
; }>;