0.12.3 • Published 3 years ago

@slimio/psp v0.12.3

Weekly downloads
377
License
MIT
Repository
github
Last release
3 years ago

Project structure policy

version Maintenance MIT dep size Known Vulnerabilities Build Status

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.

Requirements

Getting Started

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

Usage example

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

Arguments

namedescription
-h --helpShow help
--forceEnable force mode
--gitignoreShow .gitignore file
--npmignoreShow .npmignore file
--editorconfigShow .editorconfig file

API

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);

Get a global overview of many projects

The SlimIO Sync project allow to run a command to get a global overview of warnings of all projects in the current working dir.

Dependencies

NameRefactoringSecurity RiskUsage
@slimio/isMinorLowJavaScript Type checker
@slimio/manifestMinorLowSlimIO Manifest manager
boxenMinorHighTBC
estree-walker⚠️MajorLowSimple utility for walking an ESTree-compliant AST
file-ignore-parserMinorLowParse .ignore file
file-normalize⚠️MajorLowFile normalizer
globbyMinorHighTBC
js-yaml⚠️MajorLowYAML parser/writer
kleurMinorLowcolor for TTY
make-promises-safe⚠️MajorLowForce Node.js DEP00018
markedMinorLowTBC
meriyahMinorLowTBC
sadeMinorLowSade is a small but powerful tool for building command-line interface (CLI) applications for Node.js that are fast, responsive, and helpful!
semver⚠️MajorLowSemver parser/utilities for node

License

MIT

0.12.3

3 years ago

0.12.2

3 years ago

0.12.1

4 years ago

0.12.0

4 years ago

0.11.1

4 years ago

0.11.0

4 years ago

0.10.0

4 years ago

0.9.2

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.4

5 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago