You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

zeba

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zeba

A very lightweight JavaScript library for taking out extra spaces in a string, can make first letter of a string, first letter of each words in a string or all letters in a string to uppercase.

2.0.4
latest
Source
npmnpm
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

GitHub issues GitHub stars GitHub last commit npm npm Dependency GitHub

Zeba

A very lightweight JavaScript library for taking out extra spaces in a string, can make first letter of a string, first letter of each words in a string or all letters in a string to uppercase.

Install:

npm i zeba

Require:

const zeba = require('zeba');

How to use:

Example:

let input = '    this    is the     input.';

input = zeba(input).fullTrim().capitilize().value();

console.log(input);

  • Use value() to get the value.

Outcome:

This is the input.

API

Methods:
  • capitilize()
    • Example: this is the text -> This is the text.
  • upper()
    • from: this is the text -> This Is The Text.
  • allupper()
    • from: this is the text -> THIS IS THE TEXT.
  • fullTrim()
    • fully trims the string from front, back and in betweens.

    let text = '   this   is   the text.  ';

    text = zeba(text).fullTrim().value();

    console.log(text);

    • outputs: this is the text.

Keywords

npm

FAQs

Package last updated on 06 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts