@nutriot/morphagene-options
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

@nutriot/morphagene-options

Helper for editing Morphagene options.txt files

License Version Build

Installation

npm install --save @nutriot/morphagene-options

Usage

// all environments
import { parse, stringify } from '@nutriot/morphagene-options';

// NodeJS only
import { parseFile, parseFileSync } from '@nutriot/morphagene-options/fs';

parse

Usage: parse(optionsString, strict = true)

Parses an options string into a JavaScript object.

stringify

Usage: stringify(optionsObject, strict = true)

Stringifies a JavaScript object into an options string

parseFile

⚠️ This function is only available in NodeJS

Parses an options.txt file into a JavaScript object.

Usage: await parseFile('options.txt', strict = true)

parseFileSync

⚠️ This function is only available in NodeJS

Usage: parseFileSync('options.txt', strict = true)

Parses an options.txt file into a JavaScript object.

License

This work is licensed under The MIT License

Package Sidebar

Install

npm i @nutriot/morphagene-options

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

8.37 kB

Total Files

9

Last publish

Collaborators

  • idleberg