https://github.com/xuliangzhan/xe-command
test demo
https://github.com/xuliangzhan/xe-command
Last synced: 3 months ago
JSON representation
test demo
- Host: GitHub
- URL: https://github.com/xuliangzhan/xe-command
- Owner: xuliangzhan
- License: mit
- Created: 2018-01-02T13:19:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-01T16:02:57.000Z (almost 6 years ago)
- Last Synced: 2025-02-26T07:20:18.457Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 44.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xe-command
[](https://www.npmjs.org/package/xe-command)
[](http://npm-stat.com/charts.html?package=xe-command)
[](http://img.badgesize.io/https://unpkg.com/xe-command/lib/index.umd.min.js?compression=gzip&label=gzip%20size:%20JS)
[](https://github.com/xuliangzhan/xe-command/blob/master/LICENSE)## Installing
```shell
npm install xe-command --save
```Get on [unpkg](https://unpkg.com/xe-command/) and [cdnjs](https://cdn.jsdelivr.net/npm/xe-command/) δΈθ·ε
```HTML
```
## Example
[Run this demo on jsfiddle.net](https://jsfiddle.net/fjvckd2a/)
```javascript
document.querySelector('.button').addEventListener('click', evnt => {
if (XECommand.copy('Copy this content to the clipboard')) {
alert('Copy success.')
} else {
alert('The browser is not supported.')
}
})
```## License
Copyright (c) 2017-present, Xu Liangzhan