{"id":21647995,"url":"https://github.com/atom-community/babel-plugin-transform-not-strict","last_synced_at":"2026-05-21T14:09:15.088Z","repository":{"id":37046448,"uuid":"294836617","full_name":"atom-community/babel-plugin-transform-not-strict","owner":"atom-community","description":"Remove 'use strict' if the file is 'not strict'","archived":false,"fork":false,"pushed_at":"2026-05-07T04:37:46.000Z","size":207,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-07T06:34:45.618Z","etag":null,"topics":["babel","babel-plugin","babel-plugins","not-strict","use-strict"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/babel-plugin-transform-not-strict","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atom-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-09-12T00:09:06.000Z","updated_at":"2022-01-02T17:58:07.000Z","dependencies_parsed_at":"2026-01-03T09:02:35.516Z","dependency_job_id":null,"html_url":"https://github.com/atom-community/babel-plugin-transform-not-strict","commit_stats":null,"previous_names":["atom-ide-community/babel-plugin-transform-not-strict"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/atom-community/babel-plugin-transform-not-strict","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom-community%2Fbabel-plugin-transform-not-strict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom-community%2Fbabel-plugin-transform-not-strict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom-community%2Fbabel-plugin-transform-not-strict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom-community%2Fbabel-plugin-transform-not-strict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atom-community","download_url":"https://codeload.github.com/atom-community/babel-plugin-transform-not-strict/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom-community%2Fbabel-plugin-transform-not-strict/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33303199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"ssl_error","status_checked_at":"2026-05-21T12:22:11.673Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babel","babel-plugin","babel-plugins","not-strict","use-strict"],"created_at":"2024-11-25T06:52:46.957Z","updated_at":"2026-05-21T14:09:15.061Z","avatar_url":"https://github.com/atom-community.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babel-plugin-transform-not-strict\n\nRemove 'use strict' if the file is 'not strict'\n\nMost of the bundlers and transpilers such as babel add `'use strict'` to the above of your file. This plugin will remove them if you add `'not strict'` to that file. You can also use this plugin to remove `'use strict'` from all the files\n\n## Installation\n\n```\nnpm install --save-dev babel-plugin-transform-not-strict\n```\n\nYou should also install the peer dependencies:\n\n```\nnpm install -save-dev \"@babel/core\"\n```\n\n## Usage\n\n1. put the following in above the a file that is not strict:\n\n```js\n\"not strict\";\n\n```\n\n2. Add `\"babel-plugin-transform-not-strict\"` to the list of your babel plugins.\n\nFor example, create a `babel.config.js` file at the root of the project with the following content:\n\n```js\nlet presets = [];\n\nlet plugins = [\"babel-plugin-transform-not-strict\"];\n\nmodule.exports = {\n  presets: presets,\n  plugins: plugins,\n  exclude: \"node_modules/**\",\n  sourceMap: \"inline\",\n};\n```\n\n### Usage Remove All\n\nYou can also use this plugin to remove `'use strict'` from all the files. Just pass `removeAll: true`.\n\n```js\nlet presets = [];\n\nlet plugins = [\n  [\n    \"babel-plugin-transform-not-strict\",\n    {\n      removeAll: true,\n    },\n  ],\n];\n\nmodule.exports = {\n  presets: presets,\n  plugins: plugins,\n  exclude: \"node_modules/**\",\n  sourceMap: \"inline\",\n};\n```\n\n### Usage Extra Directive or Comment Triggers\n\nYou can add more directive or comment triggers for removal of `'use strict'`. In the following example, `'use babel'` directive or comments that include `'@babel'` or `'@flow'` also instruct the plugin to become active and remove `'use strict'`\n\n```js\nlet presets = [];\n\nlet plugins = [\n  [\n    \"babel-plugin-transform-not-strict\",\n    {\n      directiveTriggers: [\"use babel\"],\n      commentTriggers: [\"@babel\", \"@flow\", \"* @babel\", \"* @flow\"],\n    },\n  ],\n];\n\nmodule.exports = {\n  presets: presets,\n  plugins: plugins,\n  exclude: \"node_modules/**\",\n  sourceMap: \"inline\",\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatom-community%2Fbabel-plugin-transform-not-strict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatom-community%2Fbabel-plugin-transform-not-strict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatom-community%2Fbabel-plugin-transform-not-strict/lists"}