Socket
Socket
Sign inDemoInstall

nth-check

Package Overview
Dependencies
1
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

LICENSE

9

package.json
{
"name": "nth-check",
"version": "1.0.1",
"version": "1.0.2",
"description": "performant nth-check parser & compiler",

@@ -13,2 +13,7 @@ "main": "index.js",

},
"files": [
"compile.js",
"index.js",
"parse.js"
],
"keywords": [

@@ -20,3 +25,3 @@ "nth-child",

"author": "Felix Boehm <me@feedic.com>",
"license": "BSD",
"license": "BSD-2-Clause",
"bugs": {

@@ -23,0 +28,0 @@ "url": "https://github.com/fb55/nth-check/issues"

@@ -1,6 +0,6 @@

#nth-check [![Build Status](https://travis-ci.org/fb55/nth-check.png)](https://travis-ci.org/fb55/nth-check)
# nth-check [![Build Status](https://travis-ci.org/fb55/nth-check.svg)](https://travis-ci.org/fb55/nth-check)
A performant nth-check parser & compiler.
###About
### About

@@ -11,3 +11,3 @@ This module can be used to parse & compile nth-checks, as they are found in CSS 3's `nth-child()` and `nth-last-of-type()`.

###API
### API

@@ -18,7 +18,7 @@ ```js

#####`nthCheck(formula)`
##### `nthCheck(formula)`
First parses, then compiles the formula.
#####`nthCheck.parse(formula)`
##### `nthCheck.parse(formula)`

@@ -33,3 +33,3 @@ Parses the expression, throws a `SyntaxError` if it fails, otherwise returns an array containing two elements.

#####`nthCheck.compile([a, b])`
##### `nthCheck.compile([a, b])`

@@ -36,0 +36,0 @@ Takes an array with two elements (as returned by `.parse`) and returns a highly optimized function.

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