open-index/open-npm huggingface dataset:
npm package: @jswork/ushell-module-dotfiles
Description: Unix like shell module for dotfiles.
Author: afei
Latest version: 1.0.0

# ushell-module-dotfiles
> Unix like shell module for dotfiles.

## installation
```shell
npm i -S @jswork/ushell-module-dotfiles
```

## commands
```bash
## clone from github:
git clone git@github.com:afeiship/dotfiles.git ~/.dotfiles

## install symbol link:
~/.dotfiles/bin dfm install;

## if faild paste to .bash_profile
echo '. $HOME/.shellrc.load' >> ~/.bash_profile;
```

## aliyun-centos
+ errors for dfm:
```conf
Can't locate Data/Dumper.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /root/.dotfiles/bin/dfm line 6.
BEGIN failed--compilation aborted at /root/.dotfiles/bin/dfm line 6.
```

```bash
tar xvzf Data-Dumper-2.121.tar.gz
cd Data-Dumper-2.121
perl Makefile.PL
make
make install
```

## resources
- https://help.directadmin.com/item.php?id=189
- http://search.cpan.org/~ilyam/Data-Dumper-2.121/Dumper.pm
npm package: @jswork/ushell-module-eslint
Description: Ushell module for eslint.
Latest version: 1.0.0

# ushell-module-eslint
> Ushell module for eslint.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![download][download-image]][download-url]

## installation
```shell
npm i -S @jswork/ushell-module-eslint
```


## license
Code released under [the MIT license](https://github.com/afeiship/ushell-module-eslint/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@feizheng/ushell-module-eslint
[version-url]: https://npmjs.org/package/@feizheng/ushell-module-eslint

[license-image]: https://img.shields.io/npm/l/@feizheng/ushell-module-eslint
[license-url]: https://github.com/afeiship/ushell-module-eslint/blob/master/LICENSE.txt

[download-image]: https://img.shields.io/npm/dm/@feizheng/ushell-module-eslint
[download-url]: https://www.npmjs.com/package/@feizheng/ushell-module-eslint
npm package: @jswork/ushell-module-ffmpeg
Description: Ffmpeg to env path.
Latest version: 1.0.1

# ushell-module-ffmpeg
> Ffmpeg to env path.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![download][download-image]][download-url]

## installation
```shell
npm i @jswork/ushell-module-ffmpeg
```

> ffmpeg install
```shell
# 1. down load build package.
cd ~/soft
wget https://evermeet.cx/ffmpeg/ffmpeg-4.3.1.7z
open ffmpeg-4.3.1.7z
mv ffmpeg bin/

# 2. install `@jswork/ushell-module-ffmpeg`
# 3. ffmpeg -version
```

## dependencies
- https://ffmpeg.org/
- https://github.com/FFmpeg/FFmpeg
- https://ffmpeg.org/download.html#build-mac
- https://superuser.com/questions/624561/install-ffmpeg-on-os-x

## license
Code released under [the MIT license](https://github.com/afeiship/ushell-module-ffmpeg/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@feizheng/ushell-module-ffmpeg
[version-url]: https://npmjs.org/package/@feizheng/ushell-module-ffmpeg

[license-image]: https://img.shields.io/npm/l/@feizheng/ushell-module-ffmpeg
[license-url]: https://github.com/afeiship/ushell-module-ffmpeg/blob/master/LICENSE.txt

[download-image]: https://img.shields.io/npm/dm/@feizheng/ushell-module-ffmpeg
[download-url]: https://www.npmjs.com/package/@feizheng/ushell-module-ffmpeg
npm package: @jswork/ushell-module-flutter
Description: Flutter unix modules.
Latest version: 1.0.6

# ushell-module-flutter
> Flutter unix modules.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![download][download-image]][download-url]

## installation
```shell
npm i -S @jswork/ushell-module-flutter
```

## license
Code released under [the MIT license](https://github.com/afeiship/ushell-module-flutter/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/ushell-module-flutter
[version-url]: https://npmjs.org/package/@jswork/ushell-module-flutter

[license-image]: https://img.shields.io/npm/l/@jswork/ushell-module-flutter
[license-url]: https://github.com/afeiship/ushell-module-flutter/blob/master/LICENSE.txt

[download-image]: https://img.shields.io/npm/dm/@jswork/ushell-module-flutter
[download-url]: https://www.npmjs.com/package/@jswork/ushell-module-flutter
npm package: @jswork/ushell-module-git
Description: Unix like shell module for git.
Author: afei
Latest version: 1.0.71

# ushell-module-git
> Unix like shell module for git.

## installation
```shell
npm i -S @jswork/ushell-module-git
```

## dependencies
```shell
# git-sweep
npm i -g @jswork/git-sweep
```

## encoding utf-8
+ http://www.worldhello.net/gotgit/08-git-misc/020-git-charset.html

## install private package:
> Git仓库当私有npm
> 这个方法得益于，npm提供的的丰富安装方法。通过下面方法安装：

```bash
npm i -S git+ssh://git@git.showgold.cn:npm/hello.git
npm install -S git+ssh://git@github.com:npm/npm.git#v1.0.27
npm install -S git+ssh://git@github.com:npm/npm#semver:^5.0
npm install -S git+https://isaacs@github.com/npm/npm.git
npm install -S git://github.com/npm/npm.git#v1.0.27
```
npm package: @jswork/ushell-module-go
Description: Ushell module for golang.
Latest version: 1.0.8

# ushell-module-go
> Ushell module for golang.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![download][download-image]][download-url]

