Socket
Book a DemoInstallSign in
Socket

@directctrl/fixturelibrary

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@directctrl/fixturelibrary

Utility library making it easy to work with the open-fixture-library.

2.0.1
latest
Source
npmnpm
Version published
Weekly downloads
38
-5%
Maintainers
1
Weekly downloads
 
Created
Source

FixtureLibrary JS / TS

The JS/TS library for working with the open-fixture-library.

The Documentation can be found here

Installation

Via NPM: npm i fixturelibrary && npx syncOfl

syncOfl executes a Script which then downloads all fixture definitions into the .fixturelibrary directory and populates an index with path and sha version references. If you don't want all fixtures downloaded and are fine with downloading them during runtime you can use the shallow parameter : npx syncOfl shallow

When new fixtures get added to the Open-Fixture-Library just run npx syncOfl to update your index! If his script is executed to often, you might run into the Github rate limiter and you'll have to try again after you wait some time.

Usage

For a more in depth documentation please look here: FixtureLibrary

const { FixtureLibrary } = require('fixturelibrary');
const fl = new FixtureLibrary();

const fixture = await fl.getFixture('cameo/auro-spot-300');
console.log(`${fixture.name} has ${fixture.modes.length} Modes.`);

When working with Typescript, types for the fixture and all different capabilities can be found here.

Keywords

ofl

FAQs

Package last updated on 25 Jul 2022

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.