New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

righteous-core

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

righteous-core

CSS Code Formatter Engine that implements the Kary Coding Standards

latest
npmnpm
Version
2.1.0
Version published
Weekly downloads
39
25.81%
Maintainers
1
Weekly downloads
 
Created
Source

Righteous is a modern CSS 3 formatter that implements the Kary Coding Standard for CSS. It is a rewriting parsing parser; It reads your CSS code into an AST (abstract syntax tree) and the rewrites that AST into code. This technique allows Righteous to fully format the code based on the specification. This package is the core righteous formatter to be used within other software such as Righteous for Visual Studio Code and similar software.

Usage?

Installation:

% npm install righteous-core --save

And then ready to use:

const righteous = require( 'righteous-core' )
const code = "h1 { color: red }"
try {
    const formattedCode = righteous( code )
} catch ( e ) {
    console.error( "Righteous could not format the code because of" , e )
}

The .d.ts declaration file is included within the project. Your compiler must auto detect it but if it can't then use:

/node_modules/righteous/typings/righteous.d.ts

FAQs

Package last updated on 15 Sep 2018

Did you know?

Socket

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.

Install

Related posts