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 - npm Package Compare versions

Comparing version 1.2.6 to 1.2.7

11

index.js

@@ -7,2 +7,11 @@ 'use strict';

module.exports = require('./dist/zeba.js');
}
}
/**
const zeba = require('./dist/zeba.min');
let text = ' this is the text.';
text = new zeba(text).fullTrim('-');
console.log(text.string);
*/

2

package.json
{
"name": "zeba",
"version": "1.2.6",
"version": "1.2.7",
"description": "A lightweight JavaScript library for validating, manipulating, and formatting strings.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -8,3 +8,3 @@ # Zeba

### Require:
> `const` str = `require`(`'zeba'`);
> `const` zeba = `require`(`'zeba'`);

@@ -15,5 +15,5 @@ ### How to use:

>
> input = `new` str(input).fullTrim().capitilize();
> input = `new` zeba(input).fullTrim().capitilize();
>
> `console.log`(input.string);
> `console.log`(input.`string`);
#### _Outcome:_

@@ -24,1 +24,18 @@ 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 = `new` zeba(text).`fullTrim`();
>
> `console.log`(text.`string`);
* outputs:
`this is the text.`
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