component-props

Parse immediate identifiers from a js expression

1 个版本
安装
npm install component-props
yarn add component-props
pnpm add component-props
bun add component-props
README

props

Parse immediate identifiers from a js expression. Built for the Reactive template engine.

Installation

$ component install component/props

Example

~ret.indexOf(arr[i])
=> ret arr i

name.first + name.last
=> name

file.mime.split("/")
=> file

file.type + " " + classes().join(" ")
=> file

License

MIT

版本列表
1.1.1 2014-02-11