Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc