3.11.129 • Published 10 months ago

@diotoborg/facilis-nihil-quae v3.11.129

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@diotoborg/facilis-nihil-quae

NPM version Downloads Build Status Coveralls Status

Prepare a node environment to require files with different extensions.

What is it?

This module, in conjunction with interpret-like objects, can register any filetype the npm ecosystem has a module loader for. This library is a dependency of liftoff.

Note: While @diotoborg/facilis-nihil-quae will automatically load and register transpilers like coffee-script, you must provide a local installation. The transpilers are not bundled with this module.

Usage

const config = require('interpret').extensions;
const @diotoborg/facilis-nihil-quae = require('@diotoborg/facilis-nihil-quae');
@diotoborg/facilis-nihil-quae.prepare(config, './test/fixtures/test.coffee');
@diotoborg/facilis-nihil-quae.prepare(config, './test/fixtures/test.csv');
@diotoborg/facilis-nihil-quae.prepare(config, './test/fixtures/test.toml');

console.log(require('./test/fixtures/test.coffee'));
console.log(require('./test/fixtures/test.csv'));
console.log(require('./test/fixtures/test.toml'));

API

prepare(config, filepath, [cwd], [noThrow])

Look for a module loader associated with the provided file and attempt require it. If necessary, run any setup required to inject it into require.extensions.

config An interpret-like configuration object.

filepath A file whose type you'd like to register a module loader for.

cwd An optional path to start searching for the module required to load the requested file. Defaults to the directory of filepath.

noThrow An optional boolean indicating if the method should avoid throwing.

If calling this method is successful (e.g. it doesn't throw), you can now require files of the type you requested natively.

An error with a failures property will be thrown if the module loader(s) configured for a given extension cannot be registered.

If a loader is already registered, this will simply return true.

License

MIT

3.11.129

10 months ago

3.11.128

10 months ago

1.3.50

1 year ago

1.3.53

1 year ago

1.3.54

1 year ago

1.3.51

1 year ago

1.3.52

1 year ago

3.11.123

10 months ago

3.11.122

10 months ago

2.8.100

11 months ago

3.11.121

11 months ago

3.11.120

11 months ago

2.7.77

12 months ago

1.2.12

1 year ago

3.11.119

11 months ago

2.7.76

1 year ago

1.2.13

1 year ago

3.11.118

11 months ago

2.7.75

1 year ago

3.11.117

11 months ago

3.11.116

11 months ago

1.2.16

1 year ago

3.11.115

11 months ago

1.2.17

1 year ago

3.11.114

11 months ago

2.7.79

12 months ago

1.2.14

1 year ago

2.11.111

11 months ago

2.7.78

12 months ago

1.2.15

1 year ago

2.7.80

12 months ago

2.7.84

12 months ago

2.7.83

12 months ago

2.7.82

12 months ago

2.7.81

12 months ago

2.5.69

1 year ago

2.9.106

11 months ago

2.9.107

11 months ago

2.9.108

11 months ago

2.7.88

12 months ago

2.9.109

11 months ago

2.7.87

12 months ago

2.7.86

12 months ago

2.7.85

12 months ago

2.5.68

1 year ago

2.7.89

12 months ago

2.5.70

1 year ago

1.5.61

1 year ago

1.5.60

1 year ago

1.5.63

1 year ago

1.5.62

1 year ago

1.5.65

1 year ago

1.5.64

1 year ago

1.3.43

1 year ago

1.5.67

1 year ago

1.5.66

1 year ago

1.3.46

1 year ago

1.5.68

1 year ago

1.3.47

1 year ago

1.3.44

1 year ago

1.3.45

1 year ago

1.3.48

1 year ago

1.3.49

1 year ago

1.4.60

1 year ago

1.2.41

1 year ago

1.2.42

1 year ago

1.2.40

1 year ago

1.2.43

1 year ago

2.10.109

11 months ago

2.10.111

11 months ago

2.10.110

11 months ago

2.8.89

12 months ago

2.11.112

11 months ago

2.8.92

12 months ago

2.11.113

11 months ago

2.8.91

12 months ago

2.6.70

1 year ago

2.11.114

11 months ago

2.8.90

12 months ago

2.6.71

1 year ago

1.2.18

1 year ago

2.6.72

1 year ago

1.2.19

1 year ago

2.8.96

11 months ago

2.8.95

12 months ago

2.8.94

12 months ago

2.8.93

12 months ago

1.2.20

1 year ago

1.2.23

1 year ago

2.8.99

11 months ago

1.2.24

1 year ago

2.8.105

11 months ago

2.8.98

11 months ago

1.2.21

1 year ago

2.8.106

11 months ago

2.8.97

11 months ago

1.2.22

1 year ago

3.11.127

10 months ago

2.8.103

11 months ago

2.6.73

1 year ago

1.2.27

1 year ago

3.11.126

10 months ago

2.8.104

11 months ago

2.6.74

1 year ago

1.2.28

1 year ago

3.11.125

10 months ago

2.8.101

11 months ago

2.6.75

1 year ago

1.2.25

1 year ago

3.11.124

10 months ago

2.8.102

11 months ago

1.2.26

1 year ago

1.2.29

1 year ago

1.2.30

1 year ago

1.2.31

1 year ago

1.4.55

1 year ago

1.4.54

1 year ago

1.4.57

1 year ago

1.2.34

1 year ago

1.4.56

1 year ago

1.2.35

1 year ago

1.4.59

1 year ago

1.2.32

1 year ago

1.4.58

1 year ago

1.2.33

1 year ago

1.2.38

1 year ago

1.2.39

1 year ago

1.2.36

1 year ago

1.2.37

1 year ago

1.2.11

1 year ago

1.2.8

1 year ago

1.1.8

1 year ago

1.2.9

1 year ago

1.2.10

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago