Skip to content

Commit

Permalink
Merge pull request #5 from privatenumber/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber authored Oct 24, 2021
2 parents 31c35d7 + db7c1fc commit acd3043
Show file tree
Hide file tree
Showing 10 changed files with 886 additions and 391 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npx ci
- name: Build
- name: Build & Typecheck
run: npm run build
- name: Lint
run: npm run lint
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# fs-require [![Latest version](https://badgen.net/npm/v/fs-require)](https://npm.im/fs-require) <!-- [![Monthly downloads](https://badgen.net/npm/dm/fs-require)](https://npm.im/fs-require) -->[![Install size](https://packagephobia.now.sh/badge?p=fs-require)](https://packagephobia.now.sh/result?p=fs-require) [![Bundle size](https://badgen.net/bundlephobia/minzip/fs-require)](https://bundlephobia.com/result?p=fs-require)
# fs-require [![Latest version](https://badgen.net/npm/v/fs-require)](https://npm.im/fs-require) [![Monthly downloads](https://badgen.net/npm/dm/fs-require)](https://npm.im/fs-require) [![Install size](https://packagephobia.now.sh/badge?p=fs-require)](https://packagephobia.now.sh/result?p=fs-require) [![Bundle size](https://badgen.net/bundlephobia/minzip/fs-require)](https://bundlephobia.com/result?p=fs-require)

Create a `require()` function from any file-system.

Expand Down Expand Up @@ -65,5 +65,10 @@ To disable this behavior and resolve to the real `fs` module, set this to `true`
You can also pass in a different file-system too.


## 💁‍♂️ FAQ
### Can it resolve case insensitive paths?
Case sensitivity in paths is a file-system concern so it would depend on the `fs` passed in. For example, [macOS (native fs) is case insensitive](https://discussions.apple.com/thread/251191099#:~:text=No.,have%20two%20files%20named%20File.). [memfs is case sensitive](https://github.com/streamich/memfs/issues/533).


## 👨‍👩‍👧 Related
- [fs-monkey](https://github.com/streamich/fs-monkey) - By the same author of [memfs](https://github.com/streamich/memfs). Patches the global `require` to access a virtual fs.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@
]
},
"devDependencies": {
"@pvtnbr/eslint-config-typescript": "^0.1.15",
"@types/jest": "^26.0.23",
"@types/node": "^15.6.0",
"@pvtnbr/eslint-config": "^0.4.1",
"@types/jest": "^26.0.24",
"@types/node": "^15.14.9",
"es-jest": "^1.2.0",
"eslint": "^7.24.0",
"eslint": "^7.32.0",
"esno": "^0.5.0",
"husky": "^4.3.8",
"jest": "^26.6.3",
"lint-staged": "^10.5.4",
"memfs": "^3.2.2",
"typescript": "^4.2.4"
"typescript": "^4.4.4"
},
"eslintConfig": {
"extends": "@pvtnbr/eslint-config-typescript"
"extends": "@pvtnbr/eslint-config"
}
}
Loading

0 comments on commit acd3043

Please sign in to comment.