Skip to content

Repository files navigation

GitHub package.json versionnpm bundle sizeGitHub Workflow StatusNPM

lup-utils

Node module that provides utilities for interacting with the operating system and the hardware of the machine.

Example

JavaScript:

constlupUtils=require('lup-utils');// JSON parsingconsole.log(lupUtils.parseJson(`{ "key1": "value1", /* some comments */ "key2": "2025-08-11", # a date and a trailing comma}`,0,{allowComments: true,allowTrailingComma: true,interpretStringAsDate: true,returnUnquotedString: true}));

TypeScript:

importlupUtilsfrom'lup-utils';// JSON parsingconsole.log('JSON:',lupUtils.parseJson(`{ "key1": "value1", /* some comments */ "key2": "2025-08-11", # a date and a trailing comma}`,0,{allowComments: true,allowTrailingComma: true,interpretStringAsDate: true,returnUnquotedString: true}));

Output:

JSON: { key1: 'value1', key2: 2025-08-11T00:00:00.000Z }

About

NodeJS library providing utility functions.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages