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.7 to 2.0.0

dist/index.d.ts

16

package.json
{
"name": "zeba",
"version": "1.2.7",
"version": "2.0.0",
"description": "A lightweight JavaScript library for validating, manipulating, and formatting strings.",
"main": "index.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"dev": "parcel src/zeba.js --out-file zeba.js",
"build": "parcel build src/zeba.js --out-file zeba.min.js"
"start": "tsc"
},

@@ -28,3 +29,2 @@ "repository": {

"README.md",
"index.js",
"dist/"

@@ -38,6 +38,8 @@ ],

"homepage": "https://github.com/taslim-a-hussain/zeba#readme",
"dependencies": {},
"dependencies": {
"@types/node": "^13.7.1"
},
"devDependencies": {
"parcel-bundler": "^1.12.4"
"typescript": "^3.7.5"
}
}

@@ -5,14 +5,17 @@ # Zeba

## Install:
> npm i zeba
`npm i zeba`
### Require:
> `const` zeba = `require`(`'zeba'`);
`const zeba = require('zeba');`
### How to use:
#### _Example:_
> `let` input = '    this    is the     input.';
>
> input = `new` zeba(input).fullTrim().capitilize();
>
> `console.log`(input.`string`);
`let input = '`    this    is the     input.`';`
`input = zeba(input).fullTrim().capitilize().value();`
`console.log(input);`
* Use `value()` to get the value.
#### _Outcome:_

@@ -33,8 +36,8 @@ This is the input.

* fully trims the string from front, back and in betweens.
> `let` text = `' this is the text.'`;
> `let text = '` this is the text.`'; `
>
> text = `new` zeba(text).`fullTrim`();
> `text = zeba(text).fullTrim().value();`
>
> `console.log`(text.`string`);
> `console.log(text);`
* 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