# Estro

> Extended String Object, Gain more from your strings.

Latest version **0.1.5** (published 2011-05-06) · 0 weekly downloads

## Install

```sh
npm install Estro
pnpm add Estro
yarn add Estro
bun add Estro
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2011-05-06 |
| First published | 2011-05-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Nijikokun |

## Links

- npm: https://www.npmjs.com/package/Estro
- Repository: https://github.com/Nijikokun/Estro
- npm.io page: https://npm.io/package/Estro

## Recent versions

- 0.1.5 (latest) — 2011-05-06
- 0.1.4 — 2011-05-06
- 0.1.3 — 2011-05-06

## README

______              
    (  /        _/_      
      /--   (   /  _   __
    (/____//_)_(__/ (_(_)

Estro is a tiny Extended String Object helper enables you to get more out of the string class.

Usage:

    var string = "Hello";

    if (!string.isEmpty()) alert(string);
    if (string.equals("Hello")) alert("Hi :D!");
    if (string.equalsIgnoreCase("hello")) alert("Hello again!");
    if (string.startsWith("H")) alert("Starts with H!");
    if (string.endsWith("ello")) alert("Ends with ello!");
    if (string.contains("e")) alert(string + " contains an e! Who knew?");
    alert("  trimmed  ".trim());

You can view a demo <a href="http://jsfiddle.net/kYsWv/1/">here</a>.
    
Extensions
----------

Estro contains the following string extensions (Unless they already exist; Estro is meant to be un-obtrusive):

  * string.equals(string) *Check one string against another. Returns: Boolean*
  * string.equalsIgnoreCase(string) *Check one string against another without case sensitivity. Returns: Boolean*
  * string.startsWith(prefix) *Check to see if a string starts with the given string. Returns: Boolean*
  * string.endsWith(suffix) *Check to see if a string ends with the given string. Returns: Boolean*
  * string.contains(needle) *Check to see if a string contains a given string. Returns Boolean*
  * string.trim() *Trim the string of whitespace. Returns: String*
  * string.isEmpty() *Check to see if the string is empty, and really empty. Returns Boolean*
  * string.reverse() *Reverses string. IE: Hello -> olleH*
  * string.repeat(n) *Repeat string n times*
  * string.capitalize() *Capitalize each word in the string and lower the rest. Returns String*
  * string.camelize() *CamelCase string, hello-there -> helloThere. Returns String*
  * string.bind(data) *Small template layer. Ex: "Hi %{name}".bind({'name': 'Estro'});" Outputs: Hi Estro*
  * string.extract(regex, n) *Extract data into an array based on regex and group(n). Returns Array*

<h3>In the future?</h3>

Hopefully, in the future I will extend this to work with other objects and not just strings.

<h3>Licensing?</h3>

Copyright Nijikokun 2011 <nijikokun@gmail.com>

GNUv3 Affero License <http://www.gnu.org/licenses/agpl-3.0.html>

---
_Source: https://npm.io/package/Estro · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
