Skip to content

hugoalh/is-string-singleline-es

Repository files navigation

Is String Single Line (ES)

⚖️ MIT

🔗 DistBoard @hugoalhGitHubJSRNPM

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

🎯 Runtime Targets

Any runtime which support ECMAScript should able to use this; These runtimes are officially supported:

🛡️ Runtime Permissions

This does not request any runtime permission.

#️⃣ Sources & Entrypoints

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

🧩 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

 
 
 

Contributors