Skip to content

hugoalh/is-string-singleline-es

Is String Single Line (ES)

⚖️ MIT

GitHub: hugoalh/is-string-singleline-es JSR: @hugoalh/is-string-singleline NPM: @hugoalh/is-string-singleline

An ECMAScript module to determine whether the string is single line.

🎯 Targets

Runtime \ Source GitHub Raw JSR NPM
Bun >= v1.1.0 ✔️ ✔️
Deno >= v2.1.0 ✔️ ✔️ ✔️
NodeJS >= v20.9.0 ✔️ ✔️

🛡️ Runtime Permissions

This does not request any runtime permission.

#️⃣ Sources

  • 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}]
    

Note

  • 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).

⤵️ Entrypoints

Name Path Description
. ./mod.ts Default.

🧩 APIs

  • function isStringSingleLine(item: string): boolean;

Note

✍️ Examples

  • 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

About

An ECMAScript module to determine whether the string is single line.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •