New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

css-annotation-block

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-annotation-block

A css-annotation module to return the specific nodes

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
67
decreased by-16.25%
Maintainers
1
Weekly downloads
 
Created
Source

css-annotation-block Build Status

A css-annotation module to return the specific nodes

Install

$ npm install css-annotation-block

Example

input.css:

/* @start foo */

.class {
   font-size: 12px;
}

/* @end foo */
var fs = require('fs')
var cssAnnotationBlock = require('css-annotation-block')

var css = fs.readFileSync('input.css', 'utf-8').trim()

cssAnnotationBlock(css)
/* Return: [ { name: 'foo', nodes: [ [Object] ] } ] */

name is the name of its block. nodes is PostCSS's Node object.

License

The MIT License (MIT)

Copyright (c) 2015 Masaaki Morishita

Keywords

FAQs

Package last updated on 05 Feb 2016

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

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