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

yamljs 0.1.3

Standalone JavaScript YAML 1.2 Parser & Encoder. Works under node.js and all major browsers. Also brings command line YAML/JSON conversion tools.
Package summary
Share
12
issues
3
critical severity
vulnerability
1
license
2
6
high severity
vulnerability
2
license
2
meta
2
1
moderate severity
vulnerability
1
2
low severity
license
2
4
licenses
4
MIT
2
BSD
2
N/A
2
ISC
Package created
4 Aug 2012
Version published
19 Sep 2012
Maintainers
1
Total deps
10
Direct deps
2
License
UNKNOWN

Issues

12

3 critical severity issues

critical
Recommendation: Upgrade to version 1.12.1 or later
via: argparse@0.1.16
Recommendation: Check the package code and files for license information
via: glob@3.1.21
Recommendation: Check the package code and files for license information
via: yamljs@0.1.3
Collapse
Expand

6 high severity issues

high
Recommendation: Upgrade to version 3.0.2 or later
via: glob@3.1.21
Recommendation: Upgrade to version 3.0.5 or later
via: glob@3.1.21
Recommendation: Validate that the package complies with your license policy
via: glob@3.1.21
Recommendation: Validate that the package complies with your license policy
via: glob@3.1.21
via: glob@3.1.21
via: glob@3.1.21
Collapse
Expand

1 moderate severity issue

moderate
Recommendation: Upgrade to version 3.3.5 or later
via: argparse@0.1.16
Collapse
Expand

2 low severity issues

low
Recommendation: Read and validate the license terms
via: glob@3.1.21
Recommendation: Read and validate the license terms
via: glob@3.1.21
Collapse
Expand

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
4 Packages, Including:
argparse@0.1.16
minimatch@0.2.14
underscore.string@2.4.0
underscore@1.7.0

BSD

Invalid
Not OSI Approved
2 Packages, Including:
glob@3.1.21
graceful-fs@1.2.3

N/A

N/A
2 Packages, Including:
inherits@1.0.2
yamljs@0.1.3

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
lru-cache@2.7.3
sigmund@1.0.1
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

2
All Dependencies CSV
β“˜ This is a list of yamljs 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
argparse0.1.1630.15 kBMIT
prod
1
1
glob3.1.2114.53 kBBSD
prod
1
6
2

Visualizations

Frequently Asked Questions

What does yamljs do?

Yamljs is a standalone JavaScript YAML 1.2 parser and encoder that possesses broad compatibility across node.js and all major browsers. Not only does it enable the conversion between YAML and JavaScript native objects, but it also provides command-line YAML/JSON conversion tools.

How do you use yamljs?

To use Yamljs in your JavaScript or Node.js project, you'll first need to import it. For browser-based implementations, link the yaml.js script in your HTML page:

<script type="text/javascript" src="yaml.js"></script>

In a Node.js environment, install the yamljs package via npm and require it in your file:

npm install yamljs
YAML = require('yamljs');

Here's how you can use Yamljs to parse a YAML string to a native JavaScript object:

nativeObject = YAML.parse(yamlString);

And to convert a native JavaScript object into a YAML string:

yamlString = YAML.stringify(nativeObject, 4);

If you want to load a YAML file directly, you can do so with the YAML.load function:

nativeObject = YAML.load('myfile.yml');

Moreover, Yamljs can be utilized for command-line YAML/JSON conversions. Install it as a global npm module for easy command-line access:

npm install -g yamljs

This will offer you two commands: yaml2json and json2yaml, which allows for easy conversion between YAML and JSON formats respectively.

Where are the yamljs docs?

The documentation for Yamljs can be primarily found in its GitHub source (git://github.com/jeremyfa/yaml.js.git). This includes necessary details about its functioning, compatibility, usage, and command-line tools. For more detailed help on its CLI tools, you can also look up the --help option with yaml2json -h or json2yaml -h directly in your command line environment.