{"name":"@putout/cli-filesystem","version":"2.0.1","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":"^22.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1","putout":"*","supertape":"^9.0.0"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"gitHead":"d33c7cbb8e259c0e8215964ef42bc1ac661ae25a","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/cli-filesystem@2.0.1","_nodeVersion":"20.10.0","_npmVersion":"9.6.6","dist":{"integrity":"sha512-jmNzwf7t1M4AAM6EWobSZgL281JidKhwYRw++FADzYr2x4MZ4ZQObm8B0ZNu2da2OWJ/NOcDvtNqqzVZSGPxhA==","shasum":"c0ace29a9e517fe613a9e1af5e50ad755c546ccf","tarball":"http://registry-npm.ywwl.com/@putout/cli-filesystem/download/@putout/cli-filesystem-2.0.1.tgz","fileCount":4,"unpackedSize":4583,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICJjlO+l5p9xDLsB8I0aGCJmk/e5LclXFq96yhuj0f9TAiBxP3H4imI98OpLM+49z1ZHjCRiNc2ck71iltFP+7lfug=="}],"size":1987,"noattachment":false,"key":"/@putout/cli-filesystem/-/@putout/cli-filesystem-2.0.1.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_2.0.1_1703325517452_0.19437315593360682"},"_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":1703325517639,"_cnpm_publish_time":1703325517639,"dist-tags":{"latest":"3.0.0"}}