Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

css-parse-keyframes

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-parse-keyframes

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

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 20 Mar 2017

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