Gathering detailed insights and metrics for jq-trim
Gathering detailed insights and metrics for jq-trim
Gathering detailed insights and metrics for jq-trim
Gathering detailed insights and metrics for jq-trim
npm install jq-trim
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
9 Commits
2 Watchers
1 Branches
1 Contributors
Updated on Jul 25, 2015
Latest Version
0.1.2
Package Id
jq-trim@0.1.2
Size
2.63 kB
NPM Version
2.14.0
Node Version
0.12.0
Published on
Aug 25, 2015
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A trim method that behaves like jquery.trim
1npm i --save jq-trim
1var trim = require('jq-trim'); 2 3describe( 'jq-trim', function () { 4 it( 'should trim a string', function () { 5 var trim = require( '../' ); 6 var val = trim( ' a simple string ' ); 7 expect( val ).to.equal( 'a simple string' ); 8 } ); 9 it( 'should return an empty string if null is passed', function () { 10 var trim = require( '../' ); 11 var val = trim( null ); 12 expect( val ).to.equal( '' ); 13 } ); 14 it( 'should return an empty string if undefined is passed', function () { 15 var trim = require( '../' ); 16 var val = trim( undefined ); 17 expect( val ).to.equal( '' ); 18 } ); 19 it( 'should return the toString() of the passed object if non a string', function () { 20 var trim = require( '../' ); 21 var val = trim( { } ); 22 expect( val ).to.equal( '[object Object]' ); 23 } ); 24} );
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/9 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More