## installation
```shell
npm i -S @jswork/ushell-module-go
```

## license
Code released under [the MIT license](https://github.com/afeiship/ushell-module-go/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/ushell-module-go
[version-url]: https://npmjs.org/package/@jswork/ushell-module-go

[license-image]: https://img.shields.io/npm/l/@jswork/ushell-module-go
[license-url]: https://github.com/afeiship/ushell-module-go/blob/master/LICENSE.txt

[download-image]: https://img.shields.io/npm/dm/@jswork/ushell-module-go
[download-url]: https://www.npmjs.com/package/@jswork/ushell-module-go
npm package: @jswork/ushell-module-homebrew
Description: Unix like shell for mac homebrew.
Latest version: 1.0.4

# ushell-module-homebrew
> Unix like shell for mac homebrew.

## installation
```shell
npm i -S @jswork/ushell-module-homebrew
```

## resources
- http://ban.ninja/
- https://lug.ustc.edu.cn/wiki/mirrors/help/homebrew-bottles
- https://www.cnblogs.com/jay54520/p/6347729.html
- https://apple.stackexchange.com/questions/293250/how-to-install-an-homebrew-formula-without-updating-homebrew-itself
npm package: @jswork/ushell-module-hosts
Description: Unix like shell module for hosts.
Author: afei
Latest version: 1.0.0

# ushell-module-hosts
> Unix like shell module for hosts.

## installation
```shell
npm i -S @jswork/ushell-module-hosts
```

## aliyun-github-slow
+ check the best dns:
```conf
http://tool.chinaz.com/dns
```
+ add this to hosts file(use the best dns):
```conf
103.245.222.249   github.global.ssl.fastly.net
103.245.222.133   assets-cdn.github.com
```

## resources
- https://yq.aliyun.com/articles/36744
npm package: @jswork/ushell-module-java
Description: Unix like shell for java.
Latest version: 1.0.4

# ushell-module-java
> Unix like shell for java.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![download][download-image]][download-url]

## installation
```shell
npm i -S @jswork/ushell-module-java
```

## license
Code released under [the MIT license](https://github.com/afeiship/ushell-module-java/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/ushell-module-java
[version-url]: https://npmjs.org/package/@jswork/ushell-module-java

[license-image]: https://img.shields.io/npm/l/@jswork/ushell-module-java
[license-url]: https://github.com/afeiship/ushell-module-java/blob/master/LICENSE.txt

[download-image]: https://img.shields.io/npm/dm/@jswork/ushell-module-java
[download-url]: https://www.npmjs.com/package/@jswork/ushell-module-java
npm package: @jswork/ushell-module-lerna
Description: Lerna for ushell module.
Latest version: 1.0.2

# ushell-module-lerna
> Lerna for ushell module.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![download][download-image]][download-url]

## installation
```shell
npm i -S @jswork/ushell-module-lerna
```

