Security News
vlt Debuts New JavaScript Package Manager and Serverless Registry at NodeConf EU
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
ast-contains-only-empty-space
Advanced tools
Does AST contain only empty space?
This package is pure ESM. If you're not ready yet, install an older version of this program, 2.1.0 (npm i ast-contains-only-empty-space@2.1.0
).
npm i ast-contains-only-empty-space
import { strict as assert } from "assert";
import { empty } from "ast-contains-only-empty-space";
assert.equal(
empty({
a: [
{
x: {
y: [
{
z: ["\n"],
},
],
},
},
],
b: ["\t\t\t "],
c: ["\n \n\n"],
d: ["\t "],
}),
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-2023 Roy Revelt and other contributors.
FAQs
Does AST contain only empty space?
We found that ast-contains-only-empty-space demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Security News
Research
The Socket Research Team uncovered a malicious Python package typosquatting the popular 'fabric' SSH library, silently exfiltrating AWS credentials from unsuspecting developers.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.