JSPM

@teeny-tiny/open

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 44
  • Score
    100M100P100Q68676F
  • License Apache-2.0

Just a teeny-tiny URL opener.

Package Exports

  • @teeny-tiny/open
  • @teeny-tiny/open/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@teeny-tiny/open) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

A teeny-tiny dotenv parser

require("@teeny-tiny/open").config(/* URL */);

Values get parsed as json. Use // or # for comments in the dotenv file. As a perfectly parsable example:

VERSION="1.0.10" // --> "1.0.10"
NAME="@teeny-tiny/dotenv" // --> "@teeny-tiny/dotenv"
PRODUCT_NAME="Tenny Tiny Dotenv Parser" // --> "Tenny Tiny Dotenv Parser"
MATH=< 1 + 1 > // --> "2" <-- process.env only accepts strings; requires activated "executeCode" option

Credits

Thanks to the dotenv team for the inspiration. Use their package dotenv for a fully-fledged dotenv parser.