{"name":"@putout/cli-filesystem","version":"3.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"API to help lint filesystem","homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-filesystem#readme","main":"lib/filesystem.js","type":"module","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","cli"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0","madrun":"^12.0.0","nodemon":"^3.0.1","putout":"*","supertape":"^12.0.0"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/cli-filesystem@3.0.0","gitHead":"8e8003cc8b687fbf239f85e9beeaf70f3bb595ac","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"integrity":"sha512-G+AgbhIRtM8NNGnGfAGHIS1ctvtqNAe1aaDGrInUEW8c2Uz37EFUl/nEMvX8bnGRzOdMuk1fgh3Hs7t8oCia0w==","shasum":"e5ea5bdc9f04a4a9e092aa9d6b4be59a1adfba34","tarball":"http://registry-npm.ywwl.com/@putout/cli-filesystem/download/@putout/cli-filesystem-3.0.0.tgz","fileCount":4,"unpackedSize":4746,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGoM2NxduMuR5q2rwqsWGkN66V0DoBcSbCuewhgKCQbPAiAIcOuaw52QWzlInc/1/wEspBvE34DHLD8CEZxaIHT+ZA=="}],"size":2004,"noattachment":false,"key":"/@putout/cli-filesystem/-/@putout/cli-filesystem-3.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli-filesystem_3.0.0_1768157280883_0.3846124124655499"},"_hasShrinkwrap":false,"readme":"# @putout/cli-filesystem [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/cli-filesystem.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/cli-filesystem \"npm\"\n\nAPI to lint filesystem.\n\n## Install\n\n```\nnpm i @putout/cli-filesystem\n```\n\n## API\n\n### `renameFile(from: string, to: string)`\n\n```js\nrenameFile('/hello/world.txt', '/hello/hello.txt');\n```\n\n### `removeFile(filename: string)`\n\n```js\nremoveFile('/hello/world.txt');\n```\n\n### `copyFile(from: string, to: string)`\n\n```js\ncopyFile('/hello/world.txt', '/hello/hello.txt');\n```\n\n### `createDirectory(name: string)`\n\n```js\ncreateDirectory('/hello/world');\n```\n\n### `readFileContent(name: string)`\n\n```js\nreadFileContent('/hello/world');\n// returns\n'hello';\n```\n\n### `writeFileContent(name: string, content: string)`\n\nIf parent directory not exists - creates it.\n\n```js\nwriteFileContent('/hello/world', 'hello');\nreadFileContent('/hello/world');\n// returns\n'hello';\n```\n\n## License\n\nMIT\n","publish_time":1768157281023,"_cnpm_publish_time":1768157281023,"dist-tags":{"latest":"3.0.0"}}