## license
Code released under [the MIT license](https://github.com/afeiship/ushell-module-lerna/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/ushell-module-lerna
[version-url]: https://npmjs.org/package/@jswork/ushell-module-lerna

[license-image]: https://img.shields.io/npm/l/@jswork/ushell-module-lerna
[license-url]: https://github.com/afeiship/ushell-module-lerna/blob/master/LICENSE.txt

[download-image]: https://img.shields.io/npm/dm/@jswork/ushell-module-lerna
[download-url]: https://www.npmjs.com/package/@jswork/ushell-module-lerna
npm package: @jswork/ushell-module-mysql
Description: Unix like shell module for mysql.
Author: afei
Latest version: 1.0.1

# ushell-module-mysql
> Unix like shell module for mysql.

## resources:

## commands:
+ update password:

```bash
MariaDB [mysql]> SELECT User, Password, Host FROM user;
+------+-------------------------------------------+-----------------------+
| User | Password                                  | Host                  |
+------+-------------------------------------------+-----------------------+
| root | *18398937C89B738E526595BAFDCDA9F0141316D5 | %                     |
| root | *18398937C89B738E526595BAFDCDA9F0141316D5 | localhost.localdomain |
| root | *18398937C89B738E526595BAFDCDA9F0141316D5 | 127.0.0.1             |
| root | *18398937C89B738E526595BAFDCDA9F0141316D5 | ::1                   |
+------+-------------------------------------------+-----------------------+
```
npm package: @jswork/ushell-module-openssl
Description: Fix openssl problem for MacOs.
Latest version: 1.0.1

# ushell-module-openssl
> Fix openssl problem for MacOs.

## installation
```shell
npm i -S @jswork/ushell-module-openssl
```

## resources
- https://yryz.net/post/macosx-brew-install-openssl.html


~~~
<!-- OLD: -->
[feizheng@afei:~]
$ openssl version
LibreSSL 2.2.7

<!-- NEW: -->
$ openssl version
OpenSSL 1.0.2q  20 Nov 2018
~~~
npm package: @jswork/ushell-module-powerline
Description: Unix shell module for powerline.
Latest version: 1.0.0

# ushell-module-powerline
> Unix shell module for powerline.

## installation
```shell
npm i -S @jswork/ushell-module-powerline
```

## configuration
> Set config step by step.
0. Install fonts
   ```shell
   # clone
   git clone https://github.com/powerline/fonts.git --depth=1
   # install
   cd fonts
   ./install.sh
   # clean-up a bit
   cd ..
   rm -rf fonts
   ```
1. install `python3`
   ```shell
   # 这里如果安装慢，或者出错，可以换 brew 源解决问题
   brew install python3
   ```
2. Install `powerline-status`
   ```shell
   pip3 install powerline-status
   ```
3. Get `powerline-status` PATH and set config
   ```shell
   pip3 show powerline-status
   ```
4. Add to your `.bashrc`
   ```shell
    # Powerline
    # 这里可以不需要了，用现在的 `ushell-module-powerline` 代替即可
    powerline-daemon -q
    POWERLINE_BASH_CONTINUATION=1
    POWERLINE_BASH_SELECT=1
    source /usr/local/lib/python3.8/site-packages/powerline/bindings/bash/powerline.sh
   ```
5. Now, create a configuration directory for powerline in your home.
   ```shell
   mkdir -p ~/.config/powerline

   # 这里的 python3.8 根据实际情况换掉
   cp -r /usr/local/lib/python3.8/site-packages/powerline/config_files/ ~/.config/powerline/
   ```

6. Make sure you system `locale` has utf8 encoding, Or your have to add to your `.bashrc` file
   ```shell
    # Set encode:
    export LC_ALL=en_US.UTF-8
    export LANG=en_US.UTF-8
   ```

## support for vscode
1. Open setting.json
   ![](https://ws3.sinaimg.cn/large/006tNc79gy1g3dk4u8ixjj314k0guaes.jpg)

2. Add this config
   ```json
   "terminal.integrated.fontFamily": "Source Code Pro for Powerline",
   ```
3. Mac default terminal setting
   ![](https://tva1.sinaimg.cn/large/006y8mN6gy1g909duvkbrj31gk0u0486.jpg)

4. Enjoy coding!
    ![](https://ws3.sinaimg.cn/large/006tNc79gy1g3dk5p4f1lj30m404c0t3.jpg)


## resources
- https://github.com/powerline/powerline
- https://github.com/powerline/fonts
- https://medium.com/henrystime/geek-196fce04ca24
- https://github.com/powerline/fonts
- https://medium.com/@ITZDERR/how-to-install-powerline-to-pimp-your-bash-prompt-for-mac-9b82b03b1c02
- https://www.jianshu.com/p/442ae2a05e55
- http://hkkhuang.cn/2019/01/23/%E5%9C%A8vscode%E4%B8%AD%E8%AE%BE%E7%BD%AE%E6%98%BE%E7%A4%BAPowerline%E5%AD%97%E4%BD%93/
- https://dev.to/mattstratton/making-powerline-work-in-visual-studio-code-terminal-1m7
npm package: @jswork/ushell-module-puppeteer
Description: Unix config for puppeteer.
Latest version: 1.0.2

# ushell-module-puppeteer
> Unix config for puppeteer.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![download][download-image]][download-url]

## installation
```shell
npm i -S @jswork/ushell-module-puppeteer
```

## license
Code released under [the MIT license](https://github.com/afeiship/ushell-module-puppeteer/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/ushell-module-puppeteer
[version-url]: https://npmjs.org/package/@jswork/ushell-module-puppeteer

[license-image]: https://img.shields.io/npm/l/@jswork/ushell-module-puppeteer
[license-url]: https://github.com/afeiship/ushell-module-puppeteer/blob/master/LICENSE.txt

[download-image]: https://img.shields.io/npm/dm/@jswork/ushell-module-puppeteer
[download-url]: https://www.npmjs.com/package/@jswork/ushell-module-puppeteer
npm package: @jswork/ushell-module-python
Description: Unix like shell module for python.
Latest version: 1.0.27

# ushell-module-python
> Unix like shell module for python.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![download][download-image]][download-url]

## installation
```shell
npm i -S @jswork/ushell-module-python
```

## license
Code released under [the MIT license](https://github.com/afeiship/ushell-module-python/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/ushell-module-python
[version-url]: https://npmjs.org/package/@jswork/ushell-module-python

[license-image]: https://img.shields.io/npm/l/@jswork/ushell-module-python
[license-url]: https://github.com/afeiship/ushell-module-python/blob/master/LICENSE.txt

[download-image]: https://img.shields.io/npm/dm/@jswork/ushell-module-python
[download-url]: https://www.npmjs.com/package/@jswork/ushell-module-python
npm package: @jswork/ushell-module-rbenv
Description: Unix like shell module for rbenv.
Latest version: 1.0.5

# ushell-module-rbenv
> Unix like shell module for rbenv.

## installation
```shell
npm i @jswork/ushell-module-rbenv
```

## openssl problems
- https://coderwall.com/p/n9bnug/missing-the-openssl-lib-when-rbenv-install-2-1-0-dev

## resources
- http://www.jianshu.com/p/ACs3kA
- https://ruby-china.org/wiki/rbenv-guide
- https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-centos-7
- https://gist.github.com/jpfuentes2/2002954
npm package: @jswork/ushell-module-rime
Description: Some env or config for rime.
Latest version: 1.0.0

# ushell-module-rime
> Some env or config for rime.

## installation
```shell
npm i -S @jswork/ushell-module-rime
```

## decription
```conf
; macos
$HOME/Library/Rime

; ubuntu
$HOME/.config/ibus/rime
```
npm package: @jswork/ushell-module-ruby
Description: Unix like shell module for ruby.
Author: afei
Latest version: 1.0.3

# ushell-module-ruby
> Unix like shell module for ruby.

## installation
```shell
npm i -S @jswork/ushell-module-ruby
```

## resources
- https://gorails.com/setup/osx/10.11-el-capitan
- http://sanwen8.cn/p/1f1O4TQ.html
- https://gorails.com/setup/osx/10.11-el-capitan
- https://gems.ruby-china.org/
- https://segmentfault.com/a/1190000000366488
npm package: @jswork/ushell-module-rust
Description: Shell module for rust.
Latest version: 1.0.1

# ushell-module-rust
> Shell module for rust.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![download][download-image]][download-url]

## installation
```shell
npm i -S @jswork/ushell-module-rust
```

## license
Code released under [the MIT license](https://github.com/afeiship/ushell-module-rust/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/ushell-module-rust
[version-url]: https://npmjs.org/package/@jswork/ushell-module-rust

[license-image]: https://img.shields.io/npm/l/@jswork/ushell-module-rust
[license-url]: https://github.com/afeiship/ushell-module-rust/blob/master/LICENSE.txt

[download-image]: https://img.shields.io/npm/dm/@jswork/ushell-module-rust
[download-url]: https://www.npmjs.com/package/@jswork/ushell-module-rust
npm package: @jswork/ushell-module-ssh
Description: Unix like shell module for ssh.
Author: afei
Latest version: 1.0.2

# ushell-module-ssh
> Unix like shell module for ssh.

## installation
```shell
npm i -S @jswork/ushell-module-ssh
```

## resources
- http://www.howtogeek.com/168119/fixing-warning-unprotected-private-key-file-on-linux/
- https://my.oschina.net/grnick/blog/201155
- http://rabexc.org/posts/pitfalls-of-ssh-agents
- http://blog.joncairns.com/2013/12/understanding-ssh-agent-and-ssh-add/
npm package: @jswork/ushell-module-starship
Description: Ushell module for starship.
Latest version: 1.0.3

# ushell-module-starship
> Ushell module for starship.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![download][download-image]][download-url]

## installation
```shell
npm i -S @jswork/ushell-module-starship
```

## resources
- https://starship.rs/zh-CN/

## license
Code released under [the MIT license](https://github.com/afeiship/ushell-module-starship/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/ushell-module-starship
[version-url]: https://npmjs.org/package/@jswork/ushell-module-starship

[license-image]: https://img.shields.io/npm/l/@jswork/ushell-module-starship
[license-url]: https://github.com/afeiship/ushell-module-starship/blob/master/LICENSE.txt

[download-image]: https://img.shields.io/npm/dm/@jswork/ushell-module-starship
[download-url]: https://www.npmjs.com/package/@jswork/ushell-module-starship
npm package: @jswork/ushell-module-sysinfo
Description: Unix like shell module for system info.
Author: afei
Latest version: 1.0.0

# ushell-module-sysinfo
> Unix like shell module for system info.

## installation
```shell
npm i -S @jswork/ushell-module-sysinfo
```

## resources
- https://linuxize.com/post/how-to-check-your-ubuntu-version/
npm package: @jswork/ushell-module-systemctl
Description: Systemctl for centos.
Latest version: 1.0.0

# ushell-module-systemctl
> Systemctl for centos.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![download][download-image]][download-url]

## installation
```shell
npm i -S @jswork/ushell-module-systemctl
```

## license
Code released under [the MIT license](https://github.com/afeiship/ushell-module-systemctl/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/ushell-module-systemctl
[version-url]: https://npmjs.org/package/@jswork/ushell-module-systemctl

[license-image]: https://img.shields.io/npm/l/@jswork/ushell-module-systemctl
[license-url]: https://github.com/afeiship/ushell-module-systemctl/blob/master/LICENSE.txt

[download-image]: https://img.shields.io/npm/dm/@jswork/ushell-module-systemctl
[download-url]: https://www.npmjs.com/package/@jswork/ushell-module-systemctl
npm package: @jswork/ushell-module-thor
Description: Ushell module for thor.
Latest version: 1.0.0

# ushell-module-thor
> Ushell module for thor.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![download][download-image]][download-url]

## installation
```shell
npm i -S @jswork/ushell-module-thor
```

## license
Code released under [the MIT license](https://github.com/afeiship/ushell-module-thor/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@feizheng/ushell-module-thor
[version-url]: https://npmjs.org/package/@feizheng/ushell-module-thor

[license-image]: https://img.shields.io/npm/l/@feizheng/ushell-module-thor
[license-url]: https://github.com/afeiship/ushell-module-thor/blob/master/LICENSE.txt

[download-image]: https://img.shields.io/npm/dm/@feizheng/ushell-module-thor
[download-url]: https://www.npmjs.com/package/@feizheng/ushell-module-thor
npm package: @jswork/ushell-module-tmux
Description: Tmux commands.
Latest version: 1.0.9

# ushell-module-tmux
> Tmux commands.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![download][download-image]][download-url]

## installation
```shell
npm i -S @jswork/ushell-module-tmux
```

## resources
- http://www.ruanyifeng.com/blog/2019/10/tmux.html
- https://github.com/afeiship/tmux-notes
- https://superuser.com/questions/209437/how-do-i-scroll-in-tmux

## license
Code released under [the MIT license](https://github.com/afeiship/ushell-module-tmux/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/ushell-module-tmux
[version-url]: https://npmjs.org/package/@jswork/ushell-module-tmux

[license-image]: https://img.shields.io/npm/l/@jswork/ushell-module-tmux
[license-url]: https://github.com/afeiship/ushell-module-tmux/blob/master/LICENSE.txt

[download-image]: https://img.shields.io/npm/dm/@jswork/ushell-module-tmux
[download-url]: https://www.npmjs.com/package/@jswork/ushell-module-tmux
npm package: @jswork/ushell-module-vim
Description: Unix like shell module for vim.
Author: afei
Latest version: 1.0.0

# ushell-module-vim
> Unix like shell module for vim.

## installation
```shell
npm i -S @jswork/ushell-module-vim
```

## init(./init_vim_config.sh):
```bash
  cd ~/github
  git clone git@github.com:afeiship/fei-vim.git
  rm -rf ~/.vim ~/.vimrc
  ln -s ~/github/fei-vim/.vim ~/.vim
  ln -s ~/github/fei-vim/.vim/vimrc ~/.vimrc
  cd ~/.vim
  git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
  vim && execute: `:BundleInstall`
```

## install spf13-vim
```bash
## update my vim
brew intall vim

## install:
curl https://j.mp/spf13-vim3 -L > spf13-vim.sh && sh spf13-vim.sh
```

## resources
- https://github.com/VundleVim/Vundle.vim
- `git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim`
- http://stackoverflow.com/questions/677986/vim-copy-selection-to-os-x-clipboard

## issues
+ mv ~/github/fei-vim/.vim/vimrc mv ~/github/fei-vim/.vim/.vimrc
npm package: @jswork/ushell-module-vscode
Description: Unix like shell module for vscode.
Latest version: 1.0.2

# ushell-module-vscode
> Unix like shell module for vscode.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![download][download-image]][download-url]

## installation
```shell
npm i -S @jswork/ushell-module-vscode
```

## license
Code released under [the MIT license](https://github.com/afeiship/ushell-module-vscode/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/ushell-module-vscode
[version-url]: https://npmjs.org/package/@jswork/ushell-module-vscode

[license-image]: https://img.shields.io/npm/l/@jswork/ushell-module-vscode
[license-url]: https://github.com/afeiship/ushell-module-vscode/blob/master/LICENSE.txt

[download-image]: https://img.shields.io/npm/dm/@jswork/ushell-module-vscode
[download-url]: https://www.npmjs.com/package/@jswork/ushell-module-vscode
npm package: @jswork/ushell-module-yeoman
Description: Unix like shell module for system yeoman.
Author: afei
Latest version: 1.0.5

# ushell-module-yeoman
> Unix like shell module for yeoman.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![download][download-image]][download-url]

## installation
```shell
npm i -S @jswork/ushell-module-yeoman
```

## license
Code released under [the MIT license](https://github.com/afeiship/ushell-module-yeoman/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@feizheng/ushell-module-yeoman
[version-url]: https://npmjs.org/package/@feizheng/ushell-module-yeoman

[license-image]: https://img.shields.io/npm/l/@feizheng/ushell-module-yeoman
[license-url]: https://github.com/afeiship/ushell-module-yeoman/blob/master/LICENSE.txt

[download-image]: https://img.shields.io/npm/dm/@feizheng/ushell-module-yeoman
[download-url]: https://www.npmjs.com/package/@feizheng/ushell-module-yeoman
npm package: @jswork/ushell-modules-pm2
Description: Ushell module for pm2.
Latest version: 1.0.3

# ushell-modules-pm2
> Ushell module for pm2.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![download][download-image]][download-url]

## installation
```shell
npm i -S @jswork/ushell-modules-pm2
```

## license
Code released under [the MIT license](https://github.com/afeiship/ushell-modules-pm2/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/ushell-modules-pm2
[version-url]: https://npmjs.org/package/@jswork/ushell-modules-pm2

[license-image]: https://img.shields.io/npm/l/@jswork/ushell-modules-pm2
[license-url]: https://github.com/afeiship/ushell-modules-pm2/blob/master/LICENSE.txt

[download-image]: https://img.shields.io/npm/dm/@jswork/ushell-modules-pm2
[download-url]: https://www.npmjs.com/package/@jswork/ushell-modules-pm2
npm package: @jswork/visible-element
Description: Visible element with animation.
Latest version: 1.0.9

# visible-element
> Visible element with animation.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```shell
npm install @jswork/visible-element
```

## usage
```html
<div id="my-element" data-visible="false"></div>
<button id="my-button">Toggle</button>
```
```css
[hidden] {
  display: none;
}

#my-element {
  animation: show 0.3s ease-in-out;
}

#my-element[data-visible="true"] {
  animation: close 0.3s ease-in-out;
}

@keyframes show {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes close {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
```

```javascript
import VisibleElement from 'visible-element';
const element = document.getElementById('my-element');
const button = document.getElementById('my-button');
const visible = new VisibleElement(element, {
  onShow: () => { console.log('show'); },
  onShowed: () => { console.log('showed'); },
  onClose: () => { console.log('close'); },
  onClosed: () => { console.log('closed'); },
  onChange: (status) => { console.log(status); },
});
button.addEventListener('click', () => {
  visible.toggle();
});
```
## license
Code released under [the MIT license](https://github.com/afeiship/visible-element/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/visible-element
[version-url]: https://npmjs.org/package/@jswork/visible-element

[license-image]: https://img.shields.io/npm/l/@jswork/visible-element
[license-url]: https://github.com/afeiship/visible-element/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/visible-element
[size-url]: https://github.com/afeiship/visible-element/blob/master/dist/index.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/visible-element
[download-url]: https://www.npmjs.com/package/@jswork/visible-element
npm package: @jswork/vite-envs
Description: Vite env manager.
Latest version: 1.1.4

# vite-envs
> Vite env manager.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```shell
npm install @jswork/vite-envs
```

## usage
```js
import ViteEnvs from '@jswork/vite-envs';
```

## license
Code released under [the MIT license](https://github.com/afeiship/vite-envs/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/vite-envs
[version-url]: https://npmjs.org/package/@jswork/vite-envs

[license-image]: https://img.shields.io/npm/l/@jswork/vite-envs
[license-url]: https://github.com/afeiship/vite-envs/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/vite-envs
[size-url]: https://github.com/afeiship/vite-envs/blob/master/dist/vite-envs.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/vite-envs
[download-url]: https://www.npmjs.com/package/@jswork/vite-envs
npm package: @jswork/vite-load-modules
Description: Vite util for dynamic module loading.
Latest version: 1.0.4

# vite-load-modules
> Vite util for dynamic module loading.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```shell
npm install @jswork/vite-load-modules
```

## usage
```js
import viteLoadModules from '@jswork/vite-load-modules';

// usage goes here.
```

## license
Code released under [the MIT license](https://github.com/afeiship/vite-load-modules/blob/main/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/vite-load-modules
[version-url]: https://npmjs.org/package/@jswork/vite-load-modules

[license-image]: https://img.shields.io/npm/l/@jswork/vite-load-modules
[license-url]: https://github.com/afeiship/vite-load-modules/blob/main/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/vite-load-modules
[size-url]: https://github.com/afeiship/vite-load-modules/blob/main/dist/index.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/vite-load-modules
[download-url]: https://www.npmjs.com/package/@jswork/vite-load-modules
npm package: @jswork/vite-plugin-copy-url
Description: A plugin for copy develop URL to clipboard.
Latest version: 1.0.6

# i18n-helper
> I18n helper.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```shell
npm install @jswork/i18n-helper
```

## usage
```js
import i18nHelper from '@jswork/i18n-helper';

// usage goes here.
```

## license
Code released under [the MIT license](https://github.com/afeiship/i18n-helper/blob/main/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/i18n-helper
[version-url]: https://npmjs.org/package/@jswork/i18n-helper

[license-image]: https://img.shields.io/npm/l/@jswork/i18n-helper
[license-url]: https://github.com/afeiship/i18n-helper/blob/main/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/i18n-helper
[size-url]: https://github.com/afeiship/i18n-helper/blob/main/dist/index.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/i18n-helper
[download-url]: https://www.npmjs.com/package/@jswork/i18n-helper
npm package: @jswork/vite-plugin-environment
Description: Easily expose environment variables in Vite.
Author: afeiship
Latest version: 1.0.18

# vite-plugin-environment
> Easily expose environment variables in Vite.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```shell
npm install @jswork/vite-plugin-environment
```

## usage
```js
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import vitePluginEnvironment from '@jswork/vite-plugin-environment';

// https://vitejs.dev/config/
export default defineConfig({
  envDir: 'config/environments',
  plugins: [react(), vitePluginEnvironment({ prefix: 'VITE_' })]
});
```

## license
Code released under [the MIT license](https://github.com/afeiship/i18n-helper/blob/main/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/i18n-helper
[version-url]: https://npmjs.org/package/@jswork/i18n-helper

[license-image]: https://img.shields.io/npm/l/@jswork/i18n-helper
[license-url]: https://github.com/afeiship/i18n-helper/blob/main/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/i18n-helper
[size-url]: https://github.com/afeiship/i18n-helper/blob/main/dist/index.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/i18n-helper
[download-url]: https://www.npmjs.com/package/@jswork/i18n-helper
npm package: @jswork/vite-plugin-file-callback
Description: Vite plugin that allows users to customize file handling and modification through callback functions.
Latest version: 1.0.10

# vite-plugin-file-callback
> Vite plugin that allows users to customize file handling and modification through callback functions.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```shell
npm install @jswork/vite-plugin-file-callback
```

## usage
```js
import fileCallback from '@jswork/vite-plugin-file-callback';

// Get envs:
const env = ENV[process.env.NODE_ENV];

// Use plugin:
fileCallback({
  filepath: 'src/manifest.json',
  callback: (content) => {
    nx.set(content, 'mp-weixin.appid', env['VITE_APP_APPID']);
    return content;
  }
})
```

## license
Code released under [the MIT license](https://github.com/afeiship/vite-plugin-file-callback/blob/main/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/vite-plugin-file-callback
[version-url]: https://npmjs.org/package/@jswork/vite-plugin-file-callback

[license-image]: https://img.shields.io/npm/l/@jswork/vite-plugin-file-callback
[license-url]: https://github.com/afeiship/vite-plugin-file-callback/blob/main/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/vite-plugin-file-callback
[size-url]: https://github.com/afeiship/vite-plugin-file-callback/blob/main/dist/vite-plugin-file-callback.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/vite-plugin-file-callback
[download-url]: https://www.npmjs.com/package/@jswork/vite-plugin-file-callback
npm package: @jswork/vite-plugin-html-banner
Description: Vite plugin for html banner comments.
Latest version: 1.0.12

# vite-plugin-html-banner
> Vite plugin for html banner comments.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```shell
npm install @jswork/vite-plugin-html-banner
```

## usage
```js
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import banner from '@jswork/vite-plugin-html-banner';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react(), banner()],
  resolve: {
    alias: {
      '@': '/src'
    }
  }
});
```

## license
Code released under [the MIT license](https://github.com/afeiship/vite-plugin-html-banner/blob/main/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/vite-plugin-html-banner
[version-url]: https://npmjs.org/package/@jswork/vite-plugin-html-banner

[license-image]: https://img.shields.io/npm/l/@jswork/vite-plugin-html-banner
[license-url]: https://github.com/afeiship/vite-plugin-html-banner/blob/main/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/vite-plugin-html-banner
[size-url]: https://github.com/afeiship/vite-plugin-html-banner/blob/main/dist/vite-plugin-html-banner.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/vite-plugin-html-banner
[download-url]: https://www.npmjs.com/package/@jswork/vite-plugin-html-banner
npm package: @jswork/vite-plugin-updated-at
Description: Vite plugin for update updated_at field in comments.
Latest version: 1.0.16

# vite-plugin-updated-at
> Vite plugin for update updated_at field in comments.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```shell
npm install @jswork/vite-plugin-updated-at
```

## usage
```js
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import vitePlugin from '@jswork/vite-plugin-updated-at';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react(), vitePlugin()],
  server: {
    host: '0.0.0.0'
  }
});
```

## license
Code released under [the MIT license](https://github.com/afeiship/vite-plugin-updated-at/blob/main/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/vite-plugin-updated-at
[version-url]: https://npmjs.org/package/@jswork/vite-plugin-updated-at

[license-image]: https://img.shields.io/npm/l/@jswork/vite-plugin-updated-at
[license-url]: https://github.com/afeiship/vite-plugin-updated-at/blob/main/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/vite-plugin-updated-at
[size-url]: https://github.com/afeiship/vite-plugin-updated-at/blob/main/dist/index.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/vite-plugin-updated-at
[download-url]: https://www.npmjs.com/package/@jswork/vite-plugin-updated-at
npm package: @jswork/vite-plugin-version
Description: A plugin for vite that generates a version.json file.
Latest version: 1.0.6

# vite-plugin-version
> A plugin for vite that generates a version.json file.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```shell
npm install @jswork/vite-plugin-version
```

## usage
```js
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import vitePlugin from '@jswork/vite-plugin-version';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react(), vitePlugin()],
  server: {
    host: '0.0.0.0'
  }
});
```

## license
Code released under [the MIT license](https://github.com/afeiship/vite-plugin-version/blob/main/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/vite-plugin-version
[version-url]: https://npmjs.org/package/@jswork/vite-plugin-version

[license-image]: https://img.shields.io/npm/l/@jswork/vite-plugin-version
[license-url]: https://github.com/afeiship/vite-plugin-version/blob/main/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/vite-plugin-version
[size-url]: https://github.com/afeiship/vite-plugin-version/blob/main/dist/index.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/vite-plugin-version
[download-url]: https://www.npmjs.com/package/@jswork/vite-plugin-version
npm package: @jswork/vite-public-resource-hash
Description: This Vite plugin replaces __content_hash__ in public resources with actual hashes.
Latest version: 1.0.13

# vite-public-resource-hash
> This Vite plugin replaces __content_hash__ in public resources with actual hashes.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```shell
npm install @jswork/vite-public-resource-hash
```

## usage
```js
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import vitePubliResourceHash from '@jswork/vite-public-resource-hash';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react(), vitePubliResourceHash()],
  server: {
    host: '0.0.0.0'
  }
});
```

> src/app.tsx

```tsx
<figure>
  <img src="/vite.svg?hash=__content_hash__" alt="Vite Logo" className="logo" />
  <figcaption>Image from public directory</figcaption>
</figure>
```

> dist/assets/vite.svg?hash=`__content_hash__``
```html
<figure>
  <img src="/vite.svg?hash=8e3a10e1" alt="Vite Logo" class="logo">
  <figcaption>Image from public directory</figcaption>
</figure>
```


## license
Code released under [the MIT license](https://github.com/afeiship/vite-public-resource-hash/blob/main/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/vite-public-resource-hash
[version-url]: https://npmjs.org/package/@jswork/vite-public-resource-hash

[license-image]: https://img.shields.io/npm/l/@jswork/vite-public-resource-hash
[license-url]: https://github.com/afeiship/vite-public-resource-hash/blob/main/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/vite-public-resource-hash
[size-url]: https://github.com/afeiship/vite-public-resource-hash/blob/main/dist/index.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/vite-public-resource-hash
[download-url]: https://www.npmjs.com/package/@jswork/vite-public-resource-hash
npm package: @jswork/vite-pwa-promotion
Description: A vite pwa promotion component.
Latest version: 1.0.10

# vite-pwa-promotion
> A vite pwa promotion component.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```shell
npm install -S @jswork/vite-pwa-promotion
```

## usage
1. import css
  ```scss
  @import "~@jswork/vite-pwa-promotion/dist/style.css";

  // or use sass
  @import "~@jswork/vite-pwa-promotion/dist/style.scss";

  // customize your styles:
  $vite-pwa-promotion-options: ()
  ```
2. import js
  ```js
  import React from 'react';
  import VitePwaPromotion from '@jswork/vite-pwa-promotion';
  import styled from 'styled-components';

  const Container = styled.div`
    width: 80%;
    margin: 30px auto 0;
  `;

  export default (props: any) => {
    return (
      <Container>
        <VitePwaPromotion />
      </Container>
    );
  };

  ```

## preview
- https://afeiship.github.io/vite-pwa-promotion/

## license
Code released under [the MIT license](https://github.com/afeiship/vite-pwa-promotion/blob/main/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/vite-pwa-promotion
[version-url]: https://npmjs.org/package/@jswork/vite-pwa-promotion

[license-image]: https://img.shields.io/npm/l/@jswork/vite-pwa-promotion
[license-url]: https://github.com/afeiship/vite-pwa-promotion/blob/main/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/vite-pwa-promotion
[size-url]: https://github.com/afeiship/vite-pwa-promotion/blob/main/dist/vite-pwa-promotion.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/vite-pwa-promotion
[download-url]: https://www.npmjs.com/package/@jswork/vite-pwa-promotion
npm package: @jswork/vite-require
Description: Vite require.
Latest version: 1.0.3

# vite-require
> Vite require.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```shell
npm install @jswork/vite-require
```

## usage
```js
import viteRequire from '@jswork/vite-require';

// usage goes here.
```

## license
Code released under [the MIT license](https://github.com/afeiship/vite-require/blob/main/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/vite-require
[version-url]: https://npmjs.org/package/@jswork/vite-require

[license-image]: https://img.shields.io/npm/l/@jswork/vite-require
[license-url]: https://github.com/afeiship/vite-require/blob/main/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/vite-require
[size-url]: https://github.com/afeiship/vite-require/blob/main/dist/vite-require.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/vite-require
[download-url]: https://www.npmjs.com/package/@jswork/vite-require
npm package: @jswork/vite-require-context
Description: Require context for vite.
Latest version: 1.0.4

# vite-require-context
> Require context for vite.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```shell
npm install @jswork/vite-require-context
```

## usage
```js
import viteRequireContext from '@jswork/vite-require-context';

const moduleFiles = import.meta.glob('./shared/stores/*.ts', { eager: true });
const context = viteRequireContext(moduleFiles);
console.log('moduleFiles: ', moduleFiles, context);
```

## license
Code released under [the MIT license](https://github.com/afeiship/vite-require-context/blob/main/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/vite-require-context
[version-url]: https://npmjs.org/package/@jswork/vite-require-context

[license-image]: https://img.shields.io/npm/l/@jswork/vite-require-context
[license-url]: https://github.com/afeiship/vite-require-context/blob/main/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/vite-require-context
[size-url]: https://github.com/afeiship/vite-require-context/blob/main/dist/vite-require-context.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/vite-require-context
[download-url]: https://www.npmjs.com/package/@jswork/vite-require-context
npm package: @jswork/vue-envs
Description: Vue cli env manager.
Latest version: 1.0.3

# vue-envs
> Vue cli env manager.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```shell
npm install @jswork/vue-envs
```

## usage
```js
import ViteEnvs from '@jswork/vite-envs';
```

## license
Code released under [the MIT license](https://github.com/afeiship/vue-envs/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/vue-envs
[version-url]: https://npmjs.org/package/@jswork/vue-envs

[license-image]: https://img.shields.io/npm/l/@jswork/vue-envs
[license-url]: https://github.com/afeiship/vue-envs/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/vue-envs
[size-url]: https://github.com/afeiship/vue-envs/blob/master/dist/vue-envs.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/vue-envs
[download-url]: https://www.npmjs.com/package/@jswork/vue-envs
npm package: @jswork/watermark
Description: Watermark use nodejs.
Latest version: 1.0.2

# watermark
> Watermark based on sharp.

## installation
```shell
npm install @jswork/watermark
```

## usage
```js
import watermark from '@jswork/watermark';

watermark({
  src: 'https://pic.rmb.bdstatic.com/7f7a8d7b247d3aa430010f10a5765239.jpeg',
  cover: './__tests__/beta_s.png',  // local.png/remote.png/remote.svg
  gravity: 'northwest'
}).then((res) => {
  // res: buffer
});
```
npm package: @jswork/we-mitt
Description: Global(window) event emitter.
Latest version: 1.0.4

# we-mitt
> Global(window) event emitter.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```shell
npm install @jswork/we-mitt
```

## usage
```js
import WeEmitt from '@jswork/we-mitt';

const wemiter = new WeEmitt();
// on
const res = wemiter.on('abc', (data)=>{
  console.log('attach abc event', data);
});

// do something...
wemiter.emit('abc', { id: 1, name: 'xx' });

// detatch
res.destory();
```

## apis
| name | params       | description                          |
| ---- | ------------ | ------------------------------------ |
| on   | name,handler | register an event                    |
| off  | name,handler | unregister an event                  |
| emit | name,obj     | fire an event                        |
| one  | name,obj     | fire an event,only can register once |

## license
Code released under [the MIT license](https://github.com/afeiship/we-mitt/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/we-mitt
[version-url]: https://npmjs.org/package/@jswork/we-mitt

[license-image]: https://img.shields.io/npm/l/@jswork/we-mitt
[license-url]: https://github.com/afeiship/we-mitt/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/we-mitt
[size-url]: https://github.com/afeiship/we-mitt/blob/master/dist/we-mitt.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/we-mitt
[download-url]: https://www.npmjs.com/package/@jswork/we-mitt