Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

helga

1.1.35 • Public • Published

Helga

Your next best friend when editing complex nested code

Repository is on GitLab Coverage View dependencies as 2D chart Downloads/Month Test in browser Code style: prettier MIT License

Table of Contents

Install

npm i helga

Consume via a require():

const { helga, defaults, version } = require("helga");

or as an ES Module:

import { helga, defaults, version } from "helga";

or for web pages, as a production-ready minified script file (so-called "UMD build"), straight from CDN:

<script src="https://cdn.jsdelivr.net/npm/helga/dist/helga.umd.js"></script>
// in which case you get a global variable "helga" which you consume like this:
const { helga, defaults, version } = helga;

This package has three builds in dist/ folder:

Type Key in package.json Path Size
Main export - CommonJS version, transpiled to ES5, contains require and module.exports main dist/helga.cjs.js 2 KB
ES module build that Webpack/Rollup understands. Untranspiled ES6 code with import/export. module dist/helga.esm.js 723 B
UMD build for browsers, transpiled, minified, containing iife's and has all dependencies baked-in browser dist/helga.umd.js 3 KB

⬆ back to top

Idea

This package will be an API for a universal code editor/helper.

Contributing

  • If you see an error, raise an issue.
  • If you want a new feature but can't code it up yourself, also raise an issue. Let's discuss it.
  • If you tried to use this package, but something didn't work out, also raise an issue. We'll try to help.
  • If you want to contribute some code, fork the monorepo via GitLab, then write code, then file a pull request on GitLab. We'll merge it in and release.

In monorepo, npm libraries are located in packages/ folder. Inside, the source code is located either in src/ folder (normal npm library) or in the root, cli.js (if it's a command-line application).

The npm script "dev", the "dev": "rollup -c --dev" builds the development version retaining all console.logs with row numbers. It's handy to have js-row-num-cli installed globally so you can automatically update the row numbers on all console.logs.

⬆ back to top

Licence

MIT License

Copyright (c) 2015-2020 Roy Revelt and other contributors

Install

npm i helga

DownloadsWeekly Downloads

87

Version

1.1.35

License

MIT

Unpacked Size

24.4 kB

Total Files

8

Last publish

Collaborators

  • avatar