@putout/cli-filesystem
API to help lint filesystem
Last updated 2 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/cli-filesystem 
SYNC missed versions from official npm registry.

@putout/cli-filesystem NPM version

API to lint filesystem.

Install

npm i @putout/cli-filesystem

API

renameFile(from: string, to: string)

renameFile('/hello/world.txt', '/hello/hello.txt');

removeFile(filename: string)

removeFile('/hello/world.txt');

copyFile(from: string, to: string)

copyFile('/hello/world.txt', '/hello/hello.txt');

createDirectory(name: string)

createDirectory('/hello/world');

readFileContent(name: string)

readFileContent('/hello/world');
// returns
'hello';

writeFileContent(name: string, content: string)

If parent directory not exists - creates it.

writeFileContent('/hello/world', 'hello');
readFileContent('/hello/world');
// returns
'hello';

License

MIT

Current Tags

  • 3.0.0                                ...           latest (3 months ago)

11 Versions

  • 3.0.0                                ...           3 months ago
  • 2.1.0                                ...           a year ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.6.0                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.4.0                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 2
Dependencies (0)
None
Dev Dependencies (9)

Copyright 2013 - present © cnpmjs.org | Home |