0.2.66 • Published 7 months ago

atma-utils v0.2.66

Weekly downloads
24
License
-
Repository
github
Last release
7 months ago

Util Functions

Build Status

Embeddable

  • lib/utils.embed.js All functions are in the top-level scope.

Module

  • All functions are wrapped to an object, e.g. require('atma-utils').obj_getProperty or import { obj_getProperty } from 'atma-utils'

Functions

  • Object
    • obj_getProperty(obj, path)
    • obj_setProperty(obj, path, val)
    • obj_extend(a, b)
    • obj_extendMany(a, [ ...args])
    • obj_create(obj)
  • Array
    • arr_remove
  • Function
    • fn_proxy(fn, ctx)
    • fn_doNothing
  • is

    • is_Function(x)
    • is_String(x)
    • is_notEmptyString(x)
    • is_Array(x)
    • is_ArrayLike(x)
    • is_Object(x)
    • is_rawObject(x)
  • class

    • class_create([...Base:Function|Object], Proto:Object)

      Proto := Object {
          constructor: Function,
          ...
      }
    • class_createEx

      Similar to class_create but also handles the property accessors. The class_create is in this way much more simple and has better performance.

    • class_Dfr

      Promise

    • class_EventEmitter

      Event Emitter

  • error

    • error_createClass(name:String, Proto:Object):Function
    • error_formatSource(source:String, index:Number, ?filename:String):String
    • error_cursor(source:String, index:Number):Array<lines, lineNum, rowNum>
    • error_formatCursor(lines:Array, lineNum: Number, rowNum: Number):String
  • Prototype fn references

    • _Array_slice
    • _Array_splice
    • _Array_indexOf
    • _Obj_hasOwnProp_

Build

$ npm install
$ npm run build

Release

  • Bump
  • Builds
  • Commit release branch
  • Push/Pulblish:
    • to git
    • to npm
$ npm install
$ npm run release

Test

$ npm install
$ npm test

:copyright: 2021 - MIT - Atma.js

0.2.66

7 months ago

0.2.65

8 months ago

0.2.63

1 year ago

0.2.62

1 year ago

0.2.61

1 year ago

0.2.64

12 months ago

0.2.60

3 years ago

0.2.59

3 years ago

0.2.52

4 years ago

0.2.58

3 years ago

0.2.57

3 years ago

0.2.56

3 years ago

0.2.53

4 years ago

0.2.51

4 years ago

0.2.50

4 years ago

0.2.49

4 years ago

0.2.48

4 years ago

0.2.47

4 years ago

0.2.45

4 years ago

0.2.44

4 years ago

0.2.43

4 years ago

0.2.42

4 years ago

0.1.41

4 years ago

0.1.39

4 years ago

0.1.38

5 years ago

0.1.37

5 years ago

0.1.36

5 years ago

0.1.35

5 years ago

0.1.34

5 years ago

0.1.32

6 years ago

0.1.33

6 years ago

0.1.31

6 years ago

0.1.30

6 years ago

0.1.28

6 years ago

0.1.27

6 years ago

0.1.26

6 years ago

0.1.25

6 years ago

0.1.24

6 years ago

0.1.23

6 years ago

0.1.22

6 years ago

0.1.21

6 years ago

0.1.20

6 years ago

0.1.19

6 years ago

0.1.17

7 years ago

0.1.15

7 years ago

0.1.13

8 years ago

0.1.12

8 years ago

0.1.11

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago