{"name":"hexo-fs","version":"4.1.0","keywords":["file","file system","fs","hexo"],"author":{"url":"https://zespia.tw","name":"Tommy Chen","email":"tommy351@gmail.com"},"license":"MIT","_id":"hexo-fs@4.1.0","maintainers":[{"name":"ertrzyiks","email":"mateusz.derks@gmail.com"},{"name":"abnerchou","email":"hi@abnerchou.me"},{"name":"tommy351","email":"tommy351@gmail.com"},{"name":"hexobot","email":"hexojs@gmail.com"},{"name":"jlhwung","email":"i@jhuang.me"},{"name":"tomap","email":"piartt@gmail.com"},{"name":"curben","email":"bushedge@protonmail.com"},{"name":"yoshinorin","email":"yoshinorin.net@outlook.com"}],"homepage":"https://hexo.io/","bugs":{"url":"https://github.com/hexojs/hexo-fs/issues"},"dist":{"shasum":"560f1a26a549acd35d73248cb21246d7a4b6b1e5","tarball":"http://registry-npm.ywwl.com/hexo-fs/download/hexo-fs-4.1.0.tgz","fileCount":6,"integrity":"sha512-sltBqOhSUXzF7dqnz8nDSwCvYPzOL1Q6ESilc6LGWEu9q87rF67/MlQtNbZjuO4AkY3S2/skYz58SYOI5QN9/Q==","signatures":[{"sig":"MEYCIQCL/kwZtPkEmUqQWrI1GkVzIfsNtftK56kSci//xuVfJgIhAPP2ppNbsIQcJGf1zPq6N4NTP7FhF1IkTpNrbcfWvXkA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51181,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjY5kYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMqA/+MmPRIQ4yvkMwUXdIild3eddbm0emQ1+TN4YAR8kY/+wb2EvX\r\n2ViHFIkuYW2mmud0q0DqOKTKYYdxjVihoihIkjrbGXvsXyoYuOwdXMtEFLdX\r\nEuBvX86oleYQRS8vhgYx7Q8WR3Ou2fXNrxPiLzMTqqaCUytmiwyf+esE+EvC\r\npFKOSFJlgZJuTJlx4UewQ2mb0rUdsD2YpRlwRtGPGg0x6WRcbS72UbOVhhdT\r\nVBB6wLOPZM7Zq+9v+ryq/0lfucv9yTiTKJMdIkAl3WE2yIBCx3ZQGR0PhDMG\r\n+hOoXH1EMmUgnKdKO4l7KEnzWTq1j7uskKBu5LZ3h9i4ucuG0lVXHSQLlyUY\r\ngfQ3fHIXczOEAhIDLcWBe4CrA58l8LAvHq6vKpe/UbeAfHm5cqIIRt6dDgON\r\nDRIe5qwn7NYpb5mV4WvR6p50Iw03NpIFsfULaxpyyC0R1mkoNmQBt7X395f8\r\n/T0NEkhhRY3bADsTBr3QKPm86i7+mnrF5qKteCOzOSt0K/9Kwh1hOAmiajbr\r\nInO1lW4BdaCqYPtz50Tdwea/bN2KBD2e76nNi9Qtyg8CWfKbvVcgj1o3fbYj\r\nK2rtp6tAyXCq9ItJ1YsoKN3Qi9hI1+lEnD/L4KrHN8encrd8/bBsDveYckwA\r\nTxFUXoT08kXDglCmA8kqXjKIZl/fQ4WPeq8=\r\n=PAob\r\n-----END PGP SIGNATURE-----\r\n","size":9968,"noattachment":false,"key":"/hexo-fs/-/hexo-fs-4.1.0.tgz"},"main":"./dist/fs.js","types":"./dist/fs.d.ts","engines":{"node":">=14"},"gitHead":"03531371495999ed5a1d333356647e6ab5b7a526","scripts":{"test":"mocha test/index.js --require ts-node/register","build":"tsc -b","clean":"tsc -b --clean","eslint":"eslint .","pretest":"npm run clean && npm run build","test-cov":"c8 --reporter=lcovonly npm run test","prepublish ":"npm run clean && npm run build"},"_npmUser":{"name":"yoshinorin","email":"yoshinorin.net@outlook.com"},"repository":{"url":"git+https://github.com/hexojs/hexo-fs.git","type":"git"},"_npmVersion":"8.4.0","description":"File system module for Hexo.","directories":{},"_nodeVersion":"16.16.0","dependencies":{"bluebird":"^3.7.2","chokidar":"^3.5.3","hexo-util":"^2.7.0","graceful-fs":"^4.2.10"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.12.0","chai":"^4.3.6","mocha":"^10.0.0","eslint":"^8.23.0","ts-node":"^10.9.1","typescript":"^4.8.3","@types/node":"^18.7.16","@types/bluebird":"^3.5.36","@types/graceful-fs":"^4.1.5","eslint-config-hexo":"^5.0.0","eslint-plugin-import":"^2.26.0","@typescript-eslint/parser":"^5.36.2","@typescript-eslint/eslint-plugin":"^5.36.2"},"_npmOperationalInternal":{"tmp":"tmp/hexo-fs_4.1.0_1667471640556_0.9194570432400639","host":"s3://npm-registry-packages"},"readme":"# hexo-fs\n\n[![CI](https://github.com/hexojs/hexo-fs/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/hexojs/hexo-fs/actions/workflows/ci.yml)\n[![NPM version](https://badge.fury.io/js/hexo-fs.svg)](https://www.npmjs.com/package/hexo-fs)\n[![Coverage Status](https://coveralls.io/repos/github/hexojs/hexo-fs/badge.svg)](https://coveralls.io/github/hexojs/hexo-fs)\n\nFile system module for [Hexo].\n\n## Features\n\n- Support for both Promise and callback interface.\n- Use [graceful-fs] to avoid EMFILE error and various improvements.\n- Use [chokidar] for consistent file watching.\n\n## Installation\n\n``` bash\n$ npm install hexo-fs --save\n```\n\n## Usage\n\n``` js\nconst fs = require('hexo-fs');\n```\n\n> Some methods in the original fs module are not listed below, but they're available in hexo-fs.\n\n### exists(path)\n\nTest whether or not the given `path` exists by checking with the file system.\n\n### existsSync(path)\n\nSynchronous version of `fs.exists`.\n\n### mkdirs(path)\n\nCreates a directory and its parent directories if they does not exist.\n\n### mkdirsSync(path)\n\nSynchronous version of `fs.mkdirs`.\n\n### writeFile(path, data, [options])\n\nWrites data to a file.\n\nOption | Description | Default\n--- | --- | ---\n`encoding` | File encoding | utf8\n`mode` | Mode | 438 (0666 in octal)\n`flag` | Flag | w\n\n### writeFileSync(path, data, [options])\n\nSynchronous version of `fs.writeFile`.\n\n### appendFile(path, data, [options])\n\nAppends data to a file.\n\nOption | Description | Default\n--- | --- | ---\n`encoding` | File encoding | utf8\n`mode` | Mode | 438 (0666 in octal)\n`flag` | Flag | w\n\n### appendFileSync(path, data, [options])\n\nSynchronous version of `fs.appendFile`.\n\n### copyFile(src, dest, [callback])\n\nCopies a file from `src` to `dest`.\n\n### copyDir(src, dest, [options])\n\nCopies a directory from `src` to `dest`. It returns an array of copied files.\n\nOption | Description | Default\n--- | --- | ---\n`ignoreHidden` | Ignore hidden files | true\n`ignorePattern` | Ignore files which pass the regular expression |\n\n### listDir(path, [options])\n\nLists files in a directory.\n\nOption | Description | Default\n--- | --- | ---\n`ignoreHidden` | Ignore hidden files | true\n`ignorePattern` | Ignore files which pass the regular expression |\n\n### listDirSync(path, [options])\n\nSynchronous version of `fs.listDir`.\n\n### readFile(path, [options])\n\nReads the entire contents of a file.\n\nOption | Description | Default\n--- | --- | ---\n`encoding` | File encoding | utf8\n`flag` | Flag | r\n`escape` | Escape UTF BOM and line ending in the content | true\n\n### readFileSync(path, [options])\n\nSynchronous version of `fs.readFile`.\n\n### emptyDir(path, [options])\n\nDeletes all files in a directory. It returns an array of deleted files.\n\nOption | Description | Default\n--- | --- | ---\n`ignoreHidden` | Ignore hidden files | true\n`ignorePattern` | Ignore files which pass the regular expression |\n`exclude` | Ignore files in the array |\n\n### emptyDirSync(path, [options])\n\nSynchronous version of `fs.emptyDir`.\n\n### rmdir(path)\n\nRemoves a directory and all files in it.\n\n### rmdirSync(path)\n\nSynchronous version of `fs.rmdir`.\n\n### watch(path, [options])\n\nWatches changes of a file or a directory.\n\nSee [Chokidar API](https://github.com/paulmillr/chokidar#api) for more info.\n\n### ensurePath(path)\n\nEnsures the given path is available to use or appends a number to the path.\n\n### ensurePathSync(path)\n\nSynchronous version of `fs.ensurePath`.\n\n### ensureWriteStream(path, [options])\n\nCreates the parent directories if they does not exist and returns a writable stream.\n\n### ensureWriteStreamSync(path, [options])\n\nSynchronous version of `fs.ensureWriteStream`.\n\n## License\n\nMIT\n\n[graceful-fs]: https://github.com/isaacs/node-graceful-fs\n[Hexo]: https://hexo.io/\n[chokidar]: https://github.com/paulmillr/chokidar","publish_time":1667471640835,"_cnpm_publish_time":1667471640835,"dist-tags":{"latest":"5.0.1","legacy":"2.0.1"}}