Skip to content

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

License

Notifications You must be signed in to change notification settings

retyui/css-parse-keyframes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
});

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published