{"name":"@putout/cli-filesystem","version":"1.4.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":"43509eadd98f64fc7e8ca7e1706e4fda01794529","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/cli-filesystem@1.4.0","_nodeVersion":"18.16.0","_npmVersion":"9.6.6","dist":{"integrity":"sha512-UkGmlM0OUeqjrq8khdt1tWLnwm7CSyuwtGqtd75M2sCnU3ijOubQNEhFVNtm6lMSlzaPeQ7aPX3V65YYSKhnew==","shasum":"199068da10c565a346272b96870ac69d323ef537","tarball":"http://registry-npm.ywwl.com/@putout/cli-filesystem/download/@putout/cli-filesystem-1.4.0.tgz","fileCount":4,"unpackedSize":3999,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOx2khUxkfSuod1f5GpXUWqcrJH5bEmzp9L4esr4dZygIgcuGygElEWa7FmUpWYgiiE+eFYupVkJi7qiMnt561MOg="}],"size":1835,"noattachment":false,"key":"/@putout/cli-filesystem/-/@putout/cli-filesystem-1.4.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.4.0_1700667308367_0.3369401312337226"},"_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":1700667308643,"_cnpm_publish_time":1700667308643,"dist-tags":{"latest":"3.0.0"}}