Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/retraigo/locate
Locate the nth character in a string.
https://github.com/retraigo/locate
Last synced: 8 days ago
JSON representation
Locate the nth character in a string.
- Host: GitHub
- URL: https://github.com/retraigo/locate
- Owner: retraigo
- License: mit
- Created: 2022-11-13T01:52:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-13T02:03:06.000Z (about 2 years ago)
- Last Synced: 2024-10-11T20:57:31.739Z (about 1 month ago)
- Language: TypeScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# locate
Locate the nth character in a string.```ts
import { locate } from "https://deno.land/x/locate/mod.ts";const template =
`xue hua piao piao
bei feng xiao xiao`console.log(locate(template, 21));
// { line: 1, column: 2 }
```