0.1.0 • Published 11 months ago

importable v0.1.0

Weekly downloads
1
License
CC0-1.0
Repository
github
Last release
11 months ago

Importable

Importable allows you to import files with strong typing based on import attributes (presently import assertions).

import config from './config.yml' assert { type: 'yaml' }

console.assert(config.doe === 'a deer, a female deer')

Internally, Importable treats import assertions as thought they are import attributes, in anticipation of the new import assertions syntax.

Once TypeScript supports import assertions, this plugin will provide an update to support the new syntax.

Installation

npm install importable
{
  "compilerOptions": {
    "plugins": [
      {
        "name": "importable",
        "plugins": []
      }
    ]
  }
}

Plugins

License

Code original to this project is licensed under the CC0-1.0 License.

0.1.0

11 months ago

0.0.23

4 years ago

0.0.22

4 years ago

0.0.21

4 years ago

0.0.20

4 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago