Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    onflypublic

    on the fly

    use typescript or es6+ config (or any) file on the fly, built in-memory, required into memory, without a footprint.

    installation

    yarn add on-the-fly global
    npm i -s -g

    usage:

    const onTheFly = require('on-the-fly')
    const dir = __dirname
     
    // requires resolve(dir, config.js)
    onTheFly('config.js', dir).then((config) => {
      console.log(config, typeof config)
    })
     
    // requires resolve(dir, config.js)
    onTheFly('config.ts', dir).then((config) => {
      console.log(config, typeof config)
    })

    cli

    • simply: onthefly config
    • or more verbose: onthefly config.ts directoryHere

    Keywords

    none

    install

    npm i onfly

    Downloadsweekly downloads

    5

    version

    0.1.0

    license

    none

    last publish

    collaborators

    • avatar