Last active
August 5, 2019 13:58
-
-
Save mindrones/3480b493d254c331b004fd4018c6e8cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d3-array: true | |
d3-axis: true | |
d3-brush: true | |
d3-chord: true | |
d3-color: true | |
d3-contour: true | |
d3-delaunay: true | |
d3-dispatch: true | |
d3-drag: true | |
d3-dsv: true | |
d3-ease: true | |
d3-fetch: true | |
d3-force: true | |
d3-format: true | |
d3-geo: true | |
d3-hierarchy: true | |
d3-interpolate: true | |
d3-path: true | |
d3-polygon: true | |
d3-quadtree: true | |
d3-random: true | |
d3-scale: true | |
d3-scale-chromatic: true | |
d3-selection: true | |
d3-shape: true | |
d3-tile: true | |
d3-time: true | |
d3-time-format: true | |
d3-timer: true | |
d3-transition: true | |
d3-zoom: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env node -r esm | |
import fs from 'fs'; | |
import {parse} from 'acorn'; | |
import hasSideEffect from 'acorn-has-side-effect'; | |
const getDist = name => fs.readFileSync( | |
`./node_modules/${name}/dist/${name}.js`, | |
'utf-8' | |
); | |
[ | |
'd3-array', | |
'd3-axis', | |
'd3-brush', | |
'd3-chord', | |
'd3-color', | |
'd3-contour', | |
'd3-delaunay', | |
'd3-dispatch', | |
'd3-drag', | |
'd3-dsv', | |
'd3-ease', | |
'd3-fetch', | |
'd3-force', | |
'd3-format', | |
'd3-geo', | |
// 'd3-hexbin', // dist dir is `build/` | |
'd3-hierarchy', | |
'd3-interpolate', | |
'd3-path', | |
'd3-polygon', | |
'd3-quadtree', | |
'd3-random', | |
'd3-scale', | |
'd3-scale-chromatic', | |
'd3-selection', | |
'd3-shape', | |
'd3-tile', | |
'd3-time', | |
'd3-time-format', | |
'd3-timer', | |
'd3-transition', | |
'd3-zoom', | |
'lamb' | |
].forEach(name => { | |
console.log(`${name}:`, hasSideEffect(parse(getDist(name)))); | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "hasSideEffects", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"index": "./index.js > hasSideEffect.txt && cat hasSideEffect.txt" | |
}, | |
"keywords": [], | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"acorn": "^6.2.1", | |
"acorn-has-side-effect": "^1.0.0", | |
"d3-array": "^2.2.0", | |
"d3-axis": "^1.0.12", | |
"d3-brush": "^1.1.0", | |
"d3-chord": "^1.0.6", | |
"d3-color": "^1.3.0", | |
"d3-contour": "^1.3.2", | |
"d3-delaunay": "^5.1.3", | |
"d3-dispatch": "^1.0.5", | |
"d3-drag": "^1.2.3", | |
"d3-dsv": "^1.1.1", | |
"d3-ease": "^1.0.5", | |
"d3-fetch": "^1.1.2", | |
"d3-force": "^2.0.1", | |
"d3-format": "^1.3.2", | |
"d3-geo": "^1.11.6", | |
"d3-hexbin": "^0.2.2", | |
"d3-hierarchy": "^1.1.8", | |
"d3-interpolate": "^1.3.2", | |
"d3-path": "^1.0.8", | |
"d3-polygon": "^1.0.5", | |
"d3-quadtree": "^1.0.6", | |
"d3-random": "^2.0.0", | |
"d3-scale": "^3.0.1", | |
"d3-scale-chromatic": "^1.3.3", | |
"d3-selection": "^1.4.0", | |
"d3-shape": "^1.3.5", | |
"d3-tile": "^1.0.0", | |
"d3-time": "^1.0.11", | |
"d3-time-format": "^2.1.3", | |
"d3-timer": "^1.0.9", | |
"d3-transition": "^1.2.0", | |
"d3-zoom": "^1.7.3", | |
"esm": "^3.2.25" | |
}, | |
"devDependencies": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment