{"name":"@putout/cli-filesystem","version":"1.5.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":"commonjs","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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":{"c8":"^8.0.0","eslint":"^8.0.1","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^21.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^3.0.1","putout":"*","supertape":"^8.0.0"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"7d7b33fd7fd68e9b787f60665e16b823721602b4","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/cli-filesystem@1.5.0","_nodeVersion":"20.9.0","_npmVersion":"9.6.6","dist":{"integrity":"sha512-GU43HOs32BIW5dCYYtLu1cKV+Yin7k5I/+G8XQfR1ymYIuWnsyS6ZSJuw7uZWBGsAz/v4vo1ZxFTzJY33vjdTA==","shasum":"6e4d00cc3e56f9cc7b6003da978cb69b3a5ef808","tarball":"http://registry-npm.ywwl.com/@putout/cli-filesystem/download/@putout/cli-filesystem-1.5.0.tgz","fileCount":4,"unpackedSize":4332,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5KakvT3EVR4PrO/M3Hxh7AdLmm1StetDE5WRGir4YKgIgSx300bzzv2V82rGe/tEpCaPK4aBhBRzjn5jTBXd42ls="}],"size":1902,"noattachment":false,"key":"/@putout/cli-filesystem/-/@putout/cli-filesystem-1.5.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","tmp":"tmp/cli-filesystem_1.5.0_1700685472380_0.9494301609388416"},"_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":1700685472558,"_cnpm_publish_time":1700685472558,"dist-tags":{"latest":"3.0.0"}}