0.3.3 • Published 3 years ago

@hanakla/arma v0.3.3

Weekly downloads
18
License
MIT
Repository
github
Last release
3 years ago

@hanakla/arma

Floor killer single functions for Web frontend

Functions

See details from type definition and カン.

CSS

  • cssurl - null safe css url() wrapper.

DOM

  • selectFile - open file selector
  • letDownload - Allow users to download blob as file
  • ClipBoardUtil
  • loadImage - load image by url
  • loadImageFromBlob - load image by blob

React Hooks

  • useAsyncEffect
  • useChangedEffect
  • useObjectState
  • useSetRef
  • useCombineRef - combile multiple refs into one ref
  • useCurrentVisibleAnchorName
  • useIntersection
  • useFunk - Dependecy free useCallback

String

  • lineBreakToSpace
  • ellipsisString
  • trimString

styled-components

  • styleWhen - conditional styling helper function

Lang feature

  • rescue - exception handling function
  • match - simple pattern mather

bili.config

import defaultConfig from '@hanakla/arma/dist/bili.config.base'

import { Config } from 'bili'
import typescript from 'rollup-plugin-typescript2'
import { defaultBiliConfig } from '../../bili.default.config'

export default {
  input: 'src/index.ts',
  plugins: {
    typescript2: typescript(),
    terser: defaultConfig.plugins.terser,
  },
  babel: defaultConfig.babel,
  bundleNodeModules: defaultConfig.bundleNodeModules,
  output: {
    format: ['cjs', 'esm'],
  },
} as Config
0.3.0

3 years ago

0.3.2

3 years ago

0.2.3

3 years ago

0.3.1

3 years ago

0.3.3

3 years ago

0.2.4

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.2

3 years ago

0.1.10

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.9

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.4-beta.3

4 years ago

0.1.4-beta.2

4 years ago

0.1.4-beta.1

4 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago