In this article, using spline in compression we develop the class of methods for the numerical solution of singularly perturbed two-point boundary-value problems. The purposed methods are second-order and fourth-order accurate and applicable to problems both in singular and non-singular cases. Convergence analysis of the methods are discussed and numerical results are given to illustrate the efficiency of our methods.