Comparing version 1.2.7 to 2.0.0
{ | ||
"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.` |
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
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
0
41
0
4526
1
5
57
+ Added@types/node@^13.7.1
+ Added@types/node@13.13.52(transitive)