1.0.9 • Published 6 years ago

list-loader v1.0.9

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

List Loader

npm Build Status Coverage Status Maintainability

Introduction

A webpack-loader for importing files as a list

Usage

Install

$ npm install list-loader --save-dev

Setup

webpack.config.js

'module': {
	'rules': [
		{
			'test': /\.txt$/,
			'use': [
				{
					'loader': 'list-loader',
					'options': {
						'delimiter': '\n',
						'filter': false,
						'trim': true,
						'number': false,
						'date': false,
					},
				},
			],
		},
	],
},

Options

NameTypeDefaultDescription
delimiter{string\|number\|RegExp}'\n'Set delimiter
filter{boolean}falseEnable / Disable filtering empty elements
trim{boolean}trueEnable / Disable trimming
number{boolean}falseEnable / Disable parsing numbers
date{boolean}falseEnable / Disable parsing dates
1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago