open-index/open-npm huggingface dataset:
npm package: @ironsource/parse-content-range-header
Description: Parse an http response Content-Range header
Author: Yaniv Kessler
Latest version: 0.0.4

# parse-content-range-header

**Parse an http response Content-Range header**

[![npm status](http://img.shields.io/npm/v/@ironsource/parse-content-range-header.svg?style=flat-square)](https://www.npmjs.org/package/parse-content-range-header) 
[![Travis](https://img.shields.io/travis/ironsource/parse-content-range-header.svg)](https://travis-ci.org/ironSource/parse-content-range-header)

## example

`npm i -S @ironsource/parse-content-range-header`

```js
const parseContentRangeHeader = require('@ironsource/parse-content-range-header')

try {
    console.log(parseContentRangeHeader('bytes 0-100/1000') )
    console.log(parseContentRangeHeader('bytes */1000') )
    console.log(parseContentRangeHeader('bytes 0-100/*') )
} catch (e) {
    console.error(e)
}
```

## api

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

#### Table of Contents

-   [parseContentRangeHeader](#parsecontentrangeheader)
-   [ParseResult](#parseresult)

### parseContentRangeHeader

**Parameters**

-   `headerValue` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** the value of a `Content-Range` header
       	The supported forms of this header are specified in this [RFC](https://tools.ietf.org/html/rfc7233#section-4.2)
       	and on [MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range#Syntax)

Returns **[ParseResult](#parseresult)** 

### ParseResult

**Properties**

-   `range` **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) \| [String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))** range start and range end, if range is not satisfiable (`isRangeSatisfiable === false`), then this will be a `*`
    -   `range.start` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** 
    -   `range.end` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** 
-   `isRangeSatisfiable` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** a flag indicating if the server can satisfy the range request or not
-   `unit` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** the unit of the range, usually this will be `bytes`
-   `size` **([Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number) \| [String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))** the full size of the resource. If the size is not known (`isSizeKnown === false`) then this will be a `*`
-   `isSizeKnown` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** a flag indicating if the server knows the size of the resource or not

## license

[MIT](http://opensource.org/licenses/MIT) © ironSource ltd
npm package: @ironsource/resumable-http-downloader
Description: resumable http download(er)
Author: Yaniv Kessler
Latest version: 0.0.1

# resumable-http-download (WIP)

**resumable http download(er)**

[![npm status](http://img.shields.io/npm/v/resumable-http-download.svg?style=flat-square)](https://www.npmjs.org/package/resumable-http-download) 
## api

## install

With [npm](https://npmjs.org) do:

```
npm install resumable-http-download
```

## license

[MIT](http://opensource.org/licenses/MIT) © ironSource ltd
npm package: @ironsource/rhd
Description: resumable http download(er)
Author: Yaniv Kessler
Latest version: 0.0.2

# resumable-http-download (WIP)

**resumable http download(er)**

[![npm status](http://img.shields.io/npm/v/resumable-http-download.svg?style=flat-square)](https://www.npmjs.org/package/resumable-http-download) 
## api

## install

With [npm](https://npmjs.org) do:

```
npm install @ironsource/rhd
```

## license

[MIT](http://opensource.org/licenses/MIT) © ironSource ltd
npm package: @ironsource/storybook-addon-stackblitz
Description: Open storybook angular component story example in Stackblitz
Author: Andy Kononenko
Latest version: 1.0.5

# Storybook Addon storybook-addon-stackblitz
Open story example (angular only) on StackBlitz

- Install addon
```bash
npm i -D @ironsource/storybook-addon-stackblitz
```
- Add addon to your .storybook/main.js file
```js
module.exports = {
  ...
  addons: [
    ...
    '@ironsource/storybook-addon-stackblitz'
  ],
  ...
};
```

- In your project .storybook/preview.js file add dependency for your components in property ***stackblitzAdditionalDependency*** lib:
```ts
export const parameters = {
    globals: {
        stackblitzGlobals: {
            stackblitzAdditionalDependency: {
                '@ironsource/fusion-ui': '7.0.0'
            }
        }
    },
    actions: {argTypesRegex: '^on[A-Z].*'},
    controls: {
        matchers: {
            color: /(background|color)$/i,
            date: /Date$/
        }
    },
    docs: {inlineStories: true},
    ...
};
```
- In your component story you need put standalone component wrapper code in Story.parameters.docs.source.
- Example:
```ts
parameters: {
        docs: {
            source: {
                language: 'typescript',
                code: dedent`
    import { Component } from '@angular/core';
    import {
      CalendarModule,
      CalendarType,
      CalendarComponentConfigurations,
      Day,
    } from '@ironsource/fusion-ui/components/calendar';
    import { DaterangeSelection } from '@ironsource/fusion-ui/components/daterange';

    @Component({
      selector: 'fusion-story-wrapper',
      template: \`<div style="width: 250px; margin: auto">
            <fusion-calendar
                (daySelected)="daySelected($event)"
                [configuration]="configuration"
            >
            </fusion-calendar>
    </div>\`,
      standalone: true,
      imports: [CalendarModule],
    })
    export class FusionStoryWrapperComponent {
      configuration: CalendarComponentConfigurations = {
        parentDaterangeId: 'calendar_id_123',
        allowFutureSelection: true,
        calendarType: CalendarType.DATE_PICKER,
        month: new Date(),
        selection: { date: null } as DaterangeSelection,
      };

      daySelected(selectedDate: Day) {
        console.log('Date selected: ', selectedDate);
      }
    }
    `,
                format: true,
                type: 'code'
            }
        }
    }
```