Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

has-strict-mode

inspect-js5.1kMIT1.0.1

Does the current JS environment have strict mode? ES5+ should; but let's not assume.

strict mode, strict, mode, javascript, es3, es5

readme

has-strict-mode Version Badge

dependency status dev dependency status License Downloads

npm badge

Does the current JS environment have strict mode? ES5+ should; but let's not assume.

Example

var hasStrictMode = require('has-strict-mode');
var assert = require('assert');

assert.equal(hasStrictMode(), true); // will be `false` in IE 6-8

Tests

Simply clone the repo, npm install, and run npm test

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v1.0.1 - 2020-12-14

Commits

  • [Tests] use shared travis-ci configs e0de094
  • [Tests] migrate tests to Github Actions 6c13cce
  • [meta] do not publish github action workflow files 8ea04b2
  • [readme] add docs; fix URLs afe0e13
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, auto-changelog, tape a145335
  • [Tests] run nyc on all tests; use tape runner b89ebfe
  • [actions] add automatic rebasing / merge commit blocking 3a0ed6f
  • [meta] add auto-changelog 62105e5
  • [actions] add "Allow Edits" workflow 8646f0b
  • [Dev Deps] update eslint, @ljharb/eslint-config, tape 13b4ce0
  • [Dev Deps] update eslint, @ljharb/eslint-config; add safe-publish-latest 7441592
  • [actions] switch Automatic Rebase workflow to pull_request_target event 940a38b
  • [Dev Deps] update auto-changelog, tape c646fa2
  • [Dev Deps] update auto-changelog; add aud 4bc0f9b
  • [meta] add funding field ea5a937
  • [Tests] only audit prod deps 5f7e798
  • [actions] fix name of rebase action 60c5ba0

v1.0.0 - 2019-07-21

Commits