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 24, 2024 via pnpm

is-string 1.0.7

Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Package summary
Share
0
issues
1
license
3
MIT
Package created
29 Jan 2015
Version published
6 Aug 2021
Maintainers
1
Total deps
3
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
3 Packages, Including:
has-symbols@1.0.3
has-tostringtag@1.0.2
is-string@1.0.7
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

1
All Dependencies CSV
β“˜ This is a list of is-string 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
has-tostringtag1.0.26.31 kBMIT
prod

Visualizations

Frequently Asked Questions

What does is-string do?

The 'is-string' npm package is a JavaScript utility that helps in validating if a certain value is a JavaScript String object or primitive. It has the feature to work cross-realm/iframe and regardless of ES6 @@toStringTag, adding more to its versatility and functionality.

How do you use is-string?

To use 'is-string', you first need to install the package from npm using npm install is-string. After the successful installation, you can start using the isString function in your code. Here's an example of how you can utilize it:

var isString = require('is-string');
var assert = require('assert');

assert.notOk(isString(undefined)); // returns false
assert.notOk(isString(null)); // returns false
assert.notOk(isString([])); // returns false
assert.ok(isString('foo')); // returns true
assert.ok(isString(Object('foo'))); // returns true

In the example above, we first import the 'is-string' module and the 'assert' module. We use isString function with different types of values, and it will return either true or false based on if the said value is a String or not.

Where are the is-string docs?

The documentation of 'is-string' is located on its npm package page. Extremely likely, the source code and other useful information can also be found on its GitHub repository (https://github.com/ljharb/is-string). For more details about the 'is-string' implementation and usage, you should visit these official links directly.