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

toolbox-utils-js

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

toolbox-utils-js

Helpful functions in a single package

latest
Source
npmnpm
Version
1.2.0-major
Version published
Weekly downloads
4
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Toolbox Utils

Basic node.js toolbox package for converting units and getting the date.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Installing

A step by step series of examples that tell you how to get a development env running

Say what the step will be

npm install toolbox-utils-js

Running module

The module contains temperature conversion and date information (more to come).

Converting temperatures

Converting temperature is the same for all ways, just use the following format for each.

require the module

const tools = require('toolbox-utils-js')

To convert use {K/C/F}to{K/C/F}

var temp = tools.convertTemp.CtoF(100)

Then log it

console.log(temp) // returns 87.55555555555556

Converting distances

var feet = convertMiles.toFeet(20)

Then log it!

console.log(feet) // returns 105600

Getting date

Get the date using

var date = tools.date()
console.log(date) // returns the date in the yyyy-mm-dd format

Example in vs code

example

Deployment

More math conversions and features to come soon, let me know what you want to see.

Authors

  • John Peterson - An aspiring web developer

License

This project is licensed under the GNU License - GNU GENERAL PUBLIC LICENSE

Keywords

npm

FAQs

Package last updated on 12 Aug 2019

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