| 1 |
% Kale Ewasiuk ([email protected]) |
| 2 |
% 2024-09-15 |
| 3 |
% Copyright (C) 2021-2024 Kale Ewasiuk |
| 4 |
% |
| 5 |
% Permission is hereby granted, free of charge, to any person obtaining a copy |
| 6 |
% of this software and associated documentation files (the "Software"), to deal |
| 7 |
% in the Software without restriction, including without limitation the rights |
| 8 |
% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 9 |
% copies of the Software, and to permit persons to whom the Software is |
| 10 |
% furnished to do so, subject to the following conditions: |
| 11 |
% |
| 12 |
% The above copyright notice and this permission notice shall be included in |
| 13 |
% all copies or substantial portions of the Software. |
| 14 |
% |
| 15 |
% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF |
| 16 |
% ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED |
| 17 |
% TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A |
| 18 |
% PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT |
| 19 |
% SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR |
| 20 |
% ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
| 21 |
% ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 22 |
% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE |
| 23 |
% OR OTHER DEALINGS IN THE SOFTWARE. |
| 24 |
|
| 25 |
\ProvidesPackage{penlight}[2024-09-15] |
| 26 |
|
| 27 |
\directlua{penlight = require'penlight'} |
| 28 |
|
| 29 |
\DeclareOption{pl}{\directlua{pl = penlight}} |
| 30 |
|
| 31 |
\DeclareOption{stringx}{\directlua{penlight.stringx.import()}} |
| 32 |
\DeclareOption{format}{\directlua{penlight.stringx.format_operator()}} |
| 33 |
\DeclareOption{func}{\directlua{penlight.utils.import(penlight.func)}} |
| 34 |
\DeclareOption{import}{\ExecuteOptions{stringx,format,func}} |
| 35 |
|
| 36 |
\ProcessOptions*\relax |