Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

Welcome to slice-html 👋




Version


License: MIT


Twitter: hata6502

> 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 **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)_