Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
prsize
Advanced tools
Readme
This is a tool to quickly measure the size of your coding project, in terms of executable code, code-to-comment proportions and file size. Nothing that actually aids in development - just fun metrics here!
The tool currently supports .js
and .ts
files. More to come?
You can easily run the tool via npx
(bundled with npm
since 5.2):
npx prsize
Alternatively, you can globally install the tool into your commandline:
npm i -g prsize
prsize
The output will look something like this:
Hierarchy Size (in bytes) Executable lines Comment lines Total lines
----------------------------------------------------------------------------------------------------------------------
<path to the item> <filesize> [<%>] <linecount> [<%>] <linecount> [<%>] <linecount> [<%>]
... ... ... ... ...
The default usage is to call the tool the following way:
npx prsize [path] [options]
path
defaults to the current working directory (.
), and you can use the options below to customize the output.
Name | Default Value | Description |
---|---|---|
--depth | -1 | How deep to show the tree. Note that regardless of this, the entire project will be scanned. -1 to show the entire tree. |
--nodirs | false | Whether to hide directory statistics. Note that the directories themselves will be shown regardless. |
The project is licensed under a MIT license.
FAQs
A CLI tool to measure JS/TS project sizes.
The npm package prsize receives a total of 1 weekly downloads. As such, prsize popularity was classified as not popular.
We found that prsize 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.