1.0.0 • Published 8 years ago
get-global-identifiers v1.0.0
get-global-identifiers
Returns an array of global identifiers for a given js file.
Installing
npm install get-global-identifiers
Example usage
const getGlobals = require('get-global-identifiers');
const globals = getGlobals('app/appConstants.js') // ['GLOBAL', 'CONSTANTS', 'DEFINED', 'IN', 'THIS', 'FILE']
1.0.0
8 years ago