mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-09 18:39:25 +02:00
modified
This commit is contained in:
-24
@@ -1,24 +0,0 @@
|
||||
This is free and unencumbered software released into the public domain.
|
||||
|
||||
Anyone is free to copy, modify, publish, use, compile, sell, or
|
||||
distribute this software, either in source code form or as a compiled
|
||||
binary, for any purpose, commercial or non-commercial, and by any
|
||||
means.
|
||||
|
||||
In jurisdictions that recognize copyright laws, the author or authors
|
||||
of this software dedicate any and all copyright interest in the
|
||||
software to the public domain. We make this dedication for the benefit
|
||||
of the public at large and to the detriment of our heirs and
|
||||
successors. We intend this dedication to be an overt act of
|
||||
relinquishment in perpetuity of all present and future rights to this
|
||||
software under copyright law.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
For more information, please refer to <https://unlicense.org>
|
||||
-45
@@ -1,45 +0,0 @@
|
||||
# fs-monkey
|
||||
|
||||
[![][npm-img]][npm-url] [![][travis-badge]][travis-url]
|
||||
|
||||
Monkey-patches for filesystem related things.
|
||||
|
||||
- Rewrite `require` function to load Node's modules from memory.
|
||||
- Or rewrite the whole `fs` filesystem module.
|
||||
|
||||
## Install
|
||||
|
||||
```shell
|
||||
npm install --save fs-monkey
|
||||
```
|
||||
|
||||
## Terms
|
||||
|
||||
An *fs-like* object is an object that implements methods of Node's
|
||||
[filesystem API](https://nodejs.org/api/fs.html).
|
||||
It is denoted as `vol`:
|
||||
|
||||
```js
|
||||
let vol = {
|
||||
readFile: () => { /* ... */ },
|
||||
readFileSync: () => { /* ... */ },
|
||||
// etc...
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
## Reference
|
||||
|
||||
- [`patchFs`](./docs/api/patchFs.md) - rewrites Node's filesystem module `fs` with *fs-like* object `vol`
|
||||
- [`patchRequire`](./docs/api/patchRequire.md) - rewrites `require` function, patches Node's `module` module to use a given *fs-like* object for module loading
|
||||
|
||||
|
||||
[npm-img]: https://img.shields.io/npm/v/fs-monkey.svg
|
||||
[npm-url]: https://www.npmjs.com/package/fs-monkey
|
||||
[travis-url]: https://travis-ci.org/streamich/fs-monkey
|
||||
[travis-badge]: https://travis-ci.org/streamich/fs-monkey.svg?branch=master
|
||||
|
||||
|
||||
## License
|
||||
|
||||
[Unlicense](./LICENSE) - public domain.
|
||||
-69
@@ -1,69 +0,0 @@
|
||||
{
|
||||
"name": "fs-monkey",
|
||||
"version": "1.0.5",
|
||||
"description": "Monkey patches for file system related things.",
|
||||
"main": "lib/index.js",
|
||||
"license": "Unlicense",
|
||||
"keywords": [
|
||||
"fs",
|
||||
"file",
|
||||
"file system",
|
||||
"monkey",
|
||||
"fsmonkey",
|
||||
"monkeyfs",
|
||||
"monkeypatch",
|
||||
"patch"
|
||||
],
|
||||
"files": [
|
||||
"lib",
|
||||
"!lib/__tests__",
|
||||
"docs"
|
||||
],
|
||||
"directories": {
|
||||
"doc": "docs"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/streamich/fs-monkey.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "babel src --out-dir lib",
|
||||
"test": "jest"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.18.6",
|
||||
"@babel/core": "^7.18.6",
|
||||
"@babel/preset-env": "^7.18.6",
|
||||
"@semantic-release/changelog": "^6.0.1",
|
||||
"@semantic-release/git": "^10.0.1",
|
||||
"@semantic-release/npm": "^9.0.1",
|
||||
"@types/jest": "^29.0.0",
|
||||
"@types/node": "^8.10.66",
|
||||
"babel-jest": "^29.0.0",
|
||||
"jest": "^29.0.0",
|
||||
"semantic-release": "^19.0.3",
|
||||
"source-map-support": "^0.5.21"
|
||||
},
|
||||
"release": {
|
||||
"verifyConditions": [
|
||||
"@semantic-release/changelog",
|
||||
"@semantic-release/npm",
|
||||
"@semantic-release/git"
|
||||
],
|
||||
"prepare": [
|
||||
"@semantic-release/changelog",
|
||||
"@semantic-release/npm",
|
||||
"@semantic-release/git"
|
||||
]
|
||||
},
|
||||
"jest": {
|
||||
"collectCoverageFrom": [
|
||||
"src/**/*.js"
|
||||
],
|
||||
"transform": {
|
||||
"^.+\\.jsx?$": "babel-jest"
|
||||
},
|
||||
"testRegex": ".*(__tests__/|/test/unit/).*(test|spec)\\.(t|j)sx?$"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user