3.1.1 β€’ Published 11 months ago

@putout/plugin-cloudcmd v3.1.1

Weekly downloads
357
License
MIT
Repository
github
Last release
11 months ago

@putout/plugin-cloudcmd NPM version

🐊Putout plugin adds ability to transform to new Cloud Commander API.

Install

npm i putout @putout/plugin-cloudcmd -D

Add .putout.json with:

{
    "plugins": {
        "cloudcmd": "on"
    }
}

Rules

{
    "rules": {
        "cloudcmd/convert-io-mv-to-io-move": "on",
        "cloudcmd/convert-io-cp-to-io-copy": "on",
        "cloudcmd/convert-load-dir-to-change-dir": "on"
    }
}

convert-io-mv-to-io-move

❌ Example of incorrect code

await IO.mv({
    from: dirPath,
    to: mp3Dir,
    names: mp3Names,
});

βœ… Example of correct code

await IO.move(dirPath, mp3Dir, mp3Names);

convert-io-cp-to-io-copy

❌ Example of incorrect code

await IO.cp({
    from: dirPath,
    to: mp3Dir,
    names: mp3Names,
});

βœ… Example of correct code

await IO.copy(dirPath, mp3Dir, mp3Names);

convert-io-write-to-io-create-directory

❌ Example of incorrect code

await IO.write(`${mp3Dir}?dir`);

βœ… Example of correct code

await IO.createDirectory(mp3Dir);

convert-load-dir-to-change-dir

Check out in 🐊Putout Editor.

❌ Example of incorrect code

await CloudCmd.loadDir({
    path: '/',
    panel,
});

βœ… Example of correct code

await CloudCmd.changeDir('/', {
    panel,
});

License

MIT

3.1.1

11 months ago

3.1.0

11 months ago

3.0.0

11 months ago

2.1.0

1 year ago

2.0.0

1 year ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago