Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/minho42/text-fragment-generator
Generate text fragment from css selector
https://github.com/minho42/text-fragment-generator
nodejs text-fragment
Last synced: 16 days ago
JSON representation
Generate text fragment from css selector
- Host: GitHub
- URL: https://github.com/minho42/text-fragment-generator
- Owner: minho42
- License: mit
- Created: 2021-06-29T15:16:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-07T15:35:36.000Z (over 2 years ago)
- Last Synced: 2023-12-23T16:01:46.988Z (about 1 year ago)
- Topics: nodejs, text-fragment
- Language: JavaScript
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Text fragment generator
Generate text fragment from css selector.
## Usage
Send http get request with json data.
### api route
`http://localhost:8000/api`### json data
```json
{
"url": "https://github.com/minho42",
"selector": ".vcard-fullname.p-name"
}
```### Output
`https://github.com/minho42#:~:text= Minho`
## See also
- https://github.com/GoogleChromeLabs/link-to-text-fragment
- https://wicg.github.io/scroll-to-text-fragment/