{"name":"@putout/cli-filesystem","version":"1.6.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":"00000fa0ddbc61817dbf6476afb504a0ddae0b9c","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/cli-filesystem@1.6.0","_nodeVersion":"16.20.1","_npmVersion":"9.6.6","dist":{"integrity":"sha512-QnwJMNpWFgQvvpB/tceDY6k/0LOnfS08VpK/tB4WhRqBvW8TcJpbDgB9yg8NV4IUGXPTixJPEB6F+7AMQ51hYw==","shasum":"57755a8871f5c9f548de643538280b7dfcaaff01","tarball":"http://registry-npm.ywwl.com/@putout/cli-filesystem/download/@putout/cli-filesystem-1.6.0.tgz","fileCount":4,"unpackedSize":4366,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGcGGM4H9MiRY8gnK7kt0CMMBmOnmJ3hUKiZwJhZQ8WNAiBpqlZbQdqnkxvMMi45yk8ICYWCYmxe3oR+U7ZM/gvggg=="}],"size":1903,"noattachment":false,"key":"/@putout/cli-filesystem/-/@putout/cli-filesystem-1.6.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.6.0_1701900172957_0.14114605154322457"},"_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":1701900173129,"_cnpm_publish_time":1701900173129,"dist-tags":{"latest":"3.0.0"}}