Socket
Book a DemoInstallSign in
Socket

@notonthehighstreet/toolkit

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@notonthehighstreet/toolkit

A toolkit for development of front end apps at NOTHS

latest
npmnpm
Version
0.0.15
Version published
Weekly downloads
4
-50%
Maintainers
1
Weekly downloads
 
Created
Source

npm version

Noths Toolkit

Installation

npm install @notonthehighstreet/toolkit --save

Usage

Import

There are two ways to import the function you need.

Import specific function

You can import just the specific function you need which means you won't require the whole toolkit module.

import colour from '@notonthehighstreet/toolkit/utils/colour';

colour('colour name')

Import whole toolkit

You can import the whole toolkit and use the functions from the toolkit object.

import toolkit from '@notonthehighstreet/toolkit';

toolkit.colour('colour name')

Utils

You can import multiple utils by deconstructing:

import { colour, fontSize } from '@notonthehighstreet/toolkit/utils'

colour(colourName)

import colour from '@notonthehighstreet/toolkit/utils/colour';

colour('venice-blue') // => #056582

List of availiable colours

fontSize(size)

import fontSize from '@notonthehighstreet/toolkit/utils/fontSize';

fontSize('m') // => 16px

List of available font sizes

breakpoint(deviceType)

import breakpoint from '@notonthehighstreet/toolkit/utils/breakpoint';

breakpoint('mobile') // => 480

List of available breakpoints

FAQs

Package last updated on 29 Dec 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