@douglasdl/segmentsdisplay
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published


Promise based HTTP client for the browser and node.js

WebsiteDocumentation

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

Chrome Firefox Safari Opera Edge IE
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

Readme

Keywords

none

Package Sidebar

Install

npm i @douglasdl/segmentsdisplay

Weekly Downloads

1

Version

1.0.8

License

ISC

Unpacked Size

396 kB

Total Files

15

Last publish

Collaborators

  • douglasdl