Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xseignard/srt-loader


https://github.com/xseignard/srt-loader

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# srt (SubRip subtitle format) loader for webpack

## Usage

[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)

Relies on:
- [subtitles-parser](https://github.com/bazh/subtitles-parser)
- [raw-loader](https://github.com/webpack/raw-loader)

### Simple API

``` javascript
require("raw!srt!./file.srt");
```

## Recommended configuration

The recommended configuration for webpack is:

``` javascript
{
module: {
loaders: [
{ test: /\.srt$/, loader: 'raw-loader!srt-loader' },
]
}
}
```

## Install

`npm install srt-loader`

## License

MIT (http://www.opensource.org/licenses/mit-license.php)