locate-character
npmv3.0.0TypeScriptGet the line and column number of a specific character in a string
Overview
locate-character is an npm package that get the line and column number of a specific character in a string. It is very popular, with about 4.1M downloads per week and 1 known dependents in the graph. The latest version is 3.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need get the line and column number of a specific character in a string and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (4.1M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Lean dependency tree (2 direct dependencies).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of locate-character.
Dependencies
Dev (2)
Used by
Popular packages that depend on locate-character.
Alternatives to locate-character
Modify strings, generate sourcemaps
Functions for dealing with a PostgreSQL connection string
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
Escape RegExp special characters
Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet
HTTP and HTTPS modules that follow redirects.
prelude.ls is a functionally oriented utility library. It is powerful and flexible. Almost all of its functions are curried. It is written in, and is the recommended base library for, LiveScript.
Wrap words to a specified length.
Efficient implementation of Levenshtein algorithm with locale-specific collator support.
Get the first path that exists on disk of multiple paths
Returns true if a string has an extglob.
Frequently installed together
An extremely fast JavaScript and CSS bundler and minifier.
Encode/decode sourcemap mappings
Modify strings, generate sourcemaps
Programmatic access to the ARIA specification
Remap sequential sourcemaps through transformations to point at the original source code
A tiny (239B) utility for constructing className strings conditionally.
Next generation testing framework powered by Vite
Programmatic access to information about the AXObject Model
TypeScript definitions for trusted-types
Determine whether an AST node is a reference
Gets the job done when JSON.stringify can't
Uses export conditions to return environment information in a way that works with major bundlers and runtimes.
Version history
| Version | Published | License |
|---|---|---|
| 3.0.0latest | 3 years ago | MIT |
| 2.0.5 | 8 years ago | MIT |
| 2.0.4 | 8 years ago | MIT |
| 2.0.3 | 8 years ago | MIT |
| 2.0.2 | 8 years ago | MIT |
| 2.0.1 | 9 years ago | MIT |
| 2.0.0 | 10 years ago | MIT |
| 1.0.0 | 10 years ago | MIT |
Maintainers
Frequently asked questions
How do I install locate-character?
Run `npm install locate-character` to add locate-character to your npm project.
What license is locate-character released under?
locate-character is distributed under the MIT license.
How popular is locate-character?
locate-character has approximately 4,144,589 downloads per week and 1 known dependent packages.