littledivy / napi-rusty-v8

[wip] Implementation of N-API for deno_core
MIT License
37 stars 3 forks source link

feat: make `@parcel/fs-search` work #16

Closed littledivy closed 2 years ago

littledivy commented 2 years ago

Towards #12

const lib = dlopen(
  "./testdata/node_modules/@parcel/fs-search/fs-search.darwin-arm64.node",
);

const file = lib.findFirstFile(
  [
    "./test/example_non_existent.js",
    "./test/example.js",
    "./test/example_non_existent2.js",
  ],
);

print(file); // ./test/example.js