![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@slimio/psp
Advanced tools
SlimIO - Project Structure Policy. A policy aims to accurately describe the constituent elements of a project. This CLI has been created to apply the following Specification.
⚠️ This project has been created for SlimIO (it will not work outside). Feel free to replicate the idea / core concept.
This package is available in the Node Package Repository and can be easily installed with npm or yarn.
$ npm i @slimio/psp
# or
$ yarn add @slimio/psp
When installed globally the psp executable will be exposed in your terminal.
$ psp
If you want to continue the execution even for critical warnings, just run with force mode:
$ psp --force
name | description |
---|---|
-h --help | Show help |
--force | Enable force mode |
--gitignore | Show .gitignore file |
--npmignore | Show .npmignore file |
--editorconfig | Show .editorconfig file |
PSP is available in API mode too.
const psp = require("@slimio/psp");
async function main() {
const { warn, crit } = await psp({
forceMode: true, // <-- stay to true (else it will exit the process on CRIT).
CWD: "./dir",
isCLI: false, // <-- stay to false (else it will work as it was executed as a CLI).
verbose: false
});
console.log(`warn => ${warn}, crit => ${crit}`);
}
main().catch(console.error);
The SlimIO Sync project allow to run a command to get a global overview of warnings of all projects in the current working dir.
Name | Refactoring | Security Risk | Usage |
---|---|---|---|
@slimio/is | Minor | Low | JavaScript Type checker |
@slimio/manifest | Minor | Low | SlimIO Manifest manager |
boxen | Minor | High | TBC |
estree-walker | ⚠️Major | Low | Simple utility for walking an ESTree-compliant AST |
file-ignore-parser | Minor | Low | Parse .ignore file |
file-normalize | ⚠️Major | Low | File normalizer |
globby | Minor | High | TBC |
js-yaml | ⚠️Major | Low | YAML parser/writer |
kleur | Minor | Low | color for TTY |
make-promises-safe | ⚠️Major | Low | Force Node.js DEP00018 |
marked | Minor | Low | TBC |
meriyah | Minor | Low | TBC |
sade | Minor | Low | Sade is a small but powerful tool for building command-line interface (CLI) applications for Node.js that are fast, responsive, and helpful! |
semver | ⚠️Major | Low | Semver parser/utilities for node |
MIT
FAQs
Analyze compliance with the structural policy of a SlimIO project
We found that @slimio/psp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.