Socket
Socket
Sign inDemoInstall

postcss-values-parser

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-values-parser - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

43

API.md

@@ -6,2 +6,45 @@ # API Documentation

<!-- toc -->
- [`parser` function](#parser-function)
* [`parser.atword([props])`](#parseratwordprops)
* [`parser.colon([props])`](#parsercolonprops)
* [`parser.comma([props])`](#parsercommaprops)
* [`parser.comment([props])`](#parsercommentprops)
* [`parser.func([props])`](#parserfuncprops)
* [`parser.number([props])`](#parsernumberprops)
* [`parser.operator([props])`](#parseroperatorprops)
* [`parser.paren([props])`](#parserparenprops)
* [`parser.string([props])`](#parserstringprops)
* [`parser.value([props])`](#parservalueprops)
* [`parser.word([props])`](#parserwordprops)
- [Node types](#node-types)
* [`node.type`](#nodetype)
* [`node.parent`](#nodeparent)
* [`node.toString()`, `String(node)`, or `'' + node`](#nodetostring-stringnode-or---node)
* [`node.next()` & `node.prev()`](#nodenext--nodeprev)
* [`node.replaceWith(node)`](#nodereplacewithnode)
* [`node.remove()`](#noderemove)
* [`node.clone()`](#nodeclone)
* [`node.raws`](#noderaws)
* [`node.source`](#nodesource)
* [`node.sourceIndex`](#nodesourceindex)
- [Container types](#container-types)
* [`container.nodes`](#containernodes)
* [`container.first` & `container.last`](#containerfirst--containerlast)
* [`container.at(index)`](#containeratindex)
* [`container.index(node)`](#containerindexnode)
* [`container.length`](#containerlength)
* [`container.each(callback)`](#containereachcallback)
* [`container.walk(callback)`](#containerwalkcallback)
* [`container.walk` proxies](#containerwalk-proxies)
* [`container.prepend(node)` & `container.append(node)`](#containerprependnode--containerappendnode)
* [`container.insertBefore(old, new)` & `container.insertAfter(old, new)`](#containerinsertbeforeold-new--containerinsertafterold-new)
* [`container.removeChild(node)`](#containerremovechildnode)
* [`container.removeAll()` or `container.empty()`](#containerremoveall-or-containerempty)
- [Root nodes`](#root-nodes)
- [Value nodes](#value-nodes)
<!-- tocstop -->
## `parser` function

@@ -8,0 +51,0 @@

2

lib/parser.js

@@ -466,3 +466,3 @@ 'use strict';

node.isHex = /^#(.+)/.test(value);
node.isColor = /^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(value);
node.isColor = /^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(value);
}

@@ -469,0 +469,0 @@ else {

{
"name": "postcss-values-parser",
"version": "1.3.1",
"version": "1.3.2",
"description": "A CSS property value parser for use with PostCSS",

@@ -17,3 +17,4 @@ "main": "lib/index.js",

"scripts": {
"test": "gulp"
"test": "gulp",
"toc": "markdown-toc -i API.md"
},

@@ -42,4 +43,5 @@ "keywords": [

"gulp-eslint": "^3.0.1",
"gulp-mocha": "^4.0.1"
"gulp-mocha": "^4.0.1",
"markdown-toc": "^1.2.0"
}
}

@@ -103,1 +103,9 @@ # postcss-values-parser [![Build Status](https://travis-ci.org/shellscape/postcss-values-parser.svg?branch=master)](https://travis-ci.org/shellscape/postcss-values-parser)

were used.
## Contributing
- `git fork/clone`
- `npm i`
- Before PR'ing, make sure `npm test` still pass. Add test if you're adding features.
When you tweak [API.md](API.md), please run `npm run toc` before PR'ing.
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc