Socket
Socket
Sign inDemoInstall

@selective/parse

Package Overview
Dependencies
9
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @selective/parse

Parse selective configuration files into JSON


Version published
0
Maintainers
1
Install size
1.91 MB
Created
Weekly downloads
 

Changelog

Source

0.3.0 (2020-06-03)

Breaking Change

  • Drops support for Node 8.

Features

  • Add tests for Node 10, 12, and 14 LTS.
  • Upgrade dependencies

Readme

Source

selective parse

NPM Version Linux Build Status Windows Build status

Converts selective's css-like domain specific language to a list of JSON rules

Installation

# npm
npm install @selective/parse

# yarn
yarn add @selective/parse

Usage

const parse = require("@selective/parse");

const rules = parse(
  ".test {name: 'test-name'; description: 'test description'; recommended: warn}"
);

console.log(rules);
// [
//   {
//     name: "test-name",
//     description: "test description",
//     recommended: "warn",
//     selector: ".test"
//   }
// ]

References

Keywords

FAQs

Last updated on 03 Jun 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc