
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
swc-walk
Walk an AST from SWC and visit each node type.
@swc/types
.swc-walk
wraps acorn-walk
walkers.
import { simple } from 'swc-walk'
import { parseSync } from '@swc/core'
import assert from 'node:assert/strict'
type WalkState = {
[k: string]: string
}
const state = {
search: 'const foo',
}
const ast = parseSync('const foo: string = "bar"', { syntax: 'typescript' })
simple<WalkState>(
ast,
{
VariableDeclaration(node, state) {
assert.equal(node.type, 'VariableDeclaration')
assert.ok(typeof state.search === 'string')
},
},
undefined,
state,
)
FAQs
Walk an AST from SWC and visit each node type.
The npm package swc-walk receives a total of 4,456 weekly downloads. As such, swc-walk popularity was classified as popular.
We found that swc-walk 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
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.