Mô phỏng find . -name node_modules -prune -o -print — in các đường dẫn không đi qua thư mục node_modules. Một đường dẫn bị loại nếu chứa thành phần thư mục node_modules (tức node_modules/ xuất hiện sau đầu dòng hoặc sau /). Giữ nguyên thứ tự.
Ví dụ:
Input:
src/index.js
node_modules/react/index.js
src/node_modules/x.js
package.json
Output:
src/index.js
package.json
Mỗi dòng một đường dẫn dùng / phân tách. Không chứa khoảng trắng.
1 ≤ số dòng ≤ 1000.
Các đường dẫn không đi qua node_modules, giữ nguyên thứ tự.
Ví dụ:
Đầu vào:
src/index.js
node_modules/react/index.js
src/node_modules/x.js
package.json
Đầu ra:
src/index.js
package.json
Giải thích:
Đang tải editor...