0.0.15 • Published 8 years ago
@notonthehighstreet/toolkit v0.0.15
Noths Toolkit
Installation
npm install @notonthehighstreet/toolkit --saveUsage
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') // => #056582fontSize(size)
import fontSize from '@notonthehighstreet/toolkit/utils/fontSize';
fontSize('m') // => 16pxbreakpoint(deviceType)
import breakpoint from '@notonthehighstreet/toolkit/utils/breakpoint';
breakpoint('mobile') // => 4800.0.15
8 years ago
0.0.14
8 years ago
0.0.13
8 years ago
0.0.12
8 years ago
0.0.11
8 years ago
0.0.11-1
8 years ago
0.0.11-0
8 years ago
0.0.10
8 years ago
0.0.9
8 years ago
0.0.8
8 years ago
0.0.8-0
8 years ago
0.0.7
8 years ago
0.0.6
8 years ago
0.0.6-1
8 years ago
0.0.6-0
8 years ago
0.0.5
8 years ago
0.0.4
8 years ago
0.0.4-2
8 years ago
0.0.3
8 years ago
0.0.3-6
8 years ago
0.0.3-5
8 years ago
0.0.3-4
8 years ago
0.0.3-3
8 years ago
0.0.3-2
8 years ago
0.0.3-1
8 years ago
0.0.3-0
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago
0.0.1-3
8 years ago
0.0.1-2
8 years ago
0.0.1-1
8 years ago
0.0.1-0
8 years ago