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); | ||
*/ |
{ | ||
"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.` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
34606
342
38
1