mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
NEW: require() now supports loading JSON too (#474)
This commit is contained in:
committed by
Tom Limoncelli
parent
7ed3adb2f1
commit
608dd7af56
8
pkg/js/parse_tests/024-json-import.js
Normal file
8
pkg/js/parse_tests/024-json-import.js
Normal file
@ -0,0 +1,8 @@
|
||||
var domains = require('./domain-ip-map.json')
|
||||
|
||||
var domain = "foo.com"
|
||||
var ip = domains["foo.com"]
|
||||
|
||||
D(domain,"none",
|
||||
A("@",ip)
|
||||
);
|
Reference in New Issue
Block a user