@24vlh/ts-helpers
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Typescript helpers

Small footprint library that helps with repetitive tasks.

Installation

npm i --save @24vlh/ts-helpers

Usage

import {DeepObjectScan} from '@24vlh/ts-helpers/deep-object-scan';
import {OfNumberType} from '@24vlh/ts-assert/number';

console.log(
    DeepObjectScan('a.b.c', {a: {b: {c: 1}}}, OfNumberType)
);
// shall output 1

List of helpers

Helpers

  • DeepCopyPrimitive
  • DeepCopy
  • DeepObjectScan
  • MoveArrayEntryIndex
  • ReadObjectProperty
  • SaveAs
  • SaveAsPrimitive
  • SaveAsBlob
  • SaveAsText
  • SaveAsJson
  • SaveAsCsv
  • SaveAsXml
  • SaveAsHtml
  • SaveAsImage
  • SaveAsCanvas
  • SaveAsPdf
  • SaveAsAudio
  • SaveAsVideo
  • SaveAsFile
  • SaveAsArrayBuffer
  • SaveAsBlobParts

@vlah.io

Readme

Keywords

Package Sidebar

Install

npm i @24vlh/ts-helpers

Weekly Downloads

3

Version

1.0.0

License

Apache-2.0

Unpacked Size

142 kB

Total Files

72

Last publish

Collaborators

  • 24vlh