Détail du package

has-strict-mode

inspect-js1.6kMIT1.1.0

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

strict mode, strict, mode, javascript

readme

has-strict-mode Version Badge

github actions coverage 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.1.0 - 2025-02-11

Commits

  • [actions] reuse common workflows cb263fc
  • [meta] use npmignore to autogenerate an npmignore file 1cd5b41
  • [actions] use node/install instead of node/run; use codecov action 67694bd
  • [actions] split out node 10-20, and 20+ 98b86ce
  • [readme] add github actions/codecov badges; update URLs 7b88d99
  • [New] add types 5c97439
  • [actions] update rebase action to use reusable workflow c3f5176
  • [actions] update codecov uploader d831d2f
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, auto-changelog, in-publish, tape 8493fc8
  • [Dev Deps] update eslint, @ljharb/eslint-config, auto-changelog, safe-publish-latest, tape 311bdc3
  • [Dev Deps] update eslint, @ljharb/eslint-config, safe-publish-latest, tape 157f281
  • [Dev Deps] update @ljharb/eslint-config, auto-changelog, npmignore, tape 1012aa3
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, tape 4251bed
  • [meta] add missing engines.node d31a790
  • [Tests] replace aud with npm audit dc2517d
  • [meta] use prepublishOnly script for npm 7+ 1c59379
  • [Dev Deps] add missing peer dep 5fd2f03

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