1.0.8 • Published 10 months ago

@douglasdl/segmentsdisplay v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

npm version

install size npm bundle size

Table of Contents

Features

  • Make XMLHttpRequests from the browser
  • Make http requests from node.js
  • Supports the Promise API
  • Intercept request and response
  • Transform request and response data
  • Cancel requests
  • Automatic transforms for JSON data
  • 🆕 Automatic data object serialization to multipart/form-data and x-www-form-urlencoded body encodings
  • Client side support for protecting against XSRF

Browser Support

ChromeFirefoxSafariOperaEdgeIE
Latest ✔Latest ✔Latest ✔Latest ✔Latest ✔11 ✔

Browser Matrix

Installing

Package manager

Using npm:

$ npm i @douglasdl/segmentsdisplay

Using bower:

$ bower install @douglasdl/segmentsdisplay

Using yarn:

$ yarn add @douglasdl/segmentsdisplay

Using pnpm:

$ pnpm add @douglasdl/segmentsdisplay

Once the package is installed, you can import the library using import or require approach:

import { SegmentsDisplay } from '@douglasdl/segmentsdisplay';

Example

Note CommonJS usage In order to gain the TypeScript typings (for intellisense / autocomplete) while using CommonJS imports with require(), use the following approach:

import { SegmentsDisplay } from '@douglasdl/segmentsdisplay';

// Render a 16 Segments Display with the character "D"
<Display16Segments 
    value={"D"}
    size={100}
/>

TypeScript

@douglasdl/segmentsdisplay includes TypeScript definitions and a type guard for axios errors.

Resources

Credits

@douglasdl/segmentsdisplay is inspired on old electronic components and displays.

License

MIT

1.0.8

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago