New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

nativescript-utilities

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-utilities

A collection of reusable NativeScript utility classes and functions.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

nativescript-utilities

A (currently small) collection of reusable NativeScript utility classes and functions.

Usage

Check out the API docs for the current utilities' documentation. Every class and function can be imported by name:

import { Logger, convertUint8ArrayToReference } from 'nativescript-utilities';


try {
    let bytesReference = convertUint8ArrayToReference(new Uint8Array([ 0x90, 0xC3, 0xFF ]));
    // Do something with the interop.Reference instance, like pass it to some native C library.
} catch (error) {
    logger.error(`Something happened while trying to send the buffer.`, { error });
}

building

This module is implemented in ES 6 and transpiled to ES 5 for export. To build the source:

npm run build

There's also a git pre-commit hook that automatically builds upon commit, since the dist directory is committed.

linting

npm run lint

Keywords

NativeScript

FAQs

Package last updated on 10 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts