Changeset e29cc2e for trip-planner-front/node_modules/lilconfig/readme.md
- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/lilconfig/readme.md
r59329aa re29cc2e 68 68 import yaml from 'yaml'; 69 69 70 function loadYaml(filepath, content) { 71 return yaml.parse(content); 72 } 73 70 74 const options = { 71 75 loaders: { 72 '.yaml': (filepath, content) => { 73 return yaml.parse(content); 74 }, 76 '.yaml': loadYaml, 77 '.yml': loadYaml, 75 78 // loader for files with no extension 76 noExt: (filepath, content) => { 77 return yaml.parse(content); 78 } 79 noExt: loadYaml 79 80 } 80 81 };
Note:
See TracChangeset
for help on using the changeset viewer.