@stdlib/string-next-code-point-index-cli
v0.2.2
Published
Return the position of the next Unicode code point in a string after a specified position.
Downloads
4
Readme
nextCodePointIndex
Return the position of the next Unicode code point in a string after a specified position.
Installation
To use as a general utility, install the CLI package globally
npm install -g @stdlib/string-next-code-point-index-cli
Usage
Usage: next-code-point-index [options] [<string>]
Options:
-h, --help Print this message.
-V, --version Print the package version.
--from index Starting search position in string. Default: 0.
Examples
$ next-code-point-index --from=0 𐒻𐓟𐒻𐓟
2
To use as a standard stream,
$ echo -n '𐒻𐓟𐒻𐓟' | next-code-point-index --from=0
2
See Also
@stdlib/string-next-code-point-index
: return the position of the next Unicode code point in a string after a specified position.
Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2024. The Stdlib Authors.