npm.io
41.0.0 • Published 6 years ago

@peacefultruth/freestyle

Licence
MIT
Version
41.0.0
Deps
1
Size
223 kB
Vulns
0
Weekly
0

freestyle

yarn add @peacefultruth/freestyle

const microphone = {
  i_know_you_got_soul: {
    rakim: {
      gets_stronger_when: () => 'as I get older',
    },
  },
};

// let answers = microphone.i_know_you_got_soul.rakim.gets_stronger_when();

import freestyle from '@peacefultruth/freestyle';

const answers = freestyle(microphone, `

                                                           i know you got soul;

      rakim,

          gets stronger when?
`)();

expect(answers).toEqual('as I get older');