🔗 DistBoard @hugoalh ● GitHub ● JSR ● NPM
An ECMAScript module to determine whether the string is single line.
Any runtime which support ECMAScript should able to use this; These runtimes are officially supported:
This does not request any runtime permission.
- GitHub Raw
https://raw.githubusercontent.com/hugoalh/is-string-singleline-es/{Tag}/mod.ts - JSR
jsr:@hugoalh/is-string-singleline[@{Tag}] - NPM
npm:@hugoalh/is-string-singleline[@{Tag}]
| Name | Path | Description |
|---|---|---|
. |
./mod.ts |
Default. |
Note
- Different runtimes have vary support for the sources and entrypoints, visit the runtime documentation for more information.
- It is recommended to include tag for immutability.
- These are not part of the public APIs hence should not be used:
- Benchmark/Test file (e.g.:
example.bench.ts,example.test.ts). - Entrypoint name or path include any underscore prefix (e.g.:
_example.ts,foo/_example.ts). - Identifier/Namespace/Symbol include any underscore prefix (e.g.:
_example,Foo._example).
- Benchmark/Test file (e.g.:
-
function isStringSingleLine(item: string): boolean;
Note
- For the full or prettier documentation, can visit via:
-
isStringSingleLine(`Wisi sed et at vero eos nostrud volutpat sed stet dignissim sit sanctus in eros. Et laoreet odio sanctus ea. Sea in dolores diam tincidunt labore sea stet vero dolor ut est. At aliquyam diam facilisis lorem et takimata et volutpat eros erat ipsum velit labore sed ea illum. Dolor lorem sed et volutpat exerci gubergren gubergren tempor quis ea eirmod eos ut dolor autem ipsum accumsan.`); //=> false
-
isStringSingleLine("Hello, world!"); //=> true