cmd-snippets

1.3.1 • Public • Published

cmd-snippets

version license created by Ivan Polushin

Create cmd snippets

Install

npm

npm i -g cmd-snippets

yarn

yarn global add cmd-snippets

Usage

Add script to %appdata%/cmd-snippets-storage

echo console.log('hello world') >> C:\\Users\\User\\AppData\\Roaming\\cmd-snippets-storage\\hello-world.js

Or

echo "console.log('hello world')" >> ~/.config/cmd-snippets-storage/hello-world.js

And now you can run it with

snip hello-world

To list all snippets run

snip list

Currently support python and node (but it can be extended in EXECUTORS)

Package Sidebar

Install

npm i cmd-snippets

Weekly Downloads

1

Version

1.3.1

License

MIT

Unpacked Size

5.19 kB

Total Files

4

Last publish

Collaborators

  • polioan