Socket
Socket
Sign inDemoInstall

@conectate/ct-helpers

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @conectate/ct-helpers

Simple helpers for web developers


Version published
Weekly downloads
8
increased by60%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Published on webcomponents.org

ct-helpers

It's a simple wrapper for LitElement

Installation

To include this, type:

$ yarn add @conectate/ct-helpers

or

$ npm i @conectate/ct-helpers

Usage

// Typescript
import { PushID, browserCapabilities, getClient, getGeoLocation, sleep } from "@conectate/ct-helpers";
let ua = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36";
async function main() {
	console.log(browserCapabilities(ua));
	// Set(4) { 'es2015', 'es2016', 'es2017', 'push' }
	console.log(getClient(ua));
	// {
	//   browser: 'edge',
	//   browserVersion: 44.18363,
	//   isMobile: false,
	//   os: 'windows',
	//   osVersion: 10
	// }
	console.log(await getGeoLocation());
	await sleep(1000);
	let pid = new PushID();
	let randomID_20length: string = pid.next(20);
}
main();

Follow me

Herberth Obregón

https://twitter.com/herberthobregon

https://www.conectate.today/herberthobregon

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

License

See LICENSE

Keywords

FAQs

Last updated on 07 Sep 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc