
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
ast-compare
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
AI-detected possible typosquat
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
just-compare |
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
Compare anything: AST, objects, arrays, strings and nested thereof
This package is pure ESM. If you're not ready yet, install an older version of this program, 2.1.0 (npm i ast-compare@2.1.0
).
npm i ast-compare
import { strict as assert } from "assert";
import { compare } from "ast-compare";
// Find out, does an object/array/string/nested-mix is a subset or equal to another input:
assert.equal(
compare(
{
a: {
b: "d",
c: [],
e: "f",
g: "h",
},
},
{
a: {
b: "d",
c: [],
},
},
),
true,
);
Please visit codsen.com for a full description of the API.
To report bugs or request features or assistance, raise an issue on GitHub.
MIT License.
Copyright © 2010-2025 Roy Revelt and other contributors.
FAQs
Compare anything: AST, objects, arrays, strings and nested thereof
The npm package ast-compare receives a total of 249 weekly downloads. As such, ast-compare popularity was classified as not popular.
We found that ast-compare demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.