npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nativescript-master-technology-updated

v1.2.0

Published

A Simple NativeScript Utility Library

Downloads

3

Readme

npm npm npm

nativescript-master-technology-updated

A library of generic functions that are useful in NativeScript

License

This is released under the MIT License, meaning you are free to include this in any type of program -- However for entities that need a support contract, changes, enhancements and/or a commercial license please contact me at http://nativescript.tools.

I also do contract work; so if you have a module you want built for NativeScript (or any other software projects) feel free to contact me [email protected].

Donate Patreon

Updates

Please feel free to fork this repo and add other utility functions!!!

Installation

Supports all NativeScript versions from 2.x till 5.x

tns plugin add nativescript-master-technology-updated

Notes:

The first release of this library had a ton of DOM routines, these have been moved to there own plugin called 'nativescript-dom'

Usage

To use the module you must first require() it:

require( "nativescript-master-technology-updated" );

All routines are global; you do not need to keep a reference to the library.

If you get TypeScript complaining about process not being defined, then put /// <reference path="./node_modules/nativescript-master-technology-updated/references.d.ts" /> in your references.d.ts.

Methods

setImmediate();

Push this task off to the next available time slice.

clearImmediate(id)

Clears an timer scheduled via setImmediate...

performance.now()

Returns the current time stamp in NS or MS (depends on the platform)

process.restart()

IOS will tell the user they need to restart; and then exit. (Apple doesn't appear to have any "restart" app ability) Android will quit and restart the app.

process.exit()

Exit the application

process.isDebug()

Detects if you are running the debug version of the code on Android, on ios it returns Process.isEmulator()

process.isEmulator()

Detects if you are running on an emulator

process.processMessages()

A Syncronous method to cause IOS & Android to handle their message loops.

console.keys()

Prints out all the keys in the object

Optionally: You can pass true as second argument to also print the value:

var data = {
  id: 1,
  name: 'Nathan'
};
console.keys(data, true);

// id:  1
// name:  Nathan

Breaking Changes

Renamed Performance.now to performance.now -- not sure why I messed up the name in the first place; but the proper name for compatibility sake is "performance.now()"...