npm

s2s-helper-get-initial-state

1.0.1 • Public • Published

s2s-helper-get-initial-state

Helper function to get initialState

API

import helper from 's2s-helper-get-initial-state'

const fixture = `
export const initialState = {
  count: 0
}
`

helper(fixture)
// Node "ObjectExpression"
//   properties: Array [
//     Node "ObjectProperty"
//       computed: false
//       key: Node "Identifier"
//         name: "count"
//       method: false
//       shorthand: false
//       value: Node "NumericLiteral"
//         extra: Object {
//           "raw": "1",
//           "rawValue": 1,
//         }
//         value: 1,
//   ]

Readme

Keywords

none

Package Sidebar

Install

npm i s2s-helper-get-initial-state

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.52 kB

Total Files

5

Last publish

Collaborators

  • akameco