inikulin / dmn Goto Github PK
View Code? Open in Web Editor NEWJanitor for your node_modules
License: MIT License
Janitor for your node_modules
License: MIT License
There's this ugly warning when installing dmn
:
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
I've attempted to update dependencies to their latest version, but they seem to contain some breaking changes as tests fail left and right afterwards.
I think it's time for a rewrite, I find the current code structure quite confusing and would prefer a rewrite that only retains the functionality of cleaning node_modules (don't need the others). Ideas:
uv_fs_scandir
under the hood for performance, e.g. withFileTypes
of fs.readdir
safe
, unsafe
.eslintrc
.jsbeautifyrc
Seems like there is a pretty serious memory leak in this module, to reproduce:
npx create-react-app memleak
cd memleak
npx dmn clean -f
This will result in
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
By the way, I'm kind of tempted to rewrite the module, probably under a new name and with the only functionality of cleaning node_modules
๐
@inikulin Any interest in adding more collaborators (or giving me admin access so I can do it) on this repository? @silverwind is doing some good work and seems to care, so they'd be a good candidate.
Line endings are huge PITA for people who use different OS's for development (like I do). \n
is not recognized by Windows in some editors, meanwhille \r\n
ends up with extra ^M
character in *nix systems. Currently dmn
enforces \r\n
in generated files (see: inikulin/ineed#3). We need to take smarter approach. Use the following strategy: If we already have .npmignore
use it's line endings, otherwise use line endings of the OS in which dmn
was invoked.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.