
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
parse-name-import
Advanced tools
require node version >= 6.0
A script help you parse your file to transform whole module import to import only you need.
This is useful when the package you use support ES6 modules and you want to transform your old code to support ES6 modules import and save some space of your build file when using tree shaking(statically analyse the code and only include the bits of the library that are actually used).
For example transform
import THREE from "three";
const myMesh = new THREE.Mesh();
to
import { Mesh } from "three";
const myMesh = new Mesh();
node index.js [path] [replacedStatement]
To transform example above, all you need is do the following.
node index.js /src/ 'import THREE from "three";'
FAQs
Unknown package
The npm package parse-name-import receives a total of 0 weekly downloads. As such, parse-name-import popularity was classified as not popular.
We found that parse-name-import demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.