Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Jun 1, 2024 via pnpm

css 3.0.0

CSS parser / stringifier
Package summary
Share
1
issue
1
high severity
meta
1
4
licenses
3
MIT
1
(MIT OR Apache-2.0)
1
ISC
1
BSD-3-Clause
Package created
19 Jul 2012
Version published
2 Jul 2020
Maintainers
11
Total deps
6
Direct deps
3
License
MIT

Issues

1

1 high severity issue

high
via: source-map-resolve@0.6.0
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
3 Packages, Including:
css@3.0.0
decode-uri-component@0.2.2
source-map-resolve@0.6.0

(MIT OR Apache-2.0)

Permissive
1 Packages, Including:
atob@2.1.2

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
1 Packages, Including:
inherits@2.0.4

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
source-map@0.6.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

3
All Dependencies CSV
β“˜ This is a list of css 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
inherits2.0.41.98 kBISC
prod
source-map-resolve0.6.07.46 kBMIT
prod
1
source-map0.6.1194.96 kBBSD-3-Clause
prod

Visualizations

Frequently Asked Questions

What does css do?

CSS is an npm package that is a robust CSS parser and stringifier in JavaScript. It is capable of accepting CSS strings and returning AST (Abstract Syntax Tree) objects. Moreover, it can also take an AST object to return a CSS string. CSS provides functionalities for error handling during parsing where you can either let errors be thrown or silently fail on parse errors. It also allows working with source maps, which helps identify where your code comes from.

How do you use css?

You can use CSS by installing it first in your project using the npm install command:

$ npm install css

After installation, you can require it in your JavaScript code and start using its parse and stringify methods. For instance, to parse a CSS string into an AST object:

var css = require('css');
var options = { source: 'source.css' };
var obj = css.parse('body { font-size: 12px; }', options);

In this example, obj will contain the AST object for the provided CSS string.

To turn an AST object back into a CSS string, you can use stringify:

var cssString = css.stringify(obj, options);

In this example, cssString will contain the CSS string that represents the obj AST object.

For more complex and detailed usage, please reference the readme documentation.

Where are the css docs?

The documentation for CSS npm package can be found in the package's readme file on GitHub at https://github.com/reworkcss/css. This contains detailed guide on how to use the package, examples to help you understand the API, and extra information such as API methods, options for methods, error handling, Abstract Syntax Tree (AST) and its properties.