Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 5, 2024 via pnpm

jsprim 0.1.0

utilities for primitive JavaScript types
Package summary
Share
6
issues
3
critical severity
license
3
1
high severity
license
1
1
moderate severity
meta
1
1
low severity
license
1
2
licenses
3
N/A
1
FreeBSD
Package created
18 Apr 2012
Version published
20 Aug 2012
Maintainers
10
Total deps
4
Direct deps
3
License
UNKNOWN

Issues

6

3 critical severity issues

critical
Recommendation: Check the package code and files for license information
via: extsprintf@1.0.0 & others
Recommendation: Check the package code and files for license information
via: jsprim@0.1.0
Recommendation: Check the package code and files for license information
via: verror@1.0.1
Collapse
Expand

1 high severity issue

high
Recommendation: Validate that the package complies with your license policy
via: JSV@4.0.0
Collapse
Expand

1 moderate severity issue

moderate
via: JSV@4.0.0
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: JSV@4.0.0
Collapse
Expand

Licenses

N/A

N/A
3 Packages, Including:
extsprintf@1.0.0
jsprim@0.1.0
verror@1.0.1

FreeBSD

Invalid
Not OSI Approved
1 Packages, Including:
JSV@4.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

3
All Dependencies CSV
β“˜ This is a list of jsprim 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
JSV4.0.01005.94 kBFreeBSD
prod
1
1
1
extsprintf1.0.08.94 kBUNKNOWN
prod
1
verror1.0.18.36 kBUNKNOWN
prod
2

Visualizations

Frequently Asked Questions

What does jsprim do?

Jsprim is a valuable utility library for JavaScript developers that helps them work with primitive JavaScript types, including strings, numbers, dates, and objects composed of these basic types. It offers various functionalities such as producing deep copies of objects, comparing objects, checking if an object has any properties, checking if an object has a specific property, iterating over properties of an object, and much more.

How do you use jsprim?

In order to use jsprim, first, you need to install it using npm by running npm install jsprim. Then, you can import the required functions in your JavaScript file. An example for using the deepCopy function would be:

var jsprim = require('jsprim');

var original = {key1: "value1", key2: "value2"};
var copy = jsprim.deepCopy(original);

Besides, to use the isEmpty function, you would write something like this:

var jsprim = require('jsprim');

var object = {};
console.log(jsprim.isEmpty(object)); // will print 'true' if the object is empty

For pluck function, you can do it like this:

var jsprim = require('jsprim');

var obj = { 'foo': { 'bar': {'baz':1}}};
console.log(jsprim.pluck(obj, "foo.bar.baz")); // will print 1

Where are the jsprim docs?

As for the documentation of jsprim, the readme content of its GitHub page serves as the primary source of its documentation. Developers can refer to it in order to know how to install and use different jsprim functions. Additionally, for more advanced usage or understanding, developers can check the source code in the GitHub repository itself at https://github.com/joyent/node-jsprim.