Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hata6502/slice-html
Slice an HTML element by the text offset.
https://github.com/hata6502/slice-html
dom html offset slice text
Last synced: 27 days ago
JSON representation
Slice an HTML element by the text offset.
- Host: GitHub
- URL: https://github.com/hata6502/slice-html
- Owner: hata6502
- License: mit
- Created: 2021-01-30T12:02:31.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T05:16:26.000Z (about 2 years ago)
- Last Synced: 2025-01-03T12:06:44.766Z (about 1 month ago)
- Topics: dom, html, offset, slice, text
- Language: TypeScript
- Homepage: https://hata6502.github.io/slice-html/
- Size: 1.81 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Welcome to slice-html 👋
> Slice an HTML element by the text offset.
### ✨ [Demo](https://hata6502.github.io/slice-html/)
![demo](https://user-images.githubusercontent.com/7702653/106356332-3601a180-6342-11eb-8438-ea5aee3b5f9f.png)
## Install
### Install via yarn
```sh
yarn add slice-html
```### Load from CDN
```html
```
## Usage
Please see [demo HTML](https://github.com/hata6502/slice-html/blob/main/docs/index.html).
`sliceHTML()` is similar to [String.prototype.slice()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice).## Build
```sh
yarn webpack
```## Format
```sh
yarn fix
```## Run tests
```sh
yarn test
```## Author
**Tomoyuki Hata **
## 🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/hata6502/slice-html/issues).## Show your support
Give a ⭐️ if this project helped you!
## Disclaimer
Please see [DISCLAIMER.md](https://github.com/hata6502/slice-html/blob/main/DISCLAIMER.md).
---
_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_