1.0.1 • Published 5 years ago

s2s-helper-get-initial-state v1.0.1

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

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,
//   ]
1.0.1

5 years ago

1.0.0

5 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago