@martin-fenocchio/simple_copy
v2.1.0
Published
A javascript library for easy copy text
Downloads
58
Maintainers
Readme
Simple copy
This is a small npm library for copying text to the clipboard. It's very simple to use and works in web applications.
Instalation
Install the library with npm:
npm i @martin-fenocchio/simple_copy
Usage
Here's an example of how to use simple_copy:
import { copyText } from "@martin-fenocchio/simple_copy";
copyText("Hello World!");
Functions
copyText(text)
This function copies the provided text to the clipboard.
text: String
- - The text you want to copy to the clipboard.
Contributing
If you would like to contribute to this project, please submit a pull request with your suggestions.
License
This project is licensed under the MIT License.