regional-environment
v0.1.2
Published
List all config files/directories
Downloads
23
Maintainers
Readme
Node.js regional-environment library
What is this?
This is a JavaScript library that helps building regional-environment plugins for code editors
Requirements
- ECMAScript 6
Usage
// import the module
const regionalenv = require('regional-environment')
// get all items
const allitems = regionalenv.getAllItems(dirname)
// get some items whose name always contains '.myfiletype' and may contain '.atom' and '.x86'
const myitems = regionalenv.getItems(dirname, {
required: ['myfiletype'],
optional: ['atom', 'x86'],
suffix: 'myext'
})
License
MIT