Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@lottiefiles/lottie-js
Advanced tools
Changelog
0.4.2
Readme
An object model for representing the Lottie JSON structure.
This library was created to make interacting with the Lottie JSON object simpler. The library consists of methods to map the Lottie JSON to the object model and interact with properties as well as manipulate them. The goal is to fully map the Lottie object model and add in enough helper methods to the library such that Lottie manipulation can be made easier without having to learn the entire complex structure of a Lottie file.
yarn add @lottiefiles/lottie-js@0.0.1
import { Animation } from '@lottiefiles/lottie-js';
async function loadAnimation() {
// Create Lottie instance
// (you can also use Animation.fromJSON method if you already have the Lottie JSON loaded)
const anim = await Animation.fromURL('https://assets1.lottiefiles.com/packages/lf20_u4j3xm6r.json');
// Print some data of the animation
console.log('Frame Rate', anim.frameRate);
console.log('Number of Layers', anim.layers.length);
console.log(anim.getColors());
// Manipulate animation
anim.name = 'Woohoo';
anim.width = 512;
anim.height = 512;
// Get the new JSON
const woohooLottie = JSON.stringify(anim);
console.log(woohooLottie);
}
Promise.resolve(loadAnimation());
The documenting system used is TypeDoc.
Clone the repo and run the yarn command: yarn docs
to generate the docs to browse locally.
The generated documentation is placed in the docs/ folder.
The testing system used is Jest and each file should have an accompanying test suite for functional and integration tests.
Development work on the toolkit requires Nodejs and Yarn.
git clone https://github.com/LottieFiles/lottie-js
cd lottie-js
yarn install
yarn test
yarn build
FAQs
Lottie JSON model for Javascript/Typescript
The npm package @lottiefiles/lottie-js receives a total of 1,473 weekly downloads. As such, @lottiefiles/lottie-js popularity was classified as popular.
We found that @lottiefiles/lottie-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.