Socket
Socket
Sign inDemoInstall

css-parse-keyframes

Package Overview
Dependencies
10
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    css-parse-keyframes

Node.js moduel parse your css and returns the object of all animations


Version published
Weekly downloads
3
increased by200%
Maintainers
1
Install size
1.52 MB
Created
Weekly downloads
 

Readme

Source

css-parse-keyframes

Node js moduel parse your css and returns the object of all animations

Install

npm i css-parse-keyframes -D 
npm install css-parse-keyframes --save-dev
//or
yarn add css-parse-keyframes --dev

Usage:

const kfParser = require('css-parse-keyframes');

kfParser.css('@keyframes anim-name{} .foo{baz:1}');
// or
kfParser.css(['@keyframes anim-name{} .foo{baz:1}']);
//result { 'anim-name': '@keyframes anim-name{}' }



//Synk
kfParser.files('./style.css');
// or
kfParser.files(['./style.css','style2.css']);

// Asynk
// files = Array|String
kfParser.files(files,(err,result)=>{
	if(err){
		return console.log(err);
	}
	console.log(result);
});

Keywords

FAQs

Last updated on 20 Mar 2017

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