1.0.9 • Published 7 years ago

list-loader v1.0.9

Weekly downloads
3
License
MIT
Repository
github
Last release
7 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

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago