String.prototype.startsWith
v1.0.1
String.prototype.startsWith polyfill String.prototype.startsWith 에 대한 강력하고 최적화 된 폴리 필.
이 패키지는 ES-Shim API 인터페이스를 구현합니다. ES3 지원 환경에서 작동하며 사양을 준수합니다.
String.prototype.startsWith 의 다른 폴리 플릴을 사용할 수 있습니다.
NPM을 통해 :
npm install string.prototype.startswith그런 다음 node.js에서 :
var startsWith = require ( 'string.prototype.startswith' ) ;브라우저에서 :
< script src =" https://bundle.run/string.prototype.startswith " > </ script >참고 :
npm과 같은 패키지 관리자를 사용 하여이 모듈을 설치하는 것이 좋습니다. CDN (예 :bundle.run)에서 여러 폴리 플릴을로드하면 복제 된 코드가 발생하기 때문입니다.
polyfills + String.prototype.endsWith 및 String.prototype.contains 의 테스트 스위트도 가능합니다.
main 브랜치에서 package.json 의 버전 번호를 부딪칩니다.
npm version patch patch 대신 필요에 따라 minor 또는 major 사용하십시오.
이것은 git commit + tag를 생성합니다.
릴리스 커밋 및 태그를 누릅니다.
git push && git push --tags그런 다음 CI는 새 릴리스를 NPM에 자동으로 게시합니다.
| Mathias Bynens |
이 Polyfill은 MIT 라이센스에 따라 제공됩니다.