Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
estree-util-is-identifier-name
Advanced tools
Check if something can be an ecmascript (javascript) identifier name
Check if something can be an identifier name.
npm:
npm install estree-util-is-identifier-name
var isIdentifierName = require('estree-util-is-identifier-name')
isIdentifierName.name('$something69') // => true
isIdentifierName.name('69') // => false
isIdentifierName.name('var') // => true (this does not handle keywords)
isIdentifierName.start(48) // => false (character code for `0`)
isIdentifierName.cont(48) // => true (character code for `0`)
isIdentifierName.name(value)
Checks if the given string is a valid identifier name.
isIdentifierName.start(code)
Checks if the given character code can start an identifier.
isIdentifierName.cont(code)
Checks if the given character code can continue an identifier.
goto-bus-stop/estree-is-identifier
— check if an AST node is an identifierFAQs
Check if something can be an ecmascript (javascript) identifier name
We found that estree-util-is-identifier-name demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.