Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xseignard/srt-loader
https://github.com/xseignard/srt-loader
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/xseignard/srt-loader
- Owner: xseignard
- Created: 2016-01-30T22:34:02.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-12T12:33:09.000Z (almost 9 years ago)
- Last Synced: 2024-11-14T13:47:27.147Z (about 2 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)