Socket
Book a DemoInstallSign in
Socket

@apielements/apib-serializer

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apielements/apib-serializer

API Blueprint serializer for API Elements

0.16.3
latest
Source
npmnpm
Version published
Weekly downloads
126
133.33%
Maintainers
3
Weekly downloads
 
Created
Source

API Elements: API Blueprint Serializer

NPM version License

This adapter provides support for serializing API Blueprint in Fury.js from refract elements.

Install

$ npm install @apielements/apib-serializer

Usage

Async

import fury from 'fury';
import apibSerializer from '@apielements/apib-serializer';

fury.use(apibSerializer);

// Assume `api` is a Minim element instance, e.g. from `fury.parse(...)`
fury.serialize({ api }, (err, content) => {
  fs.write('serialized.apib', content, 'utf8');
});

Sync

import fury from 'fury';
import apibSerializer from '@apielements/apib-serializer';

fury.use(apibSerializer);

try {
  // Assume `api` is a Minim element instance, e.g. from `fury.parse(...)`
  const content = fury.serializeSync({ api });
  fs.write('serialized.apib', content, 'utf8');
} catch (error) {
  console.log(error);
}

FAQs

Package last updated on 15 Feb 2021

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.