JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 71
  • Score
    100M100P100Q98136F
  • License MIT

JS utility tool

Package Exports

  • structkit
  • structkit/src/node.cjs.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 (structkit) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Structkit

NPM version

Site | Docs |

Download

To download this JS library and install in your local library

Using npm to install in your project folder:

$ npm i structkit

How to import the Library

In a browser :

<script src="structkit-full.iife.js"></script>

Import on cjs

const {repeat} = require('structkit');

Import on ESM or TS

import {repeat} from 'structkit';

Example

In a browser

_stk.repeat("1",20)

keep in mind _stk is used as global library at html

CJS, ESM and TS use this code below

repeat("1",20)

Partial sampe you can use as your utitlity function

get the first index of array

first([2,3,4,5])// 2

get the last index of array

last([2,3,4,5])// 5

get start and end of array index

arraySlice([1,2],1)// [2]

get sum of array

arraySum([1,2])// 3